Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to detect potential PDT on Robinhood Instant?

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?