Syntax
Public Function ChartOpen(Symbol As String, Period As ENUM_TIMEFRAMES) As Integer
Description
This function is used to open a new chart with the specified symbol and specified period.
Parameters
Key | Description |
Symbol | Symbol name to open new chart at ,value of type is String. |
Period | Time frame value of type ENUM_TIMEFRAMES. |
Return value
If successful, it returns the opened chart ID, otherwise returns 0.
Sample
Public Sub main()AlertMessage ChartOpen("EUR/USD",PERIOD_M1) End Sub
See Also