Skip to content

Accessing strategy instance variables after backtest run #294

Answered by kernc
zhang-alvin asked this question in Q&A
Discussion options

You must be logged in to vote

bt._strategy doesn't seem to be an instance of the strategy

Where'd you get bt._strategy? It's stats._strategy (stats = bt.run()).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zhang-alvin
Comment options

Answer selected by zhang-alvin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants