Forum

How can I get an MQL5 AE, when submitting a Sell and Buy order at the same time, to close the Sell order immediately and set a TakeProfit for the Buy trade?

Each sell goes with a buy, if a sell is closed in its take profit, how could you put a take profit on that corresponding buy that was sent at the same time as the sell trade. This is my code: //+------------------------------------------------------------------+ //|