-
Notifications
You must be signed in to change notification settings - Fork 10
/
RSI SELL.txt
17 lines (16 loc) · 874 Bytes
/
RSI SELL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Created by Chris Moody on 8/8/2014 by Request for motcha1
//RSI Indicator with EMA of RSI for Signal
//Great Confirrming Signal for CM_Williams_Vix_Fix https://www.tradingview.com/v/og7JPrRA/
study(title="RSI_SELL", shorttitle="RSI_SELL_", overlay=false)
src = close,
len = input(50, minval=1, title="RSI Length")
len2 = input(10, minval=1, title="UpperLine")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
emaRSI = ema(rsi,len2)
plot(rsi, title="RSI", style=line, linewidth=3, color=silver)
//plot(emaRSI, title="EMA of RSI", style=circles, linewidth=2, color=red)
band1 = hline(len2, title="Upper Line", linestyle=dashed, linewidth=3, color=red)
//band0 = hline(20, title="Lower Line", linestyle=dashed, linewidth=3, color=lime)
//fill(band1, band0, color=purple, transp=90)