OPEN-SOURCE SCRIPT

ratio_between_two_symbols

Updated
You can compare two symbols' ratio.
Release Notes
updated default symbols
Release Notes
Support Moving Averages
Release Notes
You can choose the current symbol.
For example, if you are browsing S&P 500 Index, and the "Ratio_between_two_symbols" is showing Gold/Silver.
If you check "ignore the Symbol1, and use the current symbol" in the settings of the Ratio, then the Ratio will show S&P 500/Silver instead of Gold/Silver.
comparedifferenceratioTrend Analysis

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer