Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created October 5, 2016 00:40
Show Gist options
  • Save marketcalls/bf600c9560482db1da69e24f598de42b to your computer and use it in GitHub Desktop.
Save marketcalls/bf600c9560482db1da69e24f598de42b to your computer and use it in GitHub Desktop.
Sentimental RSI - Marketcalls - Tradingview PineScript
////////////////////////////////////////////////////////////
// Copyright by Rajandran R v1.0 22/08/2016
// Website : www.marketcalls.in
////////////////////////////////////////////////////////////
study(title="Sentimental RSI - Marketcalls")
source = hlc3, length = input(7, minval=1)
hullma = wma(2*wma(source, length/2)-wma(source, length), round(sqrt(length)))
hrsi = rsi(hullma,length)
bcolor = iff( hrsi-50 > 0,
iff( hrsi > nz(hrsi[1]), lime, blue),
iff( hrsi < nz(hrsi[1]), red, yellow))
plot(hrsi-50, color=bcolor, title="Smoothed RSI", style=histogram, linewidth=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment