Forum

Why are MT5 ENUM_TIMEFRAMES strange?

In MT5, using Print(PERIOD_M1,PERIOD_M5, etc...), we get: M1 1 M5 5 M15 15 M30 30 H1 16385 H4 16388 D1 16408 W1 32769 MN1 49153 In MT4, the ENUM constants were conveniently the minutes , but why have they chosen obscure constants for higher timeframes

MQL5 docs are terrible; how to improve them for noobs.

Apologies for the click-bait subject matter, but the new OO paradigm and investment of MQL5 deserves better documentation. Let's imagine I'm a noob coming from the world of sequential MQL4 into the new and scary world of MQL5 OO. I want to create something perfunctory like a label on a chart, my