General approach to aggregation periods

 

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

 
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)