what is the correct instruction to run on a NinjaTrader7 script to close all positions of the same symbol of the current Chart regardless of whether they were launched manually or with a strategy? Those of the actual account with the broker (or Market Replay if I am connected to it)
So if the Chart is ES 12-19 I want to close any open position ES 12-19 regardless of whom - or how they were opened it.
Similarly what's the best way to know if I have any open positions of the same symbol of my chart ES 12-19, those of the actual account with the broker (or Market Replay if I am connected to it).
And similarly what's the best way to cancel any order for the same symbol of my chart ES 12-19, those of the actual account with the broker.
Thank you.
Giogio
Comment