SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Thu Nov 14, 2019 3:57 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Oct 29, 2019 8:39 pm 
Offline

Joined: Mon Aug 05, 2019 7:11 pm
Posts: 15
There are many instruments have non-integer size, but OpenQuant2014 only provide integer type for bid/ask size like:

Code:
public Bid(DateTime dateTime, byte providerId, int instrumentId, double price, int size);


Is there an official way to deal with this?


Top
 Profile  
 
PostPosted: Wed Oct 30, 2019 10:17 am 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 552
Hi,
currently double size is not supported in OQ2014.
However, you can save additional info in fields, eg:
Code:
trade[index] = 123.456;
double size = (double)trade[index];

If this is appropriate way to you we can add fields for all types of ticks.


Top
 Profile  
 
PostPosted: Wed Oct 30, 2019 1:33 pm 
Offline

Joined: Mon Aug 05, 2019 7:11 pm
Posts: 15
skuvv wrote:
Hi,
currently double size is not supported in OQ2014.
However, you can save additional info in fields, eg:
Code:
trade[index] = 123.456;
double size = (double)trade[index];

If this is appropriate way to you we can add fields for all types of ticks.


Yes, it would be a great pleasure if you add double size in the next version of OQ2014, because all the framework is based on int size, it would be difficult and error-prone if I try to do it in another way.


Top
 Profile  
 
PostPosted: Wed Oct 30, 2019 2:19 pm 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 552
dave10030 wrote:
Yes, it would be a great pleasure if you add double size in the next version of OQ2014, because all the framework is based on int size, it would be difficult and error-prone if I try to do it in another way.

Double size is not planned now.


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