| SmartQuant Discussion http://www.smartquant.com/forums/ |
|
| Using Clock.DateTime in function calls is super slow http://www.smartquant.com/forums/viewtopic.php?f=86&t=14722 |
Page 1 of 1 |
| Author: | mikembb [ Fri Jul 14, 2017 4:49 pm ] |
| Post subject: | Using Clock.DateTime in function calls is super slow |
Dear team, when I use a reference with this code: Code: ReceiveIndexHistory(Clock.DateTime.ToString("yyyyMMddHHmm"), bar.CloseDateTime); the events per second drop dramatically. If I change the code to this: Code: DateTime alsdjkflas = Clock.DateTime; ReceiveIndexHistory(alsdjkflas.ToString("yyyyMMddHHmm"), bar.CloseDateTime); then, I get the regular speed for my strategy. Could you look into that what causes this delay? Regards Mike |
|
| Page 1 of 1 | All times are UTC + 3 hours |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|