This script plots the longs/shorts ratio derived from Bitfinex for BTCUSDLONGS, BTCUSDSHORTS, and similar for 11 top cryptocurrencies chosen selected based on marketcap, trading volume on Bitfinex, and the maximum number of times that TradingView would let me call the "security" function in one script. Included coins:
BTC, ETH, LTC, BCH, XRP, EOS, IOT (IOTA),...
Designed/back-tested for daily BTC/USD closing price.
Your mileage may vary for other assets/time frames.
By default includes 13 EMA, 21 SMA, 49 EMA, 200 EMA.
Crosses of 13 / 49 EMA are for buy/sell signals.
13 EMA / 21 SMA cross-unders are for sell signals near local tops.
EMA periods are editable.
See text in the Pine Editor for additional notes on the...
Price Line overlay shows combined BCH+BTC price normalized to the price of BTC, which is the realtime combined price (BCH+BTC) averaged over the SMA of BTC - SMA of BCH.
This indicator is a 2-in-1 overlay + oscillator depending on which plots are enabled.
This version is the overlay script, this is why there are maths...
A simple script I wrote that allows you to look at the posture of a moving average. Rates of change can be useful to understanding momentum. Additionally, I have included a signal line so you can see if the posture is more or less than average.
if the line is red mean the majority of the conditions are turning bull and a possible drop can happen so in a way this is a contrarian indicator
this works only into uptrend on down trend the line will be always yellow
use trend lines and channels to determine trends for example
to increase sensibility lower the "10" to 8 or 7