I’ve faced this exact issue many times, @neeraj0309, especially while trading options and intraday stocks.
When the market moves fast and you try to square off from the chart, that ‘order rejected’ popup because of a pending target is the worst. Going back to cancel the old order manually is just too slow and risky.
It’ll be much better if the Dhan team adds a simple fix: clicking ‘Square-off’ on the chart should automatically clear all pending orders for that position. It would make the exit process much smoother for everyone. @PravinJ@Dhan