SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Fri Dec 13, 2019 4:27 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Sep 21, 2019 6:45 am 
Offline

Joined: Tue May 15, 2018 1:33 am
Posts: 12
What's difference between EmitData(data,true) and EmitData(data,false)?


Top
 Profile  
 
PostPosted: Mon Sep 23, 2019 4:47 pm 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 562
Hi,
Code:
EmitData(DataObject data, bool queued = true)

Queued=true means that event will be placed in queue.
Queued=false means that event will be pushed to EventServer directly, w/o queue.
Commonly queue need for sync.


Top
 Profile  
 
PostPosted: Tue Sep 24, 2019 6:34 am 
Offline

Joined: Tue May 15, 2018 1:33 am
Posts: 12
Thank u for your reply.

So I understand my problem that frequent EmitData(data) cause the queue size become more and more big and reach the upperlimit and delay the data, but EmitData(data,false) works very well.

EmitData(data,false) works better than EmitData(data,true). Why do we need EmitData(data,true)?


Top
 Profile  
 
PostPosted: Tue Sep 24, 2019 9:51 am 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 562
Perhaps you are slowly processing new data in your strategy, and the queue reaches its limits.
You can profile strategy to find hot places.

However you can use EmitData with false.


Top
 Profile  
 
PostPosted: Fri Sep 27, 2019 9:29 am 
Offline

Joined: Tue May 15, 2018 1:33 am
Posts: 12
But when I use the EmitData(data,false), the strategy thread model changed and there are multi-threads go through the each InstrumentStrategy. why?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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