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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      60 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      147 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      161 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      284 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X