The order is positioned with takeprofit and stoploss. But when the price hits both take and stop, it's executed but the message appears in the image below in the diary. I'm testing on demo account.
if(latest_price.last > maCerto &&...
I'm studying MQL. I developed this code below. I'm looking for the following condition: If a trader hits StopLoss, I want EA to expect the price to return in the moving average, but I do not know how to do this in the code.
Anyone can help me...
What's wrong with this?
EA crasches in this section.
for (int Count = OrdersHistoryTotal()-1; ; Count--)