Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tick handling

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

    Tick handling

    Hi again.
    What happen, If two ticks from different instruments will arrive simultaneous? Strategy is multi-instrument.

    #2
    That is not possible, one or the other will be first.
    RayNinjaTrader Customer Service

    Comment


      #3
      Ok. But second tick will arrive, while OnBarUpdate() will be executing. What happen?

      Comment


        #4
        OnBarUpdate() is synchronous. Each tick is processed in sequence.
        RayNinjaTrader Customer Service

        Comment


          #5
          For example, OnBarUpdate() is running on current tick, and I have received another three ticks, these ticks will queued (not rejected) and handled. Is this correct?

          Comment


            #6
            Your understanding is correct, NT does NOT drop ticks. ALL ticks are processed.
            RayNinjaTrader Customer Service

            Comment


              #7
              But, If I would be handling previous ticks, actual price might run away.
              And all actions, such as order submit, will be handling wrong.

              Thanks.

              Comment


                #8
                Well technically speaking the price has already ran away before you even got the information from your data provider due to internet latency. This is the nature of volatile markets.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  I think, while OnBarUpdate() method run on one tick and other ticks arrived, those ticks must be rejected.

                  Do you think about?

                  Comment


                    #10
                    Data should never be rejected. If data were rejected you would consistently be building erroneous bars.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      True. But I say about strategy. Strategy must rejects ticks, not NT Chart.

                      Comment


                        #12
                        Maybe I'm not understanding you, but I don't see why you would want to reject any information. If you feel you still want to do this you can look into the OnMarketData and OnMarketDepth methods. Set flags there and use them in OnBarUpdate to prevent further orders.
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          I think, If OnBarUpdate() will execute slowly due some reason, market and NT strategy will be mistiming.

                          Comment


                            #14
                            NT will not miss any ticks submitted by your broker/data provider.

                            Comment


                              #15
                              I talk about strategy, not NT. Is there any way to do it?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              599 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              345 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              558 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              558 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X