Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Please fix Parabolic SAR once and for all!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    The version we released is accurate as we see it. kocmodpom you are referencing a reverse that should have occurred in post #21. When a new bar is built the PSAR comes down due to the accelerator. The new value ends up below the high of the bar and as such a reversal is done.

    PSAR values are not rounded to tick size. Ex: 100.229 will show up as 100.23 in the data box, but in comparing if it touched price, 100.229 has not touched 100.23.
    Josh P.NinjaTrader Customer Service

    Comment


      #47
      Originally posted by keepdchange View Post
      Also, can we get the PSAR to flip as soon as it reverses, rather than wait for the bar to close? Please clarify...Thank you.
      I am starting to come around to having the dots on the active bar as well.

      Comment


        #48
        Have you tried the latest release? Please provide more information on what you are seeing.
        Josh P.NinjaTrader Customer Service

        Comment


          #49
          Hello Josh,

          Can you please attach the latest release!
          Thanx.

          Comment


            #50
            Post #20 has the file as does post #3.
            Josh P.NinjaTrader Customer Service

            Comment


              #51
              Yes, I am running ParabolicSARFix. Just as in ProTrader I would like the indicator level to be on the active bar like this:



              not like this:



              I can't think of a reason why the Parabolic should lag a bar behind.

              Comment


                #52
                You need to turn CalculateOnBarClose to false if you want it to update on the currently building bar.
                Josh P.NinjaTrader Customer Service

                Comment


                  #53
                  Not seeing that option in the code. Which line might it be?

                  Comment


                    #54
                    You don't need to change anything in the code. When you load the indicator, set the appropriate parameter for it on the right hand side.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #55
                      Psar

                      Hello Josh,

                      I did get a strategy on ParabolicSAR a while back from somewhere in the site. However, that strategy contained the old ParabolicSAR indicator, also, it always reversed on the next bar, instead of reversing as it happened. Eventhough, I changed the CalculateOnBarClose to false, it still did not work. Could you please take a look at it and see if you can fix this problem in the strategy and replace the indicator in the strategy with the latest one (ParabolicSARFix). I have attached the old Strategy and the new PArabolicSARFix for your reference.
                      Attached Files

                      Comment


                        #56
                        Originally posted by keepdchange View Post
                        Hello Josh,

                        I did get a strategy on ParabolicSAR a while back from somewhere in the site. However, that strategy contained the old ParabolicSAR indicator, also, it always reversed on the next bar, instead of reversing as it happened. Eventhough, I changed the CalculateOnBarClose to false, it still did not work. Could you please take a look at it and see if you can fix this problem in the strategy and replace the indicator in the strategy with the latest one (ParabolicSARFix). I have attached the old Strategy and the new PArabolicSARFix for your reference.
                        Changing which Parabolic it uses is super easy. Just open the strategy up in strategy editor and replace every instance of the original indicator with the improved one.

                        As for getting it to reverse now instead of later, I think that has to do with the one bar lag the indicator has.

                        Comment


                          #57
                          Hi kocmodpom, thanks for the input, that's the way to go...CalculateOnBarClose will only have an effect in realtime, for backtesting you can use the concept of this reference sample for simulating intrabar fills - http://www.ninjatrader-support2.com/...ead.php?t=6652

                          Comment


                            #58
                            OK the calculate on barclose set to false does allow the Parabolic to be calculated on the current bar exactly like I wanted.

                            Now the problem is when I am backtesting a strategy, the entry and exits are still referencing the previous bar since when it flips the dot is no longer on that side of the bar but on the other side. This seems to be the biggest reason why the strategy doesn't give the correct results. How can I solve this in back testing?

                            Comment


                              #59
                              kocmodpom,

                              You can ONLY trade on the next bar's open or later when backtesting. Reason for this is because when you evaluated your bars and your indicator values on a given bar, that bar was already closed. Being closed, you cannot trade anywhere on that bar. The next possible trading spot is the next bar's open and that is why your trades show up there.

                              You have a signal bar and a trade bar. The signal bar is where you get all your comparisons from. The actual order is placed on the trade bar which is the next bar.
                              Josh P.NinjaTrader Customer Service

                              Comment


                                #60
                                So there is no way to accurately backtest a strategy for comparison?

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                648 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                369 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                108 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                572 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                573 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X