Hello programming experts. This simple EA allows multiple (usually hedged) trades to be closed when an inputed profit target is reached. It is potentially very useful.
However, like other simple EA's of its kind I've tested, once the profit target is reached, it will start to close positions, but then it will stop closing positions when that floating profit drops below the target level (easy to happen if the price is changing or the negative trades are the last to be closed).. so it tends to leave 1 or 2 trades still open.. and then will close them only if the profit target returns again... not a good situation for hedged trades as you remain exposed to the market one way or another..
Can anyone fix this: Once the profit target is hit it should close 100% of open trades and ignore any change to that floating profit level during the execution process.
If anyone can fix this out of the goodness of their heart then well and good, but if someone with a good history on FF (multiple vouchers) wants me to pay them a modest sum for their services then please send me a PM. Thanks!
However, like other simple EA's of its kind I've tested, once the profit target is reached, it will start to close positions, but then it will stop closing positions when that floating profit drops below the target level (easy to happen if the price is changing or the negative trades are the last to be closed).. so it tends to leave 1 or 2 trades still open.. and then will close them only if the profit target returns again... not a good situation for hedged trades as you remain exposed to the market one way or another..
Can anyone fix this: Once the profit target is hit it should close 100% of open trades and ignore any change to that floating profit level during the execution process.
If anyone can fix this out of the goodness of their heart then well and good, but if someone with a good history on FF (multiple vouchers) wants me to pay them a modest sum for their services then please send me a PM. Thanks!
Attached File(s)
close all positions at profit target.mq4
5 KB
|
10,300 downloads