I need to sample the 1 minute indicator at 1 second. When I do this during backtesting the returned values is identical for every sample of the 1 minute bar though. It only changes when the 1 minute bar advanced to the next minute.
This does not mimic the realtime behavior of the indicator because I see it updating the indicator value for each tick when attached to a chart.
How can I sample the 1 minute indicator at 1 second intervals while backtesting?
Sample Psuedo Code
```OnStateChange()
{
...
else if (State == State.Configure)
{
vals1Min = MyInticator(BarsArray[ONE_MIN]);
vals3Min = MyInticator(BarsArray[ONE_SEC]);
double[] sampled1Min = double[10];
...
}
...
}
OnBarUpdate(){
if (BarsInProgress == ONE_SEC)
{
sampled1MinPrev[idx] = vals1Min[0];
}
}
```

Comment