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 abelsheila, Yesterday, 07:38 PM
    0 responses
    5 views
    0 likes
    Last Post abelsheila  
    Started by nailz420, Yesterday, 09:14 AM
    1 response
    38 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
    0 responses
    264 views
    0 likes
    Last Post NinjaTrader_Brett  
    Started by domjabs, 05-12-2025, 01:55 PM
    2 responses
    56 views
    0 likes
    Last Post domjabs
    by domjabs
     
    Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
    1 response
    58 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X