GetSymbolByIndex
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 07 January 2019 10:14 AM

Syntax

Public Function GetSymbolByIndex(ByVal SymbolIndex As String) As VTLGeneral.CSymbol

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

(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