Hi, I would imagine I could put some simple code at the end of my algo that would close all my open orders each day in order that I can replicate live trading. Logic would be something as simple as
If TIME = 3:59pm
Stop running code
Close all open orders
Can someone help me with the syntax here?
Thanks!