Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 07 September 2020 12:50 PM


An object that holds the open position data., so you can get position properties through it.

The following are values and the descriptions for every value:


Key Description 
BuySell Define buy or sell
ClosePrice Closing price
Commission Commission value
FloatingProfitLoss Profit loss value
Interest Interest value
Lots amount of lots
PosTime Time of open position
Price Price of open position
SymbolID Symbol ID
SymbolName Symbol name
Ticket Ticket number

See Also

Back to VTL Server Script Index

(0 vote(s))
Not helpful

Comments (2)
13 December 2015 08:08 AM
When we place a market order using NewMarketOrder() function, one of the parameters passed is the Comment.

How do we query the Comment of the order in CPosition ?
Hassan Abu Krayem
15 December 2015 11:45 AM
Hi :)

You can't query the comment for any position through VTL Server, so we have opened ticket # 132912 to add this feature to our development cycle
Post a new comment
Full Name:
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