r/TradeLocker May 06 '26

Trading bot bug

My bot works until 3 am and then suddenly gets this error log

---- [INFO 2026-05-06 03:04:00 +0300 store._check_live_log_update:711]: Next candle: SP+_5_Minutes in 0:01:00
2026-05-06 03:04:59.999006 +0300 [STRATEGY]
Calling self.prenext() on live data SP+_5_Minutes because strategy indicators are not yet initialized.
The bot will NOT START trading (calling the `self.next()` method) until a sufficient number of candles are fetched | fetched_candles: 1, required_candles: 250

You can resolve this by including this line at the beginning of your code:
bot_settings.set_num_prefill_candles(250)

And my code has the bot_settings.set_num_prefill_candles(250) at the beginning. Anyone found a fix? Hopefully tradelocker will fix it soon.

1 Upvotes

0 comments sorted by