With (Position.MarketPosition), we can determine if we have a long or short or flat position.
But how can we know with NinjaScript that a Limit Order is pending?
Another question: a limit order always canceled after the current candle is closed.
I have created a counter to keep the order active until the counter is reached, and it works.
However, I would like to know if there is a command or an option that can be added to keep the order active without needing a counter.
Best regards,
Comment