Created
October 5, 2016 00:40
-
-
Save marketcalls/bf600c9560482db1da69e24f598de42b to your computer and use it in GitHub Desktop.
Sentimental RSI - Marketcalls - Tradingview PineScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////// | |
// 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