Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy opens order two bars after signal bar

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

    Strategy opens order two bars after signal bar

    Hi i have strategy that is based on ticks but with firsttickofbar


    Mostly it opens alright but sometimes strategy opens two bars after the signal bar. I provided screenshot in the link. how can this be prevented?
    Logic if engulfing close for shorts (Close[1] < Open[2])
    thank you

    #2
    Hello tkaboris,

    1-tick intra-bar granularity, TickReplay, and Calculate.OnPriceChange / .OnEachTick would be necessary to place orders immediately intra-bar.


    Is this real-time or historical?

    Have you implemented 1-tick intra-bar granularity and is TickReplay enabled?
    https://ninjatrader.com/support/foru...377#post773377

    Are you reviewing output from prints and TraceOrders? (Are you printing the order object from OnOrderUpdate())
    https://ninjatrader.com/support/foru...121#post791121

    Please include the output from the NinjaScript Output window saved to a text file so I may review.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi this is market replay.
      No i havent implemented 1tick bar granularity.

      Comment


        #4
        Hello tkaboris,

        Playback with Market Replay will work the same as adding to a real-time chart with a live connection.

        Calculate.OnPriceChange/.OnEachTick is still necessary. 1-tick intra-bar granularity and TickReplay is still necessary for historical data.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        43 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        30 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        47 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Working...
        X