RSI vs Longs/Shorts Margin Ratio Percentage RankThis indicator plots the RSI of the current token and the percentage rank, of the RSI, of the ratio of a long margined token to a short margined token.
By default it plots the RSI of the current token with a color based on percentage rank the RSI of BITFINEX:BTCUSDLONGS divided by BITFINEX:BTCUSDSHORTS, so the assumption is that you are using it on a BTC chart. While you can select any Tradingview symbol for your Long and Short tokens I don't think you will get meaningful results unless you select a long and short margined token that matches your chart symbol, such as BITFINEX:ETHUSDLONGS and BITFINEX:ETHUSDSHORTS if you're trading ETHUSD. Even using margined tokens the results may not be meaningful, if there is not enough trade volume in the token, or if they are being manipulated, so you must backtest everything.
The three plot options are:
• Colored RSI - RSI plotted with colors based on the Longs/Shorts ratio
• Background Color - White RSI plot with Longs/Shorts ratio as background color
• RSI + Ratio - White RSI with Longs/Shorts ratio plotted in color
The chart shows all three options on an hourly BITFINEX:SOLUSD chart with BITFINEX:SOLUSDSHORTS and BITFINEX:SOLUSDLONGS.
By default it also plots a short term moving average and it can also plot the raw ratio rather than the percentage rank if selected.
This script started out as "RSI vs BITFINEX BTC Longs/Shorts Margin Ratio Percentage Rank" by me. I was interested in the ratio of BITFINEX:BTCUSDLONGS to BITFINEX:BTCUSDSHORTS as a measure of market sentiment and how that sentiment would magnify RSI changes. The volatility of the BTCUSDLONGS : BTCUSDSHORTS ratio was too low to get a good read, using a percent rank of the RSI of the ratio made the results more visible. After a discussion with @jason5480 I saw how opening it up to all margined Long / Short pairs was the best way forward. Unfortunately the name no longer matched the script, so I had to publish a new script.
Longshortpercentage
Universal Longs Vs. Shorts - Ratio (Any Symbol)Hello again all my Trading View friends!
This script is a variation of my other script "Universal Longs Vs. Shorts - Percentage (Any Symbol)"
It allows you to choose ANY symbol and plot the ratio against ANY other symbol, as an indicator on your given pair. It is primarily used as an indicator of longs/shorts as well as shorts/longs as a ratio to each other.
For example, you could plot BITFINEX:BTCUSDLONGS against BITFINEX:BTCUSDSHORTS.
It plots the ratio of longs/shorts or shorts/longs. For example:
If there are more longs than shorts open, the long ratio will be great than 1 with no upper limit.
If there are less longs than shorts open, the ratio will be less than 1 but greater than 0.
The same is true when comparing shorts to longs. You can choose to view Longs Ratio only, Shorts Ratio only, or Both.
This is useful to see how many more longs there are than shorts, and visa versa, at any given time interval. It does not take into consideration total volume of longs + shorts to get an absolute number, but rather a relative ratio to each other.
If there are many more positions open in one direction over the other, the ratio will rise higher and higher away from 1, which lets you know generally that there is a lot greater volume of that position open compared to its reverse.
If you found this script helpful please remember to FOLLOW and press LIKE!!
More useful scripts to come :-D