Posted by Angham Al-Banawien, Last modified by Salameh Abu Hashish on 15 January 2019 11:47 AM


 Public Function windowHandle (Symbol As String, timeFrame As ENUM_TIMEFRAMES) As Integer

This function is used to return the chart index depending on the chart symbol name and time frame.


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.


 Public Sub main()

    AlertMessage windowHandle (“EUR/USD”, PERIOD_D1)

 End Sub


See Also

Back to VTL Client Script Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions