Return value
This function used returns the current prices for the specifics symbol. This function overloads 2 variants
- 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
Parameters
Parameter | Description |
symbolName | Symbols name value of type string |
Symbol ID, |
|
tick |
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 ifEnd Sub
See Also