Traceback (most recent call last): File "/var/www/html/crpytotradingbot/bot_runner.py", line 521, in main() File "/var/www/html/crpytotradingbot/bot_runner.py", line 505, in main result = runner.run() ^^^^^^^^^^^^ File "/var/www/html/crpytotradingbot/bot_runner.py", line 388, in run engine.process_candle(candle) File "/var/www/html/crpytotradingbot/backtest.py", line 213, in process_candle self.strategy.process_candle(candle) File "/var/www/html/crpytotradingbot/hedge_recovery_engine.py", line 974, in process_candle thread.check_levels(candle.high, candle.low, self.order_engine, File "/var/www/html/crpytotradingbot/hedge_recovery_engine.py", line 465, in check_levels self.add_order(1, order_engine, fibo_value=fibo_value) File "/var/www/html/crpytotradingbot/hedge_recovery_engine.py", line 362, in add_order buy_lots = self.get_lots(0, buy_in_out, order_engine) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/crpytotradingbot/hedge_recovery_engine.py", line 271, in get_lots if sub.buy_id and sub.buy_id in order_engine.positions: ^^^^^^^^^^ AttributeError: 'SubOrderPair' object has no attribute 'buy_id'