Cryptocurrency Trading Strategy Python. Now that we have our data and our memory object, let’s get into the trading environment. Our environment takes in two parameters:
Notice each reset will grab a small chunk of the main dataframe and call it ‘episode_df’, rather than running through the entire 600,000+ instances of data during backtesting. See full list on towardsdatascience.com This is shown in the final average episode log.
Posted on may 23, 2021 by george pipis in data science | 0 comments.
Our environment takes in two parameters: Now, i’m not sure if anyone believes this strategy actually works (it may in some cases), but let’s consider it for sake of demonstration of the backtesting environment (and because implementing more complex strategies would remove some of the fun from tinkering with your own ideas). Implementing the trading strategy and calculating performance metrics. “how does my strategy perform on average?”.
Post a Comment for "Cryptocurrency Trading Strategy Python"