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 burtoninlondon, Today, 12:38 AM
        0 responses
        4 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        12 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        13 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X