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 Rapine Heihei, Today, 07:51 PM
      0 responses
      3 views
      0 likes
      Last Post Rapine Heihei  
      Started by frslvr, 04-11-2024, 07:26 AM
      5 responses
      96 views
      1 like
      Last Post caryc123  
      Started by algospoke, 04-17-2024, 06:40 PM
      6 responses
      49 views
      0 likes
      Last Post algospoke  
      Started by arvidvanstaey, Today, 02:19 PM
      4 responses
      11 views
      0 likes
      Last Post arvidvanstaey  
      Started by samish18, 04-17-2024, 08:57 AM
      16 responses
      61 views
      0 likes
      Last Post samish18  
      Working...
      X