Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

SetParabolicStop

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

    #16
    Hi,

    Happy New Year to the whole team !!!


    Quote from: Chris_L's @ NT Customer Service <<
    Hello Anthony thanks for your reply.

    The market price needs to move in favor of the position for the parabolic stop to move, not against the average price. Could you provide more context from the strategy so I can test on my machine?

    I look forward to hearing from you.>>

    Did you mean with candle sticks ? Because I tried with Renko bars & the parabolic stop also moves when the price moves AGAINST the entry price. Is this an issue/bug ?

    Thank you.
    Anthony

    Comment


      #17
      Hello Anthony, thanks for your reply.

      Are you seeing the same thing in the examples I previously provided? I will need a way to reproduce the problem you are reporting to be able to look further into the reported issue.

      I look forward to hearing from you.
      Chris L.NinjaTrader Customer Service

      Comment


        #18
        Hi Chris,

        Yes, play your example on renko and you will see that parabolic stop will advance when the price moves against the entry price. Is this the way it is supposed to work and the help file doesn't say so ? or is the help file correct and it is a software bug ? or it wasn't tested on renko ?
        NT 8.0.23.1 & NT 8.0.23.2 both 64-bit

        Anthony

        Comment


          #19
          Hello Anthony_0709, thanks for your reply.

          I'm sorry but I can not reproduce the same thing. I am testing with ES 03-20 market replay data. Do you have a specific point in time and a specific instrument that I should try to consistently reproduce the reported issue?

          I look forward to assisting.
          Chris L.NinjaTrader Customer Service

          Comment


            #20
            Hi Chris,

            You can use the NQ 03-21 01/06/2021 09:41:06:903 - 09:51:40:328

            Enter long at that point for the price to move against the entry.

            Thank you
            ​​​​​​​Anthony

            Comment


              #21
              Hello Anthony, thanks for your reply.

              I am not able to reproduce the reported issue. If you could give me exact chart settings and steps to reproduce this I will take another look. From my tests the parabolic stop is following the same values of the Parabolic SAR indicator that is set up through the strategy. Try Printing the value of ParabolicSAR and you should see these values correspond with the stop values.

              if (Position.MarketPosition != MarketPosition.Flat)
              {
              Pstop[0] = stopValue; // plot the stop level
              Print(myPsar[0]);
              }

              Please let me know if I can assist any further.
              Chris L.NinjaTrader Customer Service

              Comment


                #22
                Hi Chris L.,

                I have noticed that once the price has moved a good way into profits and the parabolic stop has moved and is positioned between the market price and the entry price: it only moves when the market price moves in favor of the trade.

                But, when the parabolic stop is at the starting point (trade just placed) and the market price gets between the entry price and the parabolic stop: the parabolic stop moves towards the market price as each bar closes.

                Is this how it is supposed to work ? The help guide doesn't point this out.

                Anthony

                Comment


                  #23
                  Hello Anthony, thanks for your reply.

                  The Calculate property will determine when the stop is moved, so when OnBarUpdate is called the price is updated. The location where it is moved depends on the SAR settings you give to the SetParabolicStop method. The only reason it will move is when the ParabolicSAR changes to a new value.

                  Please let me know if this does not resolve your inquiry.
                  Chris L.NinjaTrader Customer Service

                  Comment


                    #24
                    Hi Chris,

                    Can the Parabolic stop & Trailing stop be moved programmatically during a trade to breakeven because I've tried to no avail ?
                    I tried with SetParabolicstop & Settrailingstop & also ChangeOrder.

                    Anthony


                    Comment


                      #25
                      Hello Anthony, thanks for your reply.

                      If you want to set up new parameters for SetParabolicStop or SetTrailingStop then call the method again with the new parameters. Make sure the FromSignalName parameter matches the previously submitted stop loss. See the tip on the help guide page for SetParabolicStop:

                      You may call this method from within the strategy OnBarUpdate() method should you wish to dynamically change the stop loss price while in an open position

                      Also note that SetParabolicStop and SetTrailingStop can not be used concurrently.

                      Please let me know if I can assist any further.
                      Chris L.NinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Aviram Y, Today, 05:29 AM
                      0 responses
                      2 views
                      0 likes
                      Last Post Aviram Y  
                      Started by quantismo, 04-17-2024, 05:13 PM
                      3 responses
                      25 views
                      0 likes
                      Last Post NinjaTrader_Gaby  
                      Started by ScottWalsh, 04-16-2024, 04:29 PM
                      7 responses
                      34 views
                      0 likes
                      Last Post NinjaTrader_Gaby  
                      Started by cls71, Today, 04:45 AM
                      0 responses
                      6 views
                      0 likes
                      Last Post cls71
                      by cls71
                       
                      Started by mjairg, 07-20-2023, 11:57 PM
                      3 responses
                      217 views
                      1 like
                      Last Post PaulMohn  
                      Working...
                      X