If I have both a strategy and a custom indicator applied to the same chart (regardless of which one I add first), will the chart always execute the strategy’s OnBarUpdate before the indicator’s OnBarUpdate on each new tick or bar? From my testing, this is what I am seeing.
Here’s the context:
I’m using a custom indicator to process signals and store them into a shared ConcurrentDictionary (think of it like a signal hub). My strategy then reads from this dictionary to generate entries. I want to test multiple strategy variations at the same time without duplicating the indicator logic inside each strategy, to keep things CPU-efficient.
The concern is timing — I need to ensure that the indicator has populated the dictionary before the strategy reads from it on the same bar.
Can anyone confirm the execution order, or suggest a reliable way to ensure this timing relationship?
Thanks!

Comment