SmartQuant Discussion
http://www.smartquant.com/forums/

Position.GetPrice()
http://www.smartquant.com/forums/viewtopic.php?f=60&t=10319
Page 1 of 1

Author:  sirinath [ Wed Aug 29, 2012 11:27 am ]
Post subject:  Position.GetPrice()

Is this the average price of the position if it was build up by different transactions?

Author:  Dr. Anton Fokin [ Thu Aug 30, 2012 11:07 am ]
Post subject:  Re: Position.GetPrice()

Hi, GetPrice returns current position liquidation price, i.e. current bid/ask of position instrument depending on position side (trade price or bar close price if you don't have quote data)

Regards,
Anton

Author:  Baraz Sergey [ Thu Aug 30, 2012 11:10 am ]
Post subject:  Re: Position.GetPrice()

Hi,

If you need to calculate a position average entry price - please take a look at the sample code here:
viewtopic.php?f=65&t=8425&p=27768#p27768

Regards,
Sergey.

Author:  sirinath [ Thu Aug 30, 2012 3:25 pm ]
Post subject:  Re: Position.GetPrice()

Can average price be added in a future update?

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/