SmartQuant Discussion

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

All times are UTC + 3 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Jul 20, 2017 11:58 am 
Offline

Joined: Tue Oct 13, 2009 12:19 pm
Posts: 195
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


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 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