Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
      Brandon H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by alifarahani, Today, 09:40 AM
      6 responses
      33 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Kaledus, Today, 01:29 PM
      5 responses
      14 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Waxavi, Today, 02:00 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by gentlebenthebear, Today, 01:30 AM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X