Knowledgebase
Symbol (By Index)
Posted by Yousef Ibrahim on 02 February 2012 03:32 PM
Public Overrides Function Symbol (ByVal Index As IntegerAs LPSymbol

This function should return an object of type LPSymbol for the symbol of this Index.

if your LP does not support this value, you can return 0, in this case you have to set the symbol manually in the bridge, instead of selecting it from the combo list.

Sample

Public Overrides Function Symbol(ByVal Index As IntegerAs LPSymbol

        Dim Sym As VertexFXClientAPI.COSymbol

        Sym = m_oClient.SymbolByIndex(Index + 1) ' Because our API starts from 1!

        If Sym Is Nothing Then

            Return Nothing

        Else

            Return New LPSymbol(Sym.Name, Sym.Bid, Sym.Ask)

        End If

    End Function

 


See Also

(0 votes)
This article was helpful
This article was 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. This is required to prevent automated registrations and form submissions.

Help Desk Software by Hybrid Solutions