Knowledgebase:
WindowHandle
Posted by Angham Al-Banawien, Last modified by Rawan Al Hourani on 11 July 2018 08:48 AM


Syntax

 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.

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


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
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