Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Changes in Historic Data causing Phantom Positions

One of the problems I have faced in the past is the appearance and disappearance of positions in a theoretical portfolio resulting from a back test used to generate real signals for real trading.

Thus having to face awkward decisions: do I realign my real portfolio with the changed back test? If I do not do this how do I track my real time positions which have disappeared from the back test portfolio....and so on.

For many years I have used CSI's futures data and the appearance and disappearance was usually due to retrospectively changed historic data.

Which is all well and good for data providers who need to correct mistakes or inaccuracies in the historical database but a fat lot of use to a trader who has already acted on such "false" data.

My colleagues and I are working on a python/mySQL combination which will append only NEW from the data provider/providers of our choice. Clearly before appending you may well wish to ensure there are no gross errors by using a simple algorithmic checking routine. Therefore, once a day's data has been accepted/approved, it will never change - at least in terms of the original unadjusted OHLCV. Naturally, the adjusted transform of such data will change with respect to splits etc for stocks or appropriate back adjusting for concatenated futures time series.

Do you guys adopt a similar methodology for the data used by Quantopians in their back tests?

1 response

Hi Anthony,

Our historical data is not retrospectively adjusted in the backtester. We don't currently apply corrections to pricing in our database.

Since we are not over-writing our historical pricing, your backtest results will remain the same. The results will only change if we find a bug in our backtest calculations and issue a fix. If we do so, we'll post to the forums. For example, older posts that shared algorithms have a label "! Important Message" with the note "This backtest was created using an older version of the backtester. Please re-run this backtest to see results using the latest backtester."

Thanks,
Alisa

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.