EA cannot take profit
Hi
Why don't you put the take profit in the order send?
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point,"Amstell",0,0,Green);
Assuming that you want the EA (rather than the broker) to invoke the take profit, then the first thing I would do is to count downwards rather than upwards in your loops through orders. This has been well and frequently documented on the forum by me and others. Try that first and let us know how you go. Then we'll look in more depth if necessary.
CB
Hi,
This EA can placed order but it cannot take profit, I do not know why, can someone help?
Thank you in advance.