OPEN-SOURCE SCRIPT

USD Relative Strength Comparison (RSC)

Telah dikemas kini
Simple indicator implementing relative strength against the equally weighted basket of major currencies. Perhaps I will coin it the Equally Weighted Index (EWI) and trademark it like ICE did with DXY.

usd = (usdjpy/100 + usdcad + 1/gbpusd + 1/eurusd + usdchf + 1/audusd + 1/nzdusd)/7

DXY is hard to compare against other indices because of it's weightening. Secondly it does not compare against all majors and includes SEK which is not a major currency. Source: Wikipedia.

In this chart it becomes more clear why GU is in an uptrend. From April 25th USD has been consolidating against the basket of majors while GBP has gained in strength against the same basket.

gbp = (gbpusd + gbpjpy/100 + gbpcad + 1/eurgbp + gbpchf + gbpaud + gbpnzd)/7
Nota Keluaran
Upgrade to Pine V5
currencystrengthRelative Strength ComparisonUSD

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian