All of the required members of StrategyBase are already documented in the class that you actually use to create Strategies, UserStrategyBase.
public Backtester Backtester { get; set; }
Is absent from documentation of UserStrategyBase. Spent couple of hours seaching the documentation on how to get the Backtester instance... Only looking through the declaration of StrategyBase helped me. That was not kind of obvious to me.
Thank you!
Is absent from documentation of UserStrategyBase. Spent couple of hours seaching the documentation on how to get the Backtester instance... Only looking through the declaration of StrategyBase helped me. That was not kind of obvious to me.
Thank you!
We don’t document every single property. especially those that are mainly for internal use. What’s your use case for needing to access the Backtester instance, It has the potential for unexpected results and corrupting the ongoing strategy run if you do the wrong things with it.
Thank you for fast reply.
I have no other options... First idea was using the Advanced Position sizer.
QUOTE:
Backtester instance, It has the potential for unexpected results and corrupting the ongoing strategy run if you do the wrong things with it.
I have no other options... First idea was using the Advanced Position sizer.
I’m not sure what you mean. You select an Advanced Position Sizer in the Strategy Settings. Then it does the work as the Strategy executed, there’s nothing for you to do? What are you trying to accomplish?
Your Response
Post
Edit Post
Login is required