Create context
Field Inside Strategy
#6
Labels
enhancement
New feature or request
good first issue
Good for newcomers
p2
High Priority (priority 2)
Create
context
Field Inside StrategyMotivation
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 theStrategy
compound type.Implementation
context
argument to theStrategyOptions
constructor, and update theStrategyOptions
type definition to reflect this change.user-defined
so thatcontext
was 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 iscontext
stored in theoptions
namespace"?).The text was updated successfully, but these errors were encountered: