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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X