OpenPositionByIndex
Posted by Mohammad Rahhal, Last modified by Fouad Faraj Allah on 02 July 2019 04:26 PM

Syntax

ReadOnly Property OpenPositionByIndex(ByRef Index As Integer) As COOpenPosition

Description

This property is used to return the object of type COOpenPosition that belongs to the given open position index.

Parameters

Part Description 
index  Open position index in trade list , value of type is Integer.

Sample

 Private Sub OpenPosition_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenPosition.Click


    'API is perdefined variable as CVertexFXClientAPI

   Dim Pos As COOpenPosition

   Pos = API.OpenPositionByIndex(1)

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

 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