One Trade Per Bar

 
I got his expert from Freelance that opens many trades per bar. I'd like someone to tweak it for me so that it can only open one trade per bar. The original developer has gone MIA. Please assist.
Files:
XDrive_v1.mq4  21 kb
 
Ken FX:
I got his expert from Freelance that opens many trades per bar. I'd like someone to tweak it for me so that it can only open one trade per bar. The original developer has gone MIA. Please assist.
Files:
XDrive_v1.1.mq4  22 kb
 
Marco vd Heijden:Thanks Marco. Could you set the EA to close all open trades when new bar opens? I'd appreciate it
Reason: