kazuna8
 ( 44.48% )
- ago
ExecutionMode is set to StrategyExecutionModes.Strategy in Constructor regardless of the mode the strategy is actually running. Is this expected?
0
474
5 Replies

Reply

Bookmark

Sort
- ago
#1
I think it takes the default value by design:
https://www.wealth-lab.com/Discussion/Constructor-to-know-which-symbol-6401
0
kazuna8
 ( 44.48% )
- ago
#2
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.
0
- ago
#3
QUOTE:
Is this expected?

Just looked into the code and yes, this is by design.
0
kazuna8
 ( 44.48% )
- ago
#4
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.
0
Glitch8
 ( 10.41% )
- ago
#5
It's a bit late for is to make this kind of foundational change, but it's something to keep in mind for WL8!
1

Reply

Bookmark

Sort