This is probably a math question more than anything, but I'm trying to simulate, in Strategy Analyzer, the changing indicator values that you'll get when running Calculate.OnEachTick on live data.
Specifically, I have tick data from IQfeed and want to calculate the changing Bollinger Band Upper and Lower values of a 15 minute bar on the fly using historical data within a strategy in order to simulate Calculate.OnEachTick for that indicator.
If I'm using a 2 bar SMA for the Bollinger, I will know the prior 15 min bar's closing value of the upper and lower, and now with each tick, I want to calculate how the upper and lower band change.
I just can't wrap my head around how to do this. Can anybody help?
Thanks,
Rick
Comment