Examples of Working with the Chart - Chart Constants - Constants, Enumerations and Structures - MQL4 Reference - MQL4 Documentation
MQL4 TUTORIAL BASICS - 7 HOW TO USE SWITCH AND CASE - MQL4TUTORIAL.COM
Converting PERIOD to numbers and working with 2 periods in one EA - Easy Trading Strategy - Expert Advisors and Automated Trading - MQL5 programming forum