Download MetaTrader 5
To add comments, please log in or register
Do you want to know about the MQL5.community development? Have a look at the Wall!
OldZ
52
OldZ 2010.05.13 07:42 

 1

PERIOD_CURRENT

All predefined timeframes of charts have unique identifiers. The PERIOD_CURRENT identifier means the current period of a chart, at which a mql5-program is running.

2

ENUM_TIMEFRAMES  Period();       Returns the current chart timeframe

int _Period   The _Period variable contains the value of the timeframe of the current chart.

 

 What is the difference ?

Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Chart Timeframes
  • www.mql5.com
Standard Constants, Enumerations and Structures / Chart Constants / Chart Timeframes - Documentation on MQL5
/
To add comments, please log in or register