Closed alanyuwenche closed 9 months ago
Thanks for your feedback and your attention to this project! Sorry for the confusion. The high-frequency trading environment is designed for Binance crypto trading, where the trading goes for 24/7. So, there is no such thing as the overnight risk. So far in this environment, we have not implement such things as closing all the position at the end of the day.
Thanks for your replies. Hope to see this implement soon.
First of all, thanks for the helpful project.
In 3.1 Intraday Trading the paper said, “At the end of the trading day, traders close all remaining positions at market price to avoid overnight risk and hold 100% cash again.”
I’ve studied this project for weeks, but I can’t figure out how the project fulfills the above statement in high frequency trading. I can only find the related code in trademaster/environments/high_frequency_trading/environment.py. At line 210 self.terminal can turn out to be true only when self.day is greater or equal to 25,000. That is, we have to run 25,000 steps before episode termination.
If I miss something, please correct me. Thanks!