SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Thu Oct 22, 2020 3:40 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Position.GetPrice()
PostPosted: Wed Aug 29, 2012 11:27 am 
Offline

Joined: Thu Oct 13, 2011 7:11 pm
Posts: 41
Is this the average price of the position if it was build up by different transactions?


Top
 Profile  
 
 Post subject: Re: Position.GetPrice()
PostPosted: Thu Aug 30, 2012 11:07 am 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6817
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


Top
 Profile  
 
 Post subject: Re: Position.GetPrice()
PostPosted: Thu Aug 30, 2012 11:10 am 
Offline

Joined: Wed Oct 08, 2003 1:06 pm
Posts: 833
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.


Top
 Profile  
 
 Post subject: Re: Position.GetPrice()
PostPosted: Thu Aug 30, 2012 3:25 pm 
Offline

Joined: Thu Oct 13, 2011 7:11 pm
Posts: 41
Can average price be added in a future update?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group