Because of slippage, the price you want to exit the trade is not available / allowed by the broker. There is no way to force it by code, and for manual trading, just try to repeat closing it until the broker accept it!
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.