SymbolInfoTick
Posted by Mohammad Rahhal, Last modified by Abdullah Almasharfah on 04 December 2018 08:47 PM

Return value

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

    1. Returns property value: 

Public Overloads Function SymbolInfoTick(ByVal symbolName As String, ByRef tick As VTLTick) As Boolean

 

    1. 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

(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