Currency Index Comparison on Chart

I wanted to make this script when I made XY RSI - Relative strength Index

But too many bars make the chart ugly.

Today I found a great script from melihtuna on
So I can implement this idea now.

This script is for Forex combinations of the following currencies: USD, EUR, GBP, JPY, CHF, AUD, NZD, CAD

It displayed currency index ( DXY , EXY , BXY , JXY , AXY , CXY , SXY , ZXY ) chart based on the currency pairs.

For example, USDJPY chart will automatically display green line US Dollar Index ( DXY ) and red line Japan Yen index ( JXY ).
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter