SmartQuant Discussion http://www.smartquant.com/forums/ |
|
Strategy Project - Multiple my Strategies Firing http://www.smartquant.com/forums/viewtopic.php?f=86&t=14727 |
Page 1 of 1 |
Author: | mikembb [ Thu Jul 20, 2017 11:58 am ] |
Post subject: | Strategy Project - Multiple my Strategies Firing |
Dear Team, I just had it happen, that for whatever reason, in my Strategy Project - more then one instance of MyStrategy got initialised and OnStrategyStart() got fired. This happens randomly, or better, I cannot find the reason for that yet. I only call Code: StartStrategy(StrategyManager.Mode); once.I trapped it with a public static bool variable that I set to true on the first OnStrategyStart() and then if it is true, I close the other instances. Regards Mike |
Page 1 of 1 | All times are UTC + 3 hours |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |