Hey guys, so the algorithm that I'm building automatically makes buy/sell decisions at regular intervals throughout the day. I'm using schedule_function and order_target_percent to exit all of the account's positions 30 minutes prior to the end of the trading day, however, I am not sure how to pause my buy/sell decisions after that happens. As you can probably tell, I am new to coding, and this is mostly just a learning experience for me. Any suggestions on how to solve my problem?
Thank you