Posted by Mohammad Rahhal, Last modified by Salameh Abu Hashish on 15 January 2019 11:22 AM


Public Function ChartSymbol(Optional chart_id As Long = 0) As String

This function is used to return the symbol name for the specified chart by a given the chart ID.


Key Description
chart_id Chart identifier, 0 is the current chart ,value of type Long

Return value

Returns the symbol name. If the chart does not exist, the result will be an empty string.In order to get an error , call GetLastError() function.


Public Sub main()

AlertMessage ChartSymbol(ChartOpen("EUR/USD",PERIOD_M1)) 'Opens a new chart for EUR/USD and returns the symbol name 

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