Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order is open 1 tick after close

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

    Order is open 1 tick after close

    I have the strategy working with OnClose and I am using the strategy on the ES in real time.
    I notice, that the order are open 1 tick after the closing of the bar.

    for example, say the bar closes at 401.25, a Buy order will open at 401.50.
    and I am using the simple EnterLong function

    why the delay?

    #2
    Originally posted by AaronKoRn View Post
    I have the strategy working with OnClose and I am using the strategy on the ES in real time.
    I notice, that the order are open 1 tick after the closing of the bar.

    for example, say the bar closes at 401.25, a Buy order will open at 401.50.
    and I am using the simple EnterLong function

    why the delay?
    What kind of bars are you using?
    Minute bars? Tick? Range? Renko?

    The chart's BarType makes a huge difference.

    Comment


      #3
      Hello AaronKoRn.

      Thanks for your post.

      NinjaTrader is event-based and bar closures are signaled when the next bar starts developing.

      This is because we signal a bar closure with AddBar() in the BarsType, and we cannot be sure that we have the last tick of a bar until we get a tick that qualifies as an opening of the next bar.

      When using a strategy with the Calculate mode OnBarClose, the strategy will process data and place trades when the current bar closes and the new bar begins developing.

      Here is a help guide page about AddBar() for more information: https://ninjatrader.com/support/help...t8/?addbar.htm

      And, here is a help guide page about Calculate for more information: https://ninjatrader.com/support/help...?calculate.htm

      Please let us know if we may assist further.
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      132 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      74 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      117 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      113 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      89 views
      0 likes
      Last Post CarlTrading  
      Working...
      X