Back to Community
Creating a Intraday stock ban if sold out that day

For my intraday strategy I'm looking at creating a rule that if there was a sell order that happened that day, you cannot enter into another trade for the rest of the day. How would I go about implementing that?

1 response


You could store the stock's symbol in a context list, then iterate this list when creating your new alpha signal and remove stocks that are in the ban context list before rebalancing.