Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

pending orders getting canceled

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

    pending orders getting canceled

    I have a strategy running and has a long position.it submits a pending stop and target order.now when i reload the data from historical data manager,the strategy is automatically disabled and again enabled.It also cancels my pending orders.
    This brings me to a situation where the strategy is running and has a long position and no target and stop orders.
    my question is when i reload the data ,how can i keep the stop and target orders running and avoid getting them cancelled
    Thank you

    #2
    Hello easyfying,

    Thanks for opening the thread.

    If you would like to have your strategy resume if data has been reloaded or if the strategy has briefly been disabled, I would suggest to look into using Immediately Submit instead of the default Wait Until Flat Start Behavior.

    Immediately Submit will try to match any active orders that were made by the strategy, while Wait Until Flat will cancel any active orders that were previously made.

    I would suggest to review the documentation on syncing account positions for more information on how these start behaviors work exactly, and testing the behavior when disabling and re-enabling a simple strategy that can enter a position quickly. The SampleOnOrderUpdate strategy is a good example that can be used to test start behaviors quickly.

    Syncing Account Positions is documented here: https://ninjatrader.com/support/help..._positions.htm

    SampleOnOrderUpdate strategy - http://ninjatrader.com/support/forum...ead.php?t=7499

    Additionally, there are NinjaScript settings that can cancel entry and exit orders when a strategy is disabled. Please see the 'Understanding the NinjaScript tab' section of the Options menu documentation here: https://ninjatrader.com/support/help...tegies_tab.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X