SmartQuant Discussion
http://www.smartquant.com/forums/

How to stop strategy via code in MyStrategy.cs?
http://www.smartquant.com/forums/viewtopic.php?f=60&t=14957
Page 1 of 1

Author:  dave10030 [ Sun Sep 22, 2019 7:23 pm ]
Post subject:  How to stop strategy via code in MyStrategy.cs?

I can start strategy by
Code:
StartStrategy(strategy)
in Scenario.cs, but how can I stop strategy in MyStrategy.cs by code? thanks

Author:  skuvv [ Wed Sep 25, 2019 9:23 am ]
Post subject:  Re: How to stop strategy via code in MyStrategy.cs?

You can try to use:
Code:
framework.StrategyManager.Stop()

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/