Blue buy low points

803 1 139
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)
can you tell us how to code in a "red Dot" Sell here as well
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
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 Contact Support Ideas Published Followers Following Private Messages Chat Sign Out