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

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
This EA can placed order but it cannot take profit, I do not know why, can someone help?
Thank you in advance.