I have an indicator that works correctly on it's own. It is set to Calculate.OnBarClose
If I instantiate an instance of the indicator and add it to the chart via my strategy, the indicator works correctly if the strategy is also set to Calculate.OnBarClose. However, if I change the strategy to Calculate.OnEachTick, my indicator stops working correctly, I get incorrect values.
I am invoking the .Update() of my indicator both in the strategies OnBarUpdate as well as the property definition of my indicator. I started doing this as standard operating procedure because I've had previous indicator issues where different indicator and strategy were receiving updates out of synch leaving the strategy with no values from the indicator occasionally.
Where am I going wrong?
Comment