Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Limit Orders via Managed Approach

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

    Limit Orders via Managed Approach

    Hi,
    If I set < CalculateOnBarClose = false; >
    and try to enter a long position via < EnterLongLimit() >
    will my order most likely be always cancelled as 'Cancelled expired order', due to having no chance (or very little chance) to be filled prior to the next incoming tick?

    If that is true (and I have only tested on Market Replay, not in a live market on Sim101), then do you have to use the Unmanaged Approach in order to enter limit orders when using tick by tick data ( CalculateOnBarClose = false ) ?

    thanks for any advice / clarification on this
    rgds

    #2
    Hello Pourleau,

    This is true if you're submitting to a 1 tick series, sure. But the auto-expiration logic is tied to bars. If you submit to a 5 minute bar, then the order won't expire until the next 5 minute bar. It works this way regardless if CalculateOnBarClose is true or false.

    You can also submit limit orders with liveUntilCancelled as true and they will not be cancelled unless you manually issue CancelOrder()

    EnterLongLimit(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double limitPrice, string signalName)
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    649 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    576 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X