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 rtwave, 04-12-2024, 09:30 AM
    2 responses
    20 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by tsantospinto, 04-12-2024, 07:04 PM
    5 responses
    67 views
    0 likes
    Last Post tsantospinto  
    Started by cre8able, Today, 03:20 PM
    0 responses
    6 views
    0 likes
    Last Post cre8able  
    Started by Fran888, 02-16-2024, 10:48 AM
    3 responses
    49 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Started by martin70, 03-24-2023, 04:58 AM
    15 responses
    115 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X