OPEN-SOURCE SCRIPT

OECD CLI Diffusion Index

已更新
What does the indicator measure?
This is a macro indicator. It uses OECD's composite leading indicator - see details about the CLI below.
What it does it calculate YoY changes for CLI of 38 countries that are members or are associated with the OECD. Then it measures a percent of countries which CLI is rising.

How this can be used?
The positive slope of the curve means that there probably will be an economic growth among those countries within next 6 - 9 months. The negative slope means there probably will be an economic contraction.
Forward-looking economic growth is correlated with positive S&P 500 YoY growth (equity markets are also forward looking). The chart above presents the CLI diffusion index with overlayed S&P500 YoY rate of change.

The CLI is also correlated with ISM PMI - see example below:
快照


What is a CLI?
"The OECD system of Composite Leading Indicators (CLIs) is designed to provide early signals of turning points in business cycles - fluctuation in the output gap, i.e. fluctuation of the economic activity around its long term potential level. This approach, focusing on turning points (peaks and troughs), results in CLIs that provide qualitative rather than quantitative information on short-term economic movements."
版本注释
Another reason to look at CLI Diffusion Index is its relationship with the volatility. Table below presents the distribition of VIX spikes over 35 among ten buckets of the index - where first bucket consists of index values of 0%-10% and the last one 90%-100%.

快照

Additional idea on how to use the index is to look at securities that the most sensitive to economic changes. Below are YoY rate of changes of Russell 2000 and Copper futures.
快照
快照
版本注释
I changed how CLI data is pulled - instead of using data.nasdaq.com (which does not store the data anymore) - the code uses TW data.
However, additional change comes from OECD. They previously published data for all OECD members and some associated countries. Now it is limited only to G20 countries (TW allows us to get only 16 coutries). Go to OECD's website to get more details on that.
版本注释
Just minor code cleaning.
businesscycleCyclesmacrooecd

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明