Skip to content

Adding additional indicator changes outcome of Strategy (without being used in next()) #2

Closed Answered by dodid
mseidlx asked this question in Q&A
Discussion options

You must be logged in to vote

dce738f should fix the issue. Thanks for reporting!

Please note backtest starts from when all indicators have non-NA values. Adding metric2, even if not used, can still change the outcome since it has a different warmup period, which effectively changes when backtest starts. You can capture and inspect metric1 in next() by:

self.record(metric1_seen=metric1)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@dodid
Comment options

@mseidlx
Comment options

@dodid
Comment options

Answer selected by mseidlx
@mseidlx
Comment options

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