DovCaspi

Blue buy low points

625 0 85
Using RSI and EMA + going up switch - Its easy to find the behavior and oscillation.
Remove from Favorite Scripts Add to Favorite Scripts
study("Buy low blue points" )
f = input(title="Factor", type=float, defval=1, minval=0.1, maxval=2)

ema1 = ema(close,round(9*f))
ema2 = ema(close,round(3*9*f))
ema3 = ema(close,round(4*3*9*f))

rsiClose =  (rsi(ema1,round(9*f)) - 50)
goingUp = ema2 > ema3

rsiBuyClose = goingUp and rsiClose < -5 and rsiClose > rsiClose[1] ? rsiClose  : na
rsiBuyCloseSingle = rsiBuyClose and rsiBuyClose[1] ? na : rsiBuyClose

rsiColor = rsiClose < 0 ? red : green 

barcolor( rsiColor )


plot( 20 * goingUp, style=area, color=lime, transp=95 )
plot( rsiClose, linewidth=1, color=rsiColor ,style=histogram )
plot( rsiBuyCloseSingle , title="Buy", style=circles, linewidth=4,color=blue)


//plot( mid , title='Mid', color=#00ffaa, linewidth=2)
//plot( close - mid , title='Close', color=black, linewidth=2, trackprice=true)
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out