Thanks, Roger. I'll add this code and test it over the next few days. Appreciate your help.
Hi Lynn,
I notice it's been a while since you asked this question. Could you by any chance have found what you were looking for, cause I'm interested, but with a slight twist, I would want to the EA also to open a position just one in the opposite direction in case of a Breakout.
So, the maximum trades per pair is 2, one long and one short only when conditions are met.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thanks, Roger. I'll add this code and test it over the next few days. Appreciate your help.