Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 12:32 PM

Return value

This function used returns the current prices for the specifics symbol. This function overloads 2 variants as the following:

  • Returns property value: 
Public Overloads Function SymbolInfoTick(ByVal symbolName As String, ByRef tick As VTLTick) As Boolean
  •  Returns bool value according to function is successfully performed: 
Public Overloads Function SymbolInfoTick(ByVal symbolID As Integer, ByRef tick As VTLtick) As Boolean


Parameter  Description 
symbolName Symbols name value of type string
symboLID Symbol ID, value of type 
tick Object that contain current prices value of type VTLTick


  ' price change by Symbol ID

 Public Sub main()

        Dim last_tick As VTLGeneral.VTLTick

        If ClientCode.SymbolInfoTick("EUR/USD", last_tick) Then

        GUI.MsgDialog ("Bid : "& CSTR( & " , ASK : " &  CSTR(last_tick.ask))


        GUI.MsgDialog ("The Symbol not exist")

        End if

End Sub

See Also

Back to VTL Server Script Index

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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