MQL4参考 检测 Period

Period

Returns the current chart timeframe.

int  Period();

Returned Value

The contents of the _Period variable that contains the value of the current chart timeframe.

See also

PeriodSeconds, Chart timeframes, Date and Time, Visibility of objects