SmartQuant Discussion

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)


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


If you need to calculate a position average entry price - please take a look at the sample code here:


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