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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        71 views
        0 likes
        Last Post PaulMohn  
        Working...
        X