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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    85 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    47 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    67 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X