OPEN-SOURCE SCRIPT

Custom Ratio Indicator

This indicator allows users to compare the price ratio of two customizable trading pairs. By dividing the closing price of the first trading pair by the second, it calculates and plots the resulting ratio on the chart. It is designed for traders who want to analyze correlations or relative performance between two assets. The default pairs are ETHUSDT and BTCUSDT, and users can customize these inputs. The indicator supports high precision to ensure accurate representation of small or large ratios. Additionally, the current ratio is dynamically displayed on the chart for easy reference.
Candlestick 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