MQL4 Programming Help!!! - Only One Opened Trade Pair, Per Signal. - page 3

 
Lynn:

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.