After a couple more hours of messing around, I gained understanding of this. For anyone else that comes across it, ENUM_TIMEFRAMES is one of the parameters of integers which allows you to set the aggregation period you desire... Or you can leave Period() in its place and that will use the aggregation period being viewed on the chart (If I understood this correctly)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Greetings community,
First post. Thank you in advance for any help. In general, does an MT5 EA base aggregation period (H1, H6, D1, etc.) off the chart that is in view in MT5 when you activate the EA or can the aggregation period be changed in the script? Are you able to use different aggregation periods for different indicators? For example, Buy when the H1 candle closes above the D1 SMA or visa versa?
Thank you!!
The Dude