How can I restrict my intraday trading script to eliminate multiple trades of a single stock in my Data Series?
Size:
Color:
That's how I would go about it:
1. Create and initialize a boolean variable (e.g. (bool restrictTrading = false) = still can trade) or a counter (1,2... trade(s) in a symbol i.e. integer variable)
2. Before entering, check that variable (e.g. if it's false, still can enter trades)
3. When a Position is created ( e.g. if( BuyAt... != null ), set it to true.
4. When the Position is exited, or some other condition, reset the variable back to false.
Size:
Color: