Created
August 22, 2016 15:27
-
-
Save marketcalls/fee9bf86df28ea3301e4ea359d231753 to your computer and use it in GitHub Desktop.
Sentimental RSI
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