SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun Sep 24, 2017 6:11 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Jul 14, 2017 4:41 pm 
Offline

Joined: Tue Oct 13, 2009 12:19 pm
Posts: 195
Dear team,

when I log with this code:
Code:
Log(Math.Round(position1.Value * 0.00001,2), "P1Value");


the events per second drop dramatically, to like 20k from maybe 500k.

If I change the code to this:
Code:
double p1Value = Math.Round(Position1.Value * 0.00001, 2);
                                Log(p1Value, "P1Value");


then, I get the 500k events per second.

Could you look into that what causes this delay?

Regards
Mike


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

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 4 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