Stop EA to trade multiple times per bar

 
What could be a global variable that would check if an EA has executed ANY order in the current bar, and if any order was executed in the current bar, it must wait until the next bar? This should be a global 'override' that could not be influenced by the rest of the code.

Joe Gelet
www.eesfx.com
www.eliteeservices.net
 
Just make sure the code that opens your order is executed only once per bar. Have a look at my post HERE. It's the fourth post from the top.
Reason: