커뮤니티

수식 재문의

프로필 이미지
에구머니
2026-03-03 18:28:43
7
글번호 230869

안녕하세요?


글번호 230818

에 대해서 답변 주신 것에 대해서 그 글의 답변에 재문의를 했습니다.


제가 궁금한 것은 그렇게 하면 되는 건지,

아니면, 지금처럼 새 글로 재문의를 해야 하는 건지도 잘 모르겠습니다.


그리고, 내친 김에 아래의 Stochastic RSI도 예스로 하나 부탁드립니다.


//@version=5

indicator(title="Stochastic RSI", shorttitle="Stoch RSI", format=format.price, precision=2, timeframe="", timeframe_gaps=true)

smoothK = input.int(3, "K", minval=1)

smoothD = input.int(3, "D", minval=1)

lengthRSI = input.int(14, "RSI Length", minval=1)

lengthStoch = input.int(14, "Stochastic Length", minval=1)

src = input(close, title="RSI Source")

rsi1 = ta.rsi(src, lengthRSI)

k = ta.sma(ta.stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK)

d = ta.sma(k, smoothD)

plot(k, "K", color=#2962FF)

plot(d, "D", color=#FF6D00)

h0 = hline(80, "Upper Band", color=#787B86)

hline(50, "Middle Band", color=color.new(#787B86, 50))

h1 = hline(20, "Lower Band", color=#787B86)

fill(h0, h1, color=color.rgb(33, 150, 243, 90), title="Background") // 이런거는 되면 좋고, 안 되어도 상관 없습니다.


늘 감사드립니다.


지표
답변 0