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

Syncing account positions - active order cancellation

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

    Syncing account positions - active order cancellation

    Hi
    Is there a way of avoiding this ?

    Any active orders on the account previously generated by the strategy that does not match* an active strategy order will be cancelled.
    Should the strategy be unable to cancel and receive confirmation on the cancellation of these orders within 40 seconds the strategy will not start and an alert will be issued.

    How to make a strategy not interract with the account position and the account live orders? My concern is if for some reason I restart the strategy, some of the orders, while on historical data might be executed by NT8 whereas in reality on the account they were not and therefore if I understand well, the strategy will look to cancel those.

    Thanks

    #2
    Hello jakjak74,

    Thank you for your note.

    You would want to set the strategies start behavior to “Wait until flat”. Under this setting, new positions will not be executed until the strategies position has reached a flat state.

    Please see wait until flat section of our helpguide,


    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Alan

      Under this mode we still have (from https://ninjatrader.com/support/help..._positions.htm)

      When your strategy starts it will check for any active orders previously generated by the strategy on your account and cancel those first. Should the strategy be unable to cancel and receive confirmation on the cancellation of these orders within 40 seconds the strategy will not start and an alert will be issued.

      So is there a way for the strategy to not interact with the account orders already in place (I think mostly at the ones created by the strategy in the past which haven't been executed yet) ?

      Comment


        #4
        Hello jakjak74,

        There is no option which would not cancel any previous active orders generated by the strategy.
        With wait until flat setting, you would not need to be concerned about previous orders being executed.

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by frankthearm, Today, 09:08 AM
        7 responses
        29 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by NRITV, Today, 01:15 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by maybeimnotrader, Yesterday, 05:46 PM
        5 responses
        25 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by quantismo, Yesterday, 05:13 PM
        2 responses
        17 views
        0 likes
        Last Post quantismo  
        Started by adeelshahzad, Today, 03:54 AM
        5 responses
        33 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X