SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Thu Sep 24, 2020 9:10 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Mar 10, 2011 10:14 pm 
Offline

Joined: Thu Mar 10, 2011 10:09 pm
Posts: 582
Hi guys,
I have a very easy but crucial question: is there any difference between Position.Amount and Position.Qty especially if I have a long position?

Thanks


Last edited by newDave on Fri Mar 11, 2011 12:59 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 12:54 am 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6817
Hi,

no difference.

Regards,
Anton


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 1:18 am 
Offline

Joined: Thu Mar 10, 2011 10:09 pm
Posts: 582
Thanks,
while playing with it I faced several situations when Position.Amount!=Position.Qty (even in absalut values.)
All this look quite strange.
Also I have to say that the meanings of Position.QtySold and Position.QtySoldShort are also not exactly clear for me.

I cannot find such an information about Position members in API guide(I would say there is no info at all about this) . Maybe you can write such info? Or you probably already have it written.
Otherwise how should the user guess about it? Mayby some users can gues it trying to think similarly to other trading systems UI, but I have experince only with Russian Quik and it really does not help to guess.

I am using trial and going to buy if I like it. In general, I am really impressed by the software but such a minor things really hinder the work a lot.


Top
 Profile  
 
PostPosted: Fri Mar 11, 2011 4:32 pm 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6817
Hi,

Qty = Abs(Amount).

Negative amount indicates short position in OQ portfolio.

Amount = QtyBough - QtySold - QtySoldShort;

Buy 50 :

QtyBought = 50
Amount = 50
Qty = 50
Side = Long

then Sell 150 :

QtySold = 50;
QtySoldShort = 100;
Amount = 50 - 50 - 100 = -50
Qty = 50
Side = Short


Regards,
Anton


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 1 guest


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