Syntax
ReadOnly Property SymbolByIndex(ByRef Index As Integer,Optional ShowUnused As Boolean = False) As COSymbol
This property is used to get the symbol object of type COSymbol which belongs to the given symbol index.
Parameters
Part |
Description |
Index |
Trading symbol Index, the value of type integer. |
ShowUnused |
To indicate if the requested symbol is used or not, the value of type is Boolean. Note: make it true to get the symbol of type group. |
Sample
Private Sub SymbolByIndex_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SymbolByIndex.Click
'API is perdefined variable as CVertexFXClientAPI
Dim vSym As COSymbol
vSym = API.SymbolByIndex(1)'The first symbol at market watch
Msgbox("Symbol name : " & vSym.name & "Symbol Bid " & vSym.Bid )
End Sub
See Also
VertexFX Client API Index
|