Syntax
Public Function GetChartSymbol(chartIndex As Integer) As String
Description
This function is used to get the symbol name for the given chart index.
Parameters
Key | Description |
chartIndex | The chart position on the chart windows.0 means a current chart, the value of type Integer |
Return value
Returnsthe symbol name as the value of type string,else when getting (empty String), call GetLastError.
Sample
Public Sub main() Dim SymbolName SymbolName = GetChartSymbol(2) AlertMessage SymbolName End Sub
See Also