OPEN-SOURCE SCRIPT

Macro EMA Correlation


This script is useful to see correlation between macroeconomic assets, displayed in different ema line shown in percentage to compare these assets on the same basis. Percentage will depend on the time frame selection. In the higher timeframe you will see higher variation and in small timeframe smaller variation.

You can select the timeframe who suit your trading style. The 1h and 4h fit well for longer trend swing trade and the lower time frame 15m, 5m, 1m are good for scalping or daily trading.

The following asset are available:

Bitcoin
Ethereum
Gold
Crypto total market cap excluding bitcoin (total2)
United state 10-year government bond (US10Y)
Usdt dominance show the concentration of usdt hold. For example, when trader are fearful they sell their crypto position to keep more usdt in their portfolio (USDT.D)
The USD/JPY pair the dollar usd versus the Japanese Yen one of the most forex traded pair.

You can clic on parameter to select the asset you want to analyse.

The main correlation observed are:
bitcoin negatively correlated with the usdt dominance.
bitcoin negatively correlated with the usd/jpy pair
bitcoin is positively correlated to eth, total2 (altcoin)
bitcoin positively correlated with gold
bitcoin is mostly negatively correlated to us10y

The basis of correlation is that positively correlated asset goes in the same direction and that the negatively correlated goes in opposite direction.


So, the idea is to use these information to see trend reversing.
Example 1: when bitcoin and usdt dominance are extended in opposite direction we look for a possible retracement toward 1% wich is the middle base.
Example 2 : when bitcoin make a move we look for ethereum and total 2 to follow





BTCcorrelationExponential Moving Average (EMA)ETHGoldmacroTOTAL2USDusd-dominance

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項