Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Large differences in fills from the Open price of a bar

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

    Large differences in fills from the Open price of a bar

    Hi,
    I have a strategy which is calculating at bar close, and issues simple orders such as EnterLong(..)
    The fills realtime versus historical are sometimes very different - more different than can be described as slippage.
    (This is all in the Ninja sim account.)

    Historical trades tend to fill at the next bar Open price, which is what you would expect.
    Realtime trades tend to fill much closer to the Close price of the bar that generated the order.

    For example, a bar closes at 11575, the next bar opens at 11572.
    Historical trades fill at 11572.
    Realtime trades fill at 11474. (Default filltype)

    Is this unexpected? If not, is there a programming technique to provide similar results between historical and realtime? (I'm an advanced c# programmer.)
    Cheers,
    saltminer

    #2
    Hi saltminer,

    Historical market orders always fill at the open of the next bar following the condition. Real time market orders are filled according to the simulator engine. Fill type only applies to limit orders in a historical context.

    There's no way of changing fill dynamics of the real time simulator. You should expect similar fills in an automated strategy as would see if you manually placed a real time market order at the same time.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    68 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    37 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    62 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