Accessing strategy instance variables after backtest run #294
-
I'd like to access some of the indicators that I'm supplying for a backtest so that I can make custom plots. Using the tutorial example for reference:
I'd like to be able to access the
Is there a simple way to access the indicators after the run? One workaround that can work is by making a copy of the indicators as class members (non-instance variables), but that seems messy. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Where'd you get |
Beta Was this translation helpful? Give feedback.
Where'd you get
bt._strategy
? It'sstats._strategy
(stats = bt.run()
).