What I am seeing is high CurrentBars numbers when adding additional timeframes. This makes it difficult to set a Check within OnBarUpdate for sufficient Bars needed to calculate required indicator lookback periods used by the trade logic.
Here's a sample of what is displayed..
BarsInProgress: 0, CurrentBars[0]: 2, CurrentBars[1]: 12991 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 12991 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 12992 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 12993 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 12994 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 12995 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 12996 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 12997 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 12998 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 12999 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 13000 BarsInProgress: 1, CurrentBars[0]: 2, CurrentBars[1]: 13001
Is there any way to ensure the CurrentBars numbers are synchronized the with other timeframes?
Comment