Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnBarUpdate method for Tick-by-Tick

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

    OnBarUpdate method for Tick-by-Tick

    Quick question on OnBarUpdate method. My strategy is using the tick-by-data and does some calcs for placing orders, however, I do not what to do all the calculations if the last tick is same as the current tick. I know, I can put simple compare statement in my OnBarUpdate to check tick value changed or not, but I would like to know whether there is setting or filtering that I can use in Ninja out of the box.

    thanks in advance for the help

    #2
    Hello rc554,

    Unfortunately there are no built in NinjaScript settings that can check for this. It must be custom coded.

    If you are interested in saving resources and don't need all calculations on a tick by tick basis, you can follow principles in this reference sample:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      so, as I am processing tick-by-tick data, I need to set the CalculateOnBarClose = false and then put a simple comparision statement in my code to compare with previous tick.

      Comment


        #4
        rc554, yes that sounds correct to us.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        60 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        145 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        283 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X