Knowledgebase:
ChartSymbol
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 11 July 2017 03:25 PM

Syntax

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.

Parameters

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.

Sample

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))
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