Knowledgebase:
GetPositionType
Posted by Mohammad Rahhal, Last modified by Rawan Al Hourani on 05 July 2017 01:15 PM

Syntax

Public Function GetPositionType() As ENUM_TRADE_ACTION

This function is used to return the position operation type for Selected Position.

Parameter

No parameters.

Return value

Returns an integer value of type ENUM_TRADE_ACTION. If 0 is returned, then call GetLastError() function to get error.

Sample

 Public Sub main ()

  Dim Price
  Dim Commission
  Dim Amount
  Ticket = PositonGetTicket (1)
  PositionSelect (Clng (Ticket))‘Returns True if position selected successfully

  AlertMessage GetPositionType ()
 End sub


See Also


Back to VTL Client 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