Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Inconsistent Order Persistence

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

    Inconsistent Order Persistence

    Having a problem with particular orders that will not persist more than one bar in a backtesting strategy.

    In the strategy, entry, profit target, and protective stop orders are created at various times. The protective stop orders (ExitLongStop) are always cancelled the next bar, but the entry and profit target orders (EnterLongStopLimit and ExitLongLimit) remain in force as they should.
    Already using "TimeInForce = Cbi.TimeInForce.Day" in the Initialize block -- I understand this is what is supposed to keep orders in force all day until filled or cancelled.

    Right now I'm forced to use a kludgy workaround, but it may become unwieldy or unworkable as the strategy grows or becomes more complex. What could be the explanation of this inconsistent order persistence ?

    #2
    Shogun SunTzu,

    Those orders expire at the end of the bar unless you resubmit it to let the script know to keep it alive. Please see this article for options available to you: http://www.ninjatrader-support.com/H...tml?Overview36

    Please review the "Order Submission for Entry and Exit Methods - Basic Operation" section.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    72 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    39 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X