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

ChangeOrder on managed approach

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

    ChangeOrder on managed approach

    Hello,

    I'm programming a MTF scalping strategy based on range bar with managed approach. The entery and the exit is on the same bar....

    I use the upper time frame to trigger the entry and the lower time frame to manage the position.

    I want to change the stop loss with 'ChangeOrder' but is called only in unmanaged approach.

    Is there a way to do this in managed approach?

    Thank for your help.

    Michel

    #2
    Hello elechim,

    Thanks for your post.

    What method are you using for stop loss?
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hello Paul,

      I use SetProfitTarget and SetStopLoss.

      Regards,

      Michel

      Comment


        #4
        Hello Michel,

        Thanks for your reply.

        You can dynamically change the SetStopLoss() method as needed. After the order has closed you would then want to reset your stoploss value as needed for the next order. From the helpguide: "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, "Should you call this method to dynamically change the stop loss price in the strategy OnBarUpdate() method, you should always reset the stop loss price/offset value when your strategy is flat otherwise, the last price/offset value set will be used to generate your stop loss order on your next open position "

        Here is the link to the SetStopLoss page: http://ninjatrader.com/support/helpG...etstoploss.htm
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DanielTynera, Today, 01:14 AM
        0 responses
        2 views
        0 likes
        Last Post DanielTynera  
        Started by yertle, 04-18-2024, 08:38 AM
        9 responses
        40 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by techgetgame, Yesterday, 11:42 PM
        0 responses
        12 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Yesterday, 11:36 PM
        0 responses
        2 views
        0 likes
        Last Post sephichapdson  
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,615 views
        0 likes
        Last Post aligator  
        Working...
        X