Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/2612-standardlibrary-cchart-cchartopen.md
T
2026-06-23 21:47:51 +08:00

580 B

Open

Opens chart with specified parameters and assigns it to the class instance.

long  Open(
   const string     symbol_name,     // symbol
   ENUM_TIMEFRAMES  timeframe        // period
   )

Parameters

symbol_name

[in]  Chart symbol. NULL means the symbol of the current chart (to which an expert is attached).

timeframe

[in]  Chart timeframe (from ENUM_TIMEFRAMES enumeration). 0 means the current timeframe.

Return Value

chart identifier.