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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X