MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Screenshot
USDZAR, D1
Real
SolarWinds Indicator
SolarWinds
Author: GODZILLA
Subscribe to signal
FOREX GURU
20.06%, 1 200.60 USD
Multiple Regression Analysis. Strategy Generator and Tester in One Multiple Regression Analysis. Strategy Generator and Tester... New RenkoNew Renko Try product
New Renko
Author: Smok

Period

Returns the current chart timeframe.

ENUM_TIMEFRAMES  Period();

Return Value

The contents of the _Period variable that contains the value of the current chart timeframe. The value can be one of the values of the ENUM_TIMEFRAMES enumeration.

See also

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


Updated: 2009.11.17