커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

다음 화살표 수식을 일봉 (0봉전)종목 검색식으로 부탁드려요

A = ma(C, 60, 단순); 이격율 = A/A(5)*100; 이격범위 = 이격율>97 && 이격율<102; 범위_sum = sum(이격범위, 90)==90; 범위_sum && CrossUp(C, Highest(H, 90,1))
프로필 이미지
우주최강
77
글번호 193763
종목검색

성공예견 님에 의해서 삭제되었습니다.

프로필 이미지
성공예견
2025-09-07
17
글번호 193762
지표
답변완료

수식변환요청드립니다

수고많습니다 키움수식을 지표로 부탁드립니다 수식1 smoothadd=ma_length+if(smoothingbool,ma_lengthsmoothing,0); ms=if(ma_type == 1,ma(c,smoothadd), if(ma_type == 2,eavg(c,smoothadd), if(ma_type == 3,ma(c,smoothadd,가중),eavg(c,smoothadd)))); ms 수식2 if(ms(1)<ms,ms,0) 수식3 if(ms(1)<ms,ms,0) ma_length 90 ma_lengthsmoothing 25 smoothingbool 0 ma_type 1
프로필 이미지
달오
97
글번호 193761
지표
답변완료

검토 부탁드립니다.

input : 기간(20); var :a(0),m5(0),m20(0), cnt(-1); m5=wma(c,5) ; m20=wma(c,20) ; a = wma(h,기간); if a<a[1] && a[1]>a[2] Then var1 = a[1]; if crossup(c,var1) Then var2 = 1; if var2 && c[1]<c && m20<m5 Then cnt=0; if cnt >= 0 Then { cnt = cnt+1; if cnt == 1 or cnt == 2 Then Find(c>1000 && v>100000); } var1을 c로 돌파 그후 cnt조건을 만족하는 첫째,둘째 검색. var2 이후 cnt 부분이 문제가 있는것으로 보입니다. 검토부탁드립니다 그리고 cnt의 사용법에 대해 이해부족 이니 설명좀 부탁드립니다. cnt(-1)는 왜 -1인지 등등
프로필 이미지
nams60
88
글번호 193760
종목검색
답변완료

수식 문의 드립니다

안녕하십니까? 프로그램 수식 문의 드립니다. 1) 매수: 이전 5봉중 최 고점의 0.5% 를 상향하는 종목 즉시매수 2) 매수: 이전 1봉 중 1봉의 종가를 0.5% 상향하는 종목 을 즉시 매수 3) 매도: 이전 매수 점을 0.5% 하향시 즉시 매도 4) 매도: 이전 1봉중 1봉의 종가를 0.5% 하향시 즉시 매도 5) 매도: 매수가 대비 5% 상향시 즉시 매도 6) 매도: 20이평선을 0,5% 하향시 즉시 매도
프로필 이미지
기관장
70
글번호 193759
시스템
답변완료

수식 문의 드립니다

안녕하십니까? 프로그램 수식 문의 드립니다. 1) 매수: 이전 5봉중 최 고점의 0.5% 를 상향하는 종목 즉시매수 2) 매수: 이전 1봉 중 1봉의 종가를 0.5% 상향하는 종목 을 즉시 매수 3) 매도: 이전 매수 점을 0.5% 하향시 즉시 매도 4) 매도: 이전 1봉중 1봉의 종가를 0.5% 하향시 즉시 매도 5) 매도: 매수가 대비 5% 상향시 즉시 매도 6) 매도: 20이평선을 0,5% 하향시 즉시 매도
프로필 이미지
기관장
73
글번호 193758
시스템
답변완료

수식 문의 드립니다

안녕하십니까? 종목 검색 수기 부탁 드립니다 1) 이전 5봉이내 전고점을 0.5% 상향종목 2) 이전 1봉 전 종가를 0.5 % 상향하는 종목
프로필 이미지
기관장
74
글번호 193757
종목검색
답변완료

수식 부탁드립니다

