예스스탁
예스스탁 답변
2025-09-18 11:07:58.0
안녕하세요
예스스탁입니다.
1. 지표식
input : len(14);
input : ob(60);
input : os(40);
var : R(0),col(0);
R = rsi(len);
col = iff(R >= ob ,green ,iff(R <= os , red ,gray));
plot1(R,"RSI",col);
plot2(ob,"과매수선");
plot3(os,"과매도선");
2.강조식
input : len(14);
input : ob(60);
input : os(40);
var : R(0),col(0);
R = rsi(len);
col = iff(R >= ob ,green ,iff(R <= os , red ,gray));
PlotPaintBar(H,L,"강조",col);
즐거운 하루되세요
> 파생돌이 님이 쓴 글입니다.
> 제목 : 부틱드립니다
> 수고하십니다
아래수식을 예스로 부탁드립니다
//@version=4
study(title="RSI Trends")
len = input(14, title="RSI Length")
ob = input(60, title="Upper Threshold")
os = input(40, title="Lower Threshold")
barcolor = input(true, title="Colored Bars")
rsi = rsi(close, len)
plot(rsi, color=color.gray)
col1 = rsi >= ob ? color.green : na
col2 = rsi <= os ? color.red : na
col0 = rsi < ob and rsi > os ? color.gray : na
plot1 = plot(rsi, style=plot.style_linebr, linewidth=3, color=col1)
plot2 = plot(rsi, style=plot.style_linebr, linewidth=3, color=col2)
barcolor(barcolor ? col1 : na)
barcolor(barcolor ? col2 : na)
barcolor(barcolor ? col0 : na)
h1 = hline(ob)
h2 = hline(os)