I am stuck trying to make my EA trade only once per bar. The complication is that I have 3 timeframes in the EA. I want to make sure that for each 1 hour bar, there is only one trade. On the higher timeframes, there can be multiple trades if their conditions remain true. How would it be best to specify the execute on 1 hour bar only, leave the Daily, 4 Hour conditions untouched?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I am stuck trying to make my EA trade only once per bar. The complication is that I have 3 timeframes in the EA. I want to make sure that for each 1 hour bar, there is only one trade. On the higher timeframes, there can be multiple trades if their conditions remain true. How would it be best to specify the execute on 1 hour bar only, leave the Daily, 4 Hour conditions untouched?
here is my code: