ChartOpen
Opens a new chart with the specified symbol and period. The command is added to chart message queue and executed only after all previous commands have been processed.
long ChartOpen(
string symbol,
ENUM_TIMEFRAMES period
); |
Parameters
symbol
[in] Chart symbol. NULL means the symbol of the current chart (the Expert Advisor is attached to).
period
[in] Chart period (timeframe). Can be one of the ENUM_TIMEFRAMES values. 0 means the current chart period.
Return Value
Note
|