PDA

View Full Version : EA "Close all positions at profit target" closed all positions at loss ???



aexeniciey
05-18-2018,
Hello,
I use Expet Advisor - "Close all positions at profit target".
Last Friday this EA has closed my open positions when the total was in negative (with a loss). Why???
Did this happend to anyone?
I have noticed that just before the EA closed my positions there was a gap in trading, would this be a reason? Is there an error in this EA?
Anyone that has had any experence similar to mine please comment.
Can anybody tell me who else can I ask about this EA and if that could have happend because the gap in trading.
Waiting for comments.

aexeniciey
05-19-2018,
I'd need to know more about the logic of the Close All Positions EA. It's possible that the gap may have confused it.

Then again, if you are trying to close positions at a profit target, why not just set TP on each position?

afojagipugja
05-21-2018,
During volatile trading the StopLoss level for closing your script (Slippage) is broken and your orders will close below the target range.

To confirm/check this; go to your Terminals "Account History" window, right click on any closed order, stroll down to "Comments" and click on it, you should now have a new comments window in your terminal, look at your problem orders and if you see "sl/gap" then your script file is ok. If still in doubt simply bin it and program a new file or download another free copy.

Ahmadmef
05-22-2018,
There is probably an error on the coding part of that EA. The gap could definitely be a culprit in this situation but you really need to scrutinize everything.

Airbladedam
05-22-2018,
You should always test your EA extensively on demo or a small live account before going live fully.