지표식, 시스템식 부탁 드립니다. //@version=6 indicator("DFR", overlay = true) // INPUTS ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ factor = input.float(10, "Length", step = 0.01) col_up = input.color(color.rgb(26, 221, 127), "", inline = "Col") col_dn = input.color(color.rgb(231, 147, 20), "", inline = "Col") // } // CALCULATIONS――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ float dist = ta.sma(high-low, 200) trend_line(factor)=> float src = hlc3 int _direction = na float trend_line = na upperBand = ta.ema(src, 15) + factor * dist lowerBand = ta.ema(src, 15) - factor * dist prevLowerBand = nz(lowerBand[1]) prevUpperBand = nz(upperBand[1]) lowerBand := lowerBand > prevLowerBand or src[1] < prevLowerBand ? lowerBand : prevLowerBand upperBand := upperBand < prevUpperBand or src[1] > prevUpperBand ? upperBand : prevUpperBand prevTrendLine = trend_line[1] if na(dist[1]) _direction := 1 else if prevTrendLine == prevUpperBand _direction := src > upperBand ? -1 : 1 else _direction := src < lowerBand ? 1 : -1 trend_line := _direction == -1 ? lowerBand : upperBand line_ = math.avg(lowerBand, upperBand) [line_, _direction, lowerBand, upperBand] [line_, _direction, lowerBand, upperBand] = trend_line(factor) // } // PLOT ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ t_col = _direction == 1 ? col_dn : col_up plot(line_, "TrendLine", color = color.new(t_col, 0), linewidth = 4) plot(line_, "TrendLine", color = color.new(t_col, 80), linewidth = 10) plot(lowerBand+dist, "LowerBand1", color = _direction == -1 ? color.new(t_col, 80) : color.new(t_col, 100), linewidth = 1) plot(lowerBand+dist*0.5, "LowerBand2", color = _direction == -1 ? color.new(t_col, 60) : color.new(t_col, 100), linewidth = 1) plot(lowerBand, "LowerBand3", color = _direction == -1 ? color.new(t_col, 40) : color.new(t_col, 100), linewidth = 1) plot(lowerBand-dist*0.5, "LowerBand4", color = _direction == -1 ? color.new(t_col, 20) : color.new(t_col, 100), linewidth = 1) plot(lowerBand-dist, "LowerBand5", color = _direction == -1 ? color.new(t_col, 0) : color.new(t_col, 100), linewidth = 1) plot(upperBand+dist, "UpperBand5", color = _direction == 1 ? color.new(t_col, 0) : color.new(t_col, 100), linewidth = 1) plot(upperBand+dist*0.5, "UpperBand4", color = _direction == 1 ? color.new(t_col, 20) : color.new(t_col, 100), linewidth = 1) plot(upperBand, "UpperBand3", color = _direction == 1 ? color.new(t_col, 40) : color.new(t_col, 100), linewidth = 1) plot(upperBand-dist*0.5, "UpperBand2", color = _direction == 1 ? color.new(t_col, 60) : color.new(t_col, 100), linewidth = 1) plot(upperBand-dist, "UpperBand1", color = _direction == 1 ? color.new(t_col, 80) : color.new(t_col, 100), linewidth = 1) plotcandle(open, high, low, close, title='CandleStick Coloring', color = color.new(t_col, 50), wickcolor=color.new(t_col, 50), bordercolor = color.new(t_col, 50)) // }
프로필 이미지
사노소이
76
글번호 193756
지표
답변완료

문의 드립니다.

const string calcGroup = 'Calculation' length = input.int(22, title = 'ATR Period', group = calcGroup) mult = input.float(3.0, step = 0.1, title = 'ATR Multiplier', group = calcGroup) useClose = input.bool(true, title = 'Use Close Price for Extremums', group = calcGroup) const string visualGroup = 'Visuals' showLabels = input.bool(true, title = 'Show Buy/Sell Labels', group = visualGroup) highlightState = input.bool(true, title = 'Highlight State', group = visualGroup) const string alertGroup = 'Alerts' awaitBarConfirmation = input.bool(true, title = 'Await Bar Confirmation', group = alertGroup) //--- atr = mult * ta.atr(length) longStop = (useClose ? ta.highest(close, length) : ta.highest(length)) - atr longStopPrev = nz(longStop[1], longStop) longStop := close[1] > longStopPrev ? math.max(longStop, longStopPrev) : longStop shortStop = (useClose ? ta.lowest(close, length) : ta.lowest(length)) + atr shortStopPrev = nz(shortStop[1], shortStop) shortStop := close[1] < shortStopPrev ? math.min(shortStop, shortStopPrev) : shortStop var int dir = 1 dir := close > shortStopPrev ? 1 : close < longStopPrev ? -1 : dir const color textColor = color.white const color longColor = color.green const color shortColor = color.red const color longFillColor = color.new(color.green, 85) const color shortFillColor = color.new(color.red, 85) buySignal = dir == 1 and dir[1] == -1 longStopPlot = plot(dir == 1 ? longStop : na, title = 'Long Stop', style = plot.style_linebr, linewidth = 2, color = longColor) plotshape(buySignal ? longStop : na, title = 'Long Stop Start', location = location.absolute, style = shape.circle, size = size.tiny, color = longColor) plotshape(buySignal and showLabels ? longStop : na, title = 'Buy Label', text = 'Buy', location = location.absolute, style = shape.labelup, size = size.tiny, color = longColor, textcolor = textColor) sellSignal = dir == -1 and dir[1] == 1 shortStopPlot = plot(dir == 1 ? na : shortStop, title = 'Short Stop', style = plot.style_linebr, linewidth = 2, color = shortColor) plotshape(sellSignal ? shortStop : na, title = 'Short Stop Start', location = location.absolute, style = shape.circle, size = size.tiny, color = shortColor) plotshape(sellSignal and showLabels ? shortStop : na, title = 'Sell Label', text = 'Sell', location = location.absolute, style = shape.labeldown, size = size.tiny, color = shortColor, textcolor = textColor) midPricePlot = plot(ohlc4, title = '', display = display.none, editable = false) fill(midPricePlot, longStopPlot, title = 'Long State Filling', color = (highlightState and dir == 1 ? longFillColor : na)) fill(midPricePlot, shortStopPlot, title = 'Short State Filling', color = (highlightState and dir == -1 ? shortFillColor : na)) await = awaitBarConfirmation ? barstate.isconfirmed : true alertcondition(dir != dir[1] and await, title = 'CE Direction Change', message = 'Chandelier Exit has changed direction, {{exchange}}:{{ticker}}') alertcondition(buySignal and await, title = 'CE Buy', message = 'Chandelier Exit Buy, {{exchange}}:{{ticker}}') alertcondition(sellSignal and await, title = 'CE Sell', message = 'Chandelier Exit Sell, {{exchange}}:{{ticker}}') 트레이딩뷰 수식인데 예스 지표로 만들어주시고 매수/매도 신호를 예스 시스템식으로 만들어주세요.
프로필 이미지
신대륙발견
62
글번호 193755
시스템

nams60 님에 의해서 삭제되었습니다.

프로필 이미지
nams60
2025-09-06
8
글번호 193754
종목검색