Does anyone know how to prevent your algorithm from making more than one trade per day? My algorithm (in Python) is based off a rolling window/consolidating indicator, and I am wondering if it is possible to prevent my algorithm from making more than one market order per day. I know that my Stop Loss/Profit Taking mechanism is just not working and I still don't understand why, but at the moment I would like to limit my algorithm to making one market order per day at the maximum.

Author