Return value
This function used returns the current prices for the specifics symbol. This function overloads 2 variants as the following:
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
Parameters
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 |
Sample
' 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(last_tick.bid) & " , ASK : " & CSTR(last_tick.ask))
else
GUI.MsgDialog ("The Symbol not exist")
End if
End Sub
See Also
Back to VTL Server Script Index
|