My understanding is that I can copy the series from another timeframe via the BarsArry:
For example, say I want to alter Timeframe2's indicator value return for SMA because I have 1 and 15 min timeframes and read the new 15min timeframe value from the 1 min OnBarUpdate:
First I copy TimeFrame 2's into a series:
var myEmptyIndexedSeries = new Series<double>(BarsArray[timeframe2]);
but how do I update the Close value of the latest bar from Timeframe 1?
I have tried a few things but I can't figure it out.
then I call the SMA with the changes series to get my altered value:
smaValue2 = SMA(myEmptyIndexedSeries, 14)[0];
any assistance is greatly appreciated.
Comment