full code: https://github.com/VladKochetov007/quick_trade/blob/master/quick_trade/trading_sys.py
While searching for suitable trading strategies, after the update, I