EA opening many positions

 
My EA is opening many positions on a single bar, please, what should I do to it so that it will open a position per bar and will not open another position until the existing one is closed?
 
oladapolaleye:
My EA is opening many positions on a single bar, please, what should I do to it so that it will open a position per bar and will not open another position until the existing one is closed?
Note time you open a trade If time bar <= time last opened trade then newtrade is not allowed
 
oladapolaleye:
My EA is opening many positions on a single bar, please, what should I do to it so that it will open a position per bar and will not open another position until the existing one is closed?
Check to see if you already have a position open before you open a new one.
Reason: