Replies: 1 comment 2 replies
-
Does the approach in #39 work for you? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have a model that is trained using multiple indicators, how can I best pass that to the strategy and keep it in sync with the backtesting expanding window? also making sure that I am not getting any Lookahead bias ... the library is conceived to only get as input the OCHL... of a single indicator but in ML we look at many indicators. It would be a good design to separate the traded instrument from the indicators (which may also include the traded instrument but not necessarily).
what I would do for now is to use the UD strategy constructor to pass all the data as context and then time filter it accordingly while running the strategy in the expanding window.
Beta Was this translation helpful? Give feedback.
All reactions