Syntax
Public Function GetSymbolByIndex(ByVal SymbolIndex As String) As VTLGeneral.CSymbol
Description
This function used to get symbol object by symbol index at market watch on client terminal.
Parameters
Parameter |
Description |
SymbolIndex |
Index of symbol at market watch, value of type string. |
Return value
Returns a CSymbol object by index.
Sample
' Bid price by getting the symbol object by its index
Public Sub main()
Dim i as Integer
for i = 0 to ClientCode.SymbolsCount()
Dim vsymbol as VTLGeneral.CSymbol
vsymbol = ClientCode.GetSymbolByIndex(i)
if not vsymbol is nothing then
GUI.MsgDialog(vsymbol.bid.Tostring)
end if
next
End Sub
See Also
Back to VTL Server Script Index
|