Check this out. I checked the code for this EA and the code does not allow for the same take profit to be hit twice. It is explicit in that the variable that stores the Take profit gets incremented after it is hit therefore there is no way for it to hit the old takeprofit since it no longer exists. The only way this happens is if the ea is reset or meta disconnects. unfortunately mine MT4 does disconnect on occasion usually without any noticeable break in pricing, just a quick disconnect and reconnect, and that stupid sound that it makes, the boing thing.
But here is a fix if you are interested. try this. Essentially it is the same EA, but instead of the variables for SL and TP being reset on start and close, i put a little test in there that goes like this... if there are no open positions, then reset the sl and tp variables otherwise, leave them be.
Let me know how it works out for you. There are no live markets obviously today, saturday, for me to test it on, but the compiler shows no errors.
The best to you.
Nick
But here is a fix if you are interested. try this. Essentially it is the same EA, but instead of the variables for SL and TP being reset on start and close, i put a little test in there that goes like this... if there are no open positions, then reset the sl and tp variables otherwise, leave them be.
Let me know how it works out for you. There are no live markets obviously today, saturday, for me to test it on, but the compiler shows no errors.
The best to you.
Nick
Attached File(s)
ManageTPv2-4_TP_fix.mq4
6 KB
|
994 downloads
ManageTPv2-4_TP_fix.ex4
6 KB
|
657 downloads