senpai

Spyfrat RSI Strategy

502 1 27
Spyfrat RSI 50 Strategy Pinescript
Remove from Favorite Scripts Add to Favorite Scripts
//Based on Larry Connors RSI-2 Strategy - Lower RSI
strategy(title="Spyfrat RSI Strategy", shorttitle="SpyfratRSI", overlay=false)
src = close, 

//RSI CODE
up = rma(max(change(src), 0), 30)
down = rma(-min(change(src), 0), 30)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))

//Rule for RSI Color
col = rsi > 50?lime: rsi < 60?red : silver

plot(rsi, title="RSI", style=line, linewidth=2,color=col)
//plot(100, title="Upper Line 100",style=line, linewidth=3, color=aqua)
//plot(0, title="Lower Line 0",style=line, linewidth=3, color=aqua)

band1 = plot(70, title="Upper Line 70",style=line, linewidth=1, color=aqua)
band0 = plot(30, title="Lower Line 30",style=line, linewidth=1, color=aqua)
band2 = plot(50, title="Upper Line 50",style=line, linewidth=1, color=green)
fill(band1, band0, color=gray, transp=80)

//plot(long,"long",color=green,linewidth=1)
//plot(short,"short",color=red,linewidth=1)
How it works ?
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out