Please consider the following scenario:
Custom indicator 1,2,3 all calculating OnBarUpdate.
Strategy 1 also calculating OnBarUpdate.
Custom indicators 1,2,3 are exposing some variables to Strategy 1. Custom Indicator 1,2,3 take 20 ms to run and they take more calculations than the strategy. If the Strategy is calling the exposed variables from the indicators (plots and no plots). If both the indicators and the strategy are calculating on the same OnBarUpdate. How does it work?
The strategy is getting whatever value is exposed from the indicator or waits for the indicators to finish their calculation and update their value and then the strategy continues with its calculation?
In case the strategy just gets the value without waiting for the Indicator to finish updating. Is it possible to tell the Strategy to wait for the Indicator/s to finish their calculations and get the updated value. If so, how can this be done?
Comment