PositionSelectByIndex
Posted by Angham Al-Banawien, Last modified by Abdullah Almasharfah on 07 December 2018 04:38 PM

Syntax

Public Function PositionSelectByIndex (ByVal Index As Integer) As Boolean.

This function is used to choose an open position for the given position index at trade list.

Parameters

Parameter  Description 
index Open position index at trade list to be selected. Value of type is Integer.

Return value

Returns true if position was selected successfully otherwise returns false 

Note:
After choosing the open position, you can inquire about the property for the selected position using PositionGetDouble(), PostionGetInteger(),  PositionGetString(), PositionGetBool(), PositionGetTime().

Sample

Public Sub main()

   Dim Result As Boolean

     Result = ClientCode.PositionSelectByIndex (1) ’select the first open position at trade list     

   GUI.MsgDialog (Result)

 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