In need of a coder's assistance

 

Can someone please code my EA to only execute once per hour bar? Sometimes I get entered into a trade and get stopped out within the same bar/hour, but since conditions are still met I get entered into another trade and get stopped out again and this results in multiple losing trades. If anyone would be kind enough to program it where it only executes once when conditions are met per hour bar? Here's the EA attached:

Files:
 
tyrenwalker461:

Can someone please code my EA to only execute once per hour bar? Sometimes I get entered into a trade and get stopped out within the same bar/hour, but since conditions are still met I get entered into another trade and get stopped out again and this results in multiple losing trades. If anyone would be kind enough to program it where it only executes once when conditions are met per hour bar? Here's the EA attached:

Files:
 
Marco vd Heijden:
Thank you so much Marco, you just lifted a huge weight off of my shoulders. Happy trading!
Reason: