Open tonduy opened 1 month ago
The data used by qlib are all post-weighted, why do you use post-weighted data? Post-weighting ensures that the historical price remains constant and adjusts the current stock price after each equity event. How to post weight? The reason for using the post-weighting factor is so that all stocks are at 1 on the first trading day of the calculation, and subsequent data is added or subtracted from 1 for easy comparison. If the original price is used to replace the post-weighting price, the price difference of thousands of times will make the model calculation very difficult.
Dear Qlib Team,
Thank you very much for providing this great framework!
I understand based on the documentation that the prices of the stocks are adjusted and the original price can be get via $close / $factor.
But now I wanted to ask if it is possible to run the whole portfolio simulation and backtest with the original prices instead of the adjusted ones so that the amount of stocks to buy also represents a real life scenario.
I would highly appreciate an answer of you. I tried to modify the exchange.py file to return for the deal price the original one, but this messes with the whole backtesting: