SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sat Apr 04, 2020 2:06 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Aug 06, 2007 8:20 pm 
Offline

Joined: Sat Feb 17, 2007 12:42 am
Posts: 199
Please please overload barseries.add so that one can add a bar with out a bar class reference. (or allow us to create a bar object - eitherway)

If we cant create our own bar objects because bar class doesnt allow us to then barseries is very inflexible.

However if we could do something like this

barseries.Add(begintime,endtime, open, high, low, close, volume, openint, type, size, complete)

Then we could build our own virtual bars and add them to a barseries. This way OnStrategyStart we can make sure the strategy always has proper bars added to its default barseries.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 11:05 am 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6817
ok, added in the source code. The next update will be available in the beginning of next week.

Regards,
Anton


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 2:29 pm 
Offline

Joined: Sat Feb 17, 2007 12:42 am
Posts: 199
Thanks, I actually solved the problem.

What i did load a time period of trades, calculate my virtual volume bar from trades and then add it to a irrelavant time bar series (ie 1234 secs) using the datamanger. Then once all bars where built, load a bar series from 1234 and add each bar to the main barseries. Hey presto objective acheived. Where theres a Will there is a Way i always say.

Still its a roundabout way to achieve the same result, direct support would be much nicer.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 3:55 pm 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6817
Added in the latest OpenQuant update.

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