Thanks for clarifying the exact behaviour. Your response actually highlights my concern.
You have confirmed that Dhan deliberately sends the API stop-loss as a limit order at the trigger price, even though you know this can leave the position open if the market moves through that price.
My concern is: why should Dhan make a risk-management decision on behalf of the user that can expose the user to potentially unlimited losses? Dhan is not going to compensate the user if that limit order remains pending and the stock keeps falling. This should be a risk choice available to the user, not a decision imposed by Dhan.
Also, the assumption that âthe equity cash market is generally liquidâ cannot be applied to the entire cash market. There are many stocks where liquidity can be limited, and API users should be able to design their strategy around the actual characteristics of the stocks they trade.
Similarly, saying that âsharp one-directional moves that skip past the trigger are the exceptionâ does not reflect my actual trading experience. These situations happen daily in the type of trading I do, particularly because I primarily trade around news. News-driven moves can be extremely sharp, and reversals can happen very quickly.
In fact, with the way I trade, none of my stop-loss orders get executed when the price moves sharply against me. I sometimes get lucky when the price reverses and eventually comes back to my SL limit price, allowing the order to execute. But that is luckânot effective stop-loss protection.
When you provide an API, you should assume that users will use it for strategies and opportunities that are already possible through the platform. My expectation from a stop-loss is simple: I should not have to depend on the price reversing back to my limit order to get out of a losing position.
The whole reason I use a stop-loss is to have peace of mind that my downside is controlled.
With the current API implementation, that peace of mind simply does not exist. A triggered stop-loss can remain pending while the stock continues moving against me, potentially turning a controlled loss into a very large loss.
I understand the trade-off Dhan has described. But that trade-off should be presented as a choice to the user, rather than Dhan deciding that exact-price execution is preferable while the user bears all the downside when the order doesnât execute.
At the very least, API users should have an option for a more aggressive SL-L price, within the exchangeâs permitted limits, so they can decide whether they prefer price certainty or execution certainty.