-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersp2High Priority (priority 2)High Priority (priority 2)
Description
Create context Field Inside Strategy
Motivation
There may be things that a user wants to store throughout the backtest to use across various methods.
Interface
A dictionary called context that lives in the Strategy compound type.
Implementation
- Add an optional
contextargument to theStrategyOptionsconstructor, and update theStrategyOptionstype definition to reflect this change. - [Optional] Modify the function signatures for
user-definedso thatcontextwas explicitly passed as an argument. This would make it clearer than accessing it viastrat.options.context, which may be unclear from a developer's perspective (i.e. users may ask "Why iscontextstored in theoptionsnamespace"?).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersp2High Priority (priority 2)High Priority (priority 2)