SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun Oct 21, 2018 1:39 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Bars vs Quotes
PostPosted: Wed Feb 29, 2012 11:47 pm 
Offline

Joined: Wed Apr 27, 2005 4:41 pm
Posts: 609
Location: Helsinki, Finland
Hi,

with Bars it's possible to do all sort of nice things, like for example Bars.Add(high,low etc).

But with Quotes not. Quotes only allows Quotes.Add(quote), which is kind of crazy. It's crazy because you need :
- first use DataManager.Add (Instrument, Bid, BidVolume etc)
- and then reread what you've just written with DataManager.GetHistoricalQuotes( Instrument, StartTime, EndTime)
- and with what you've just read, you can finally do the Quotes.Add

Really handy, agree?

Thanks already in advance for fixing this...

Regards,
Eelofi


Top
 Profile  
 
 Post subject: Re: Bars vs Quotes
PostPosted: Thu Mar 01, 2012 10:42 am 
Offline

Joined: Wed Oct 08, 2003 1:06 pm
Posts: 833
Hi Eelofi,

We will open Quote class constructor in the next version.

Regards,
Sergey.


Top
 Profile  
 
 Post subject: Re: Bars vs Quotes
PostPosted: Fri Mar 30, 2012 1:08 am 
Offline

Joined: Wed Apr 27, 2005 4:41 pm
Posts: 609
Location: Helsinki, Finland
Hi Sergey,

I think 3.4.1 has been out since, but quotes is still the same. Will the Quote class constuctor be open soon?

Thanks,
Eero


Top
 Profile  
 
 Post subject: Re: Bars vs Quotes
PostPosted: Fri Mar 30, 2012 12:48 pm 
Offline

Joined: Wed Oct 08, 2003 1:06 pm
Posts: 833
Hi Eero,

The following Quote class constructor has to be available in 3.4.1:

public Quote(DateTime dateTime, double bid, int bidSize, double ask, int askSize)

Regards,
Sergey.


Top
 Profile  
 
 Post subject: Re: Bars vs Quotes
PostPosted: Tue Apr 10, 2012 12:12 am 
Offline

Joined: Wed Apr 27, 2005 4:41 pm
Posts: 609
Location: Helsinki, Finland
Hi Sergey,

gave this another try. As far as I understand there is still no Quotes.Add(datetime, bid, etc), like you do have for Bars.Add. Can you double check?

Thx,
Eelofi


Top
 Profile  
 
 Post subject: Re: Bars vs Quotes
PostPosted: Tue Apr 10, 2012 9:46 am 
Offline

Joined: Wed Oct 08, 2003 1:06 pm
Posts: 833
Hi Eelofi,

There is no such method as Quotes.Add(datetime, bid,...), but there is Quotes.Add(myQuote) method. Together with open constructor of the Quote class it gives you a possibility to add quotes to the QuoteSeries:
Code:
   QuoteSeries quotes = new QuoteSeries();
      
   Quote quote = new Quote(DateTime.Now, 1, 1, 1, 1);
      
   quotes.Add(quote);


Regards,
Sergey.


Top
 Profile  
 
 Post subject: Re: Bars vs Quotes
PostPosted: Tue Apr 10, 2012 10:15 am 
Offline

Joined: Wed Apr 27, 2005 4:41 pm
Posts: 609
Location: Helsinki, Finland
Of course Sergey!

I shouldn't work during the night time, it makes me even slower in understanding :cry:

Thx,
Eelofi


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

All times are UTC + 3 hours


Who is online

Users browsing this forum: Baidu [Spider] 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