Skip to content

Look ahead bias of CryptoTradingEnv in Chapter 4 #39

Discussion options

You must be logged in to vote

In Quant finance, look ahead bias in training and back-test is a often pitfall.

Good point!

The current_step used in this RL context is just an abstraction for the MDP step number. There's really no representation for current (time) step. So, the horizon used in the above recipe in practical terms is equivalent to the history and not the future / look-ahead.

For example,
Assuming a value of 30 for the horizon as per the default config in the recipe:

# Number of steps (days) of data provided to the agent in one observation
"observation_horizon_sequence_length": 30,

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by QuantHao
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #36 on May 27, 2021 03:37.