커뮤니티

부틱드립니다

프로필 이미지
파생돌이
2024-11-10 13:36:36
610
글번호 185122
답변완료
수고하십니다 트레이딩 수식을 예스수식으로 부탁드립니다 //@version=4 study(shorttitle="볼린저밴드",title=:bollinger bands stochastic rsi extreme signal:, overlay=true, resolution="") //general inputs src = input(close,title= "source") offset = input(0,"offset", type = input,integer,minval =-100, maxval = 100) //bollinger inputs length = input(80, title="bollinger band length", minval=1,drfval=80) mult=input(2.0,minval 0.001,maxval=50,title=stdDev") //bollinger code basis = sma(src,length) dev = mult * stdev(src,lenhth) upper= basis + dve lower = basis - dve //stodh inputs smoothK = input(3,"k", minval=1) smoothD = input(3,"d", minval=1) lengthRSI = input(14,"rsi length", minval=1) lengthStoch = input(14, "Stochastic length", minval=1) upperlimit = input(90,"Upper Limit", minval=0.01) lowerlimit = input(10,"Upper Limit", minval=0.01) //Stochastic Code rsi1 = rsi(src, lengthRSI) k = sma(stoch(rsi1, rsi1,rsi1, lengthStoch), smoothK) d= sma(K, smoothD) //Evaluation Bear = close[1] > upper[1] and close < upper and k[1] > upperlimit and d[1] > upperlimit Bull= close[1] < lower[1] and close > lower and k[1] < lowerlimit and d[1] < lowerlimit //Plots plotshape(Bear, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.large) plotshape(Bull, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.large) //Alert Functionality alertcondition(Bear or Bull, title="Any Signal",message="{{exchange}}:{{ticker}}" +" {{interval}}" +" BB Stochaastic Extreme!") alertcondition(Bear, title="Bearish Signal", message="{{exchange}}:{{ticker}}" +" {{interval}}" + "Bearish BB Stochaastic Extreme!") alertcondition(Bull, title="Bearish Signal", message="{{exchange}}:{{ticker}}" +" {{interval}}" + "Bullish BB Stochaastic Extreme!")
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-11-11 13:19:16

안녕하세요 예스스탁입니다. input : length(80); input : mult(2.0); var : basis(0),dev(0),upper(0),lower(0); basis = ma(c,length); dev = mult * std(c,length); upper= basis + dev; lower = basis - dev; input : smoothK(3); input : smoothD(3); input : lengthRSI(14); input : lengthStoch(14); input : upperlimit(90); input : lowerlimit(10); vaR : rsi1(0),F(0),K(0),D(0),TX(0); rsi1 = rsi(lengthRSI); F = 100 * (rsi1 - lowest(rsi1, lengthStoch)) / (highest(rsi1, lengthStoch) - lowest(rsi1, lengthStoch)); k = ma(F, smoothK); d = ma(K, smoothD); if close[1] > upper[1] and close < upper and k[1] > upperlimit and d[1] > upperlimit Then { tx = Text_New(sDate,sTime,H,"▼"); Text_SetStyle(tx,2,1); Text_SetColor(tx,Red); } if close[1] < lower[1] and close > lower and k[1] < lowerlimit and d[1] < lowerlimit Then { tx = Text_New(sDate,sTime,L,"▲"); Text_SetStyle(tx,2,0); Text_SetColor(tx,Green); } 즐거운 하루되세요 > 파생돌이 님이 쓴 글입니다. > 제목 : 부틱드립니다 > 수고하십니다 트레이딩 수식을 예스수식으로 부탁드립니다 //@version=4 study(shorttitle="볼린저밴드",title=:bollinger bands stochastic rsi extreme signal:, overlay=true, resolution="") //general inputs src = input(close,title= "source") offset = input(0,"offset", type = input,integer,minval =-100, maxval = 100) //bollinger inputs length = input(80, title="bollinger band length", minval=1,drfval=80) mult=input(2.0,minval 0.001,maxval=50,title=stdDev") //bollinger code basis = sma(src,length) dev = mult * stdev(src,lenhth) upper= basis + dve lower = basis - dve //stodh inputs smoothK = input(3,"k", minval=1) smoothD = input(3,"d", minval=1) lengthRSI = input(14,"rsi length", minval=1) lengthStoch = input(14, "Stochastic length", minval=1) upperlimit = input(90,"Upper Limit", minval=0.01) lowerlimit = input(10,"Upper Limit", minval=0.01) //Stochastic Code rsi1 = rsi(src, lengthRSI) k = sma(stoch(rsi1, rsi1,rsi1, lengthStoch), smoothK) d= sma(K, smoothD) //Evaluation Bear = close[1] > upper[1] and close < upper and k[1] > upperlimit and d[1] > upperlimit Bull= close[1] < lower[1] and close > lower and k[1] < lowerlimit and d[1] < lowerlimit //Plots plotshape(Bear, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.large) plotshape(Bull, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.large) //Alert Functionality alertcondition(Bear or Bull, title="Any Signal",message="{{exchange}}:{{ticker}}" +" {{interval}}" +" BB Stochaastic Extreme!") alertcondition(Bear, title="Bearish Signal", message="{{exchange}}:{{ticker}}" +" {{interval}}" + "Bearish BB Stochaastic Extreme!") alertcondition(Bull, title="Bearish Signal", message="{{exchange}}:{{ticker}}" +" {{interval}}" + "Bullish BB Stochaastic Extreme!")