wahoo.mql replies to: Help needed for a simple stop and reverse martingale ea

Hi dear coders,

I found this EA posted in the mql5 forums. It is a basic tunnel martingale ea that opens a random position with certain SL/TP and then reverses it if the SL was hit with a lot size multiplier till it hits the TP and starts all over. The ea is working fine, however, it works as intended only at one chart at a time, for some reason it does not work properly when attached to multiple charts at the same time (even though i have changed the magic number on each chart). If lets say the EURUSD position closed in a loss it multiplies the lot size for other currency pairs and does not open position and all charts attached.
I would really appreciate if someone could have a look at the ea logic and finds out why that happens and how to fix it.
Thanks in advance.

P.S. The EA is working perfectly as described if attached to one chart only, so feel free to play around with it if that suits you.

Attached File

File Type: mq4a_r_n_v2.mq4   17 KB | 33 downloads

Leave a Reply

Your email address will not be published. Required fields are marked *