So I currently have an algorithm live trading on Robinhood instant. I'd like to try programming a check for a condition before placing a trade in a day that the number of current DT's made in the last 5 trading days is less than 3. I have no idea how to implement such a check though.
Any ideas?