Last active
June 8, 2018 06:24
-
-
Save cmdallas/2a8c219da67e7a02e0b080aaaad45080 to your computer and use it in GitHub Desktop.
Trading View script for the willy
This file contains 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
study(title="TheWilly", shorttitle="TheWilly") | |
length = input(21, minval=1) | |
upper = highest(length) | |
lower = lowest(length) | |
out = 100 * (close - upper) / (upper - lower) | |
src = out, len = input(14, minval=1, title="Length") | |
out2 = ema(out, len) | |
plot(out, color=#00f9ff, linewidth=2) | |
plot(out2, title="EMA", color=#fd00ff, linewidth=2) | |
band1 = hline(-20) | |
band0 = hline(-80) | |
fill(band1, band0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment