Knowledgebase: > Properties
OpenPositionByIndex
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 09 September 2020 09:58 AM

Syntax

 Readonly Property OpenPositionByIndex(ByRef Index As Integer) As VertexFXBOAPI.COOpenPosition

Description

This property used to get COOpenPosition object by giving the position index at trading list.

Parameters

Part Description
Index The location of the open position at trading list ,Value of type is Integer.

Remarks  

If you want to list all of the open positions, you can use this property  (using the index of the open position).

Return value

 Returns object of type COOpenPosition.

Sample

 Public WithEvents BOAPI As CVertexFXBOAPI

Private Sub OPosition_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OPosition.Click

    Dim vPos As COOpenPosition

    vPos = BOAPI.OpenPositionByIndex(1)

    Msgbox("Position ticket number :" & vPos.Ticket & "Lots: " & Lots )

 End Sub​

See Also


VertexFX Backoffice 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