This indicator is used to divide two assets between them. Why you would ask ?
For instance, in crypto trading, traders often look at the ratio Longs/Shorts or Shorts/Longs to figure out which side is leading the market and use this information as a powerful hedge for their next trade
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.
This will require some pinescripting like this
//@version=4 study(title="Dividing 2 RSI", shorttitle="Dividing 2 RSI", overlay=false) i_a = input(defval=14, type=input.integer, title="RSI 1") i_b = input(defval=7, type=input.integer, title="RSI 2") symbol1 = input("MSFT", type=input.symbol title="Symbol 1") symbol2 = input("APPL", type=input.symbol title="Symbol 2") a = rsi(close, i_a) b = rsi(close, i_b) as = security(symbol1, timeframe.period, a) bs = security(symbol2, timeframe.period, b) plot(as / bs, title="DIV", color=blue)