Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

update indicator on each tick

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

    update indicator on each tick

    • My strategy is set to Calculate.OnEachTick.
    • The indicator it hosts is also set to Calculate.OnEachTick, but I understand it inherits parent setting anyway.
    • Strategy primary data series is 15sec bars.
    • Strategy passes "Input" to indicator.
    • Why does indicator only run onbarupdate on each bar close?

    #2
    Hello iantriestrading,

    The strategy is the host in that case so it also has to be set to OnEachTick for the indicators to inherit that. When hosting scripts it passes all the way down from the top script even if your sub scripts use different settings.

    Comment


      #3
      Hi Jesse,
      I'm so confused by your response. In my original post I said "My strategy is set to Calculate.OnEachTick."
      So you just told me to do what I'm already doing.
      Could you recheck my post? Thanks!

      Comment


        #4
        Hello iantriestrading,

        Are you certain that your strategy is using OnEachTick? If you are hosting an indicator and its running on bar close that means the parent is using OnBarClose. The only other way for that to happen would be if you programmed the indicator to only execute on the first tick of the bar. In historical data everything will still run OnBarClose, you would only see OnEachTick in realtime.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        72 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        39 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X