Issue with automatically place order after stop loss or taking profit
- How to put stop loss and take profit instantly
- How to inform EA if an order is closed by hitting stop loss or take profit?
- I can not place Stop Loss and not Take Profit to open an order.
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
- www.mql5.com
It is not "another" order and you can't prevent it. It is the order for the "out" deals to close the position. The same also happens on a live trading.
The orders for the "in" deals open the positions and the orders for the "out" deals close the positions.
MT5 works differently than MT4. Read the following ...
Orders, Positions and Deals in MetaTrader 5
MetaQuotes, 2011.02.01 16:13
Creating a robust trading robot cannot be done without an understanding of the mechanisms of the MetaTrader 5 trading system. The client terminal receives the information about the positions, orders, and deals from the trading server. To handle this data properly using the MQL5, it's necessary to have a good understanding of the interaction between the MQL5-program and the client terminal.
It is not "another" order and you can't prevent it. It is the order for the "out" deals to close the position. The same also happens on a live trading.
The orders for the "in" deals open the positions and the orders for the "out" deals close the positions.
MT5 works differently than MT4. Read the following ...