Syntax
Public Function windowHandle (Symbol As String, timeFrame As ENUM_TIMEFRAMES) As Integer
Description
This function is used to return the chart index dependingon the chart symbolname and time frame.
Parameters
Key | Description |
Symbol | Chart symbol name that wants to get the index for,a value of type String |
timeFrame | Period of the chart that wants to get the index for, a value of type ENUM_TIMEFRAMES |
Return value
Returns the chart index value of type Integer,If chart not opened returns -1.
Sample
Public Sub main() AlertMessage windowHandle (EUR/USD, PERIOD_D1) End Sub
See Also