OPEN-SOURCE SCRIPT

Half Life Mean Reversion

438
Its a tool for those who work in statistical arbitrage/pair trading in stocks or asset classes.

a high correlation between two assets does not mean, they will be "mean reverting" too.

half life tells us if they are mean reverting. lower half life is better.

Half life of mean reversion = time taken by the "price ratio" of two assets, to revert back, to half way to its mean.

script takes 3 lookback periods and calculates the half life of all 3 periods. Then gives it an acceptance score. lower is better.

run for different pairs and chose the one with least acceptance scores

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。