Knowledgebase:
SymbolByID
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 14 August 2018 07:55 AM

Syntax

ReadOnly Property SymbolByID(ByRef ID As Integer,Optional ShowUnused As Boolean = False) As COSymbol

This property is used to return the symbol object of type COSymbol which belongs to the given symbol Id.

Parameters

Part Description 
ID Associated symbol Identifier to get symbol object, Value of type Integer.
ShowUnused To indicate if the requested symbol is used or not, the value of type Boolean.
Note: make it true to get the symbol of type group.

Sample

 Private Sub SymbolByID_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SymbolByID.Click

         'API is perdefined variable as CVertexFXClientAPI

          Dim vSym As COSymbol

          vSym = API.SymbolByID(6)'EUR/USD

          Msgbox("Symbol name : " & vSym.name & "Symbol Bid " & vSym.Bid )

 End Sub

 


See Also


VertexFX Client API 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