ExecutionMode is set to StrategyExecutionModes.Strategy in Constructor regardless of the mode the strategy is actually running. Is this expected?
Rename
I think it takes the default value by design:
https://www.wealth-lab.com/Discussion/Constructor-to-know-which-symbol-6401
https://www.wealth-lab.com/Discussion/Constructor-to-know-which-symbol-6401
Is it possible for the base class constructor to initialize ExecutionMode based on the mode? I think you should know the execution mode prior invoking the user strategy's constructor.
So that I can change the parameter based on the execution mode within the single code base.
So that I can change the parameter based on the execution mode within the single code base.
QUOTE:
Is this expected?
Just looked into the code and yes, this is by design.
So ExecutionMode cannot be initialized in the base constructor?
I think this is very useful to controll the parameters for a single strategy code to change the parameters depending on the mode in which the strategy is running.
I think this is very useful to controll the parameters for a single strategy code to change the parameters depending on the mode in which the strategy is running.
It's a bit late for is to make this kind of foundational change, but it's something to keep in mind for WL8!
Your Response
Post
Edit Post
Login is required