Download MetaTrader 5

In need of a coder's assistance

To add comments, please log in or register
Launch your trading signal. Make profit from paid subscription!
tyrenwalker461
11
tyrenwalker461 2016.07.30 06:50 

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
Moderator
4708
Marco vd Heijden 2016.07.30 07:25  
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:
tyrenwalker461
11
tyrenwalker461 2016.07.30 15:13  
Marco vd Heijden:
Thank you so much Marco, you just lifted a huge weight off of my shoulders. Happy trading!
To add comments, please log in or register