The Bot loads a set number of days of history when it starts (its warmup, 7 to 30 days). Week, month and 52-week levels need more, so each time the Bot starts it also loads the extra history they need from your broker, and keeps it on your computer:
- The 52-week high and low: 373 days.
- Last month's high and low: 65 days.
- The month's opening price: 35 days.
- Last week's high and low: 16 days.
- The week's opening price or opening gap: 9 days.
A week's or month's level is only used once its whole week or month is in that history, so Backtest and the Bot read the same lines. If your broker can't give that much, or an hour or more of candles is missing, the Bot waits until it has watched a whole week or month itself. The 52-week high and low wait the same way for 52 whole weeks in a row, which can mean up to a year. Your computer keeps the candles the Bot has seen, even when it restarts, so the wait doesn't start again. Your strategy's chart and the script you copy to a platform read the chart's own candles, so they draw the 52-week lines only on a chart that holds more than a year, such as a 4-hour or daily chart. When you assign the strategy to an account, Wildflower tells you the latest date it can start. A backtest reads the same history the same way.
When the contract rolls. Every few months a future moves to its next contract, which trades at a different price. On that candle, the Bot and Backtest move every level they remember by the gap between the two contracts. So yesterday's, last week's, last month's and the 52-week levels sit where the new contract trades. Your strategy's chart and the script you copy to a platform read the chart's own prices.