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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    60 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 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