I added a second timeframe to my strategy and am trying to get the highest point from a specific range from the second timeframe.
All appears to be ok..except for one thing. The lookback period is not functioning properly. I have set it to 722 bars and it appear to be loading just the last 24.
Initialize
Add(PeriodType.Minute, 60);
OBU
private int FibLookBack = 722;
if (BarsInProgress == 1)
{
minLookback = MIN(Lows[1], FibLookBack)[1];
maxLookback = MAX(Highs[1], FibLookBack)[1];
PrintWithTimeStamp("Max is" + maxLookback);
}
Any idea how I can fix this?
Comment