답변완료
수식변환문의
아래 수식은 -ZLMA가 EMA15를 Crossup(0봉전)과 동시에 -200지수이평을 Crossup(0봉전 또는 1봉전) -myZLMA, myEMA ; 2봉연속 상승 -200지수이평도 2봉연속 상승(상승추세) 을 검색코자하여 변환 시도했는데 myEMA등의 정의가 되지않았다 하여 실패, 변환문의드립니다. myEMA = eavg(C, 기간); correction = C + (C - myEMA); eavg(correction, 기간) EMA=eavg(C, 기간) myZLMA = eavg(C + (C - myEMA), 기간); Crossup(myZLMA, myEMA) and 1봉전 또는 0봉전에 Crossup(C, 200EMA); 기간;15
2025-11-03
213
글번호 227576
종목검색
답변완료
조건검색 문의
//@version=5indicator("ZLMA 상승 신호", overlay=true)// Inputslength = input(15, title="Length")// Colorsup = color.blackdn = color.blue// Calculationsa = ta.atr(200)emaValue = ta.ema(close, length)correction = close + (close - emaValue)zlma = ta.ema(correction, length)// SignalssignalUp = ta.crossover(zlma, emaValue)signalDn = ta.crossunder(zlma, emaValue)// 박스 및 레벨 설정var box box1 = navar float top = navar float btm = navar float var3 = navar label tx = navar label tx1 = naif signalUp top := zlma btm := zlma - a box1 := box.new(bar_index, top, bar_index + 1, btm, bgcolor=color.new(up, 70), border_color=up) var3 := (top + btm) / 2 tx := label.new(bar_index + 1, var3, str.tostring(close), style=label.style_label_center, textcolor=color.white, color=up)else if signalDn top := zlma + a btm := zlma box1 := box.new(bar_index, top, bar_index + 1, btm, bgcolor=color.new(dn, 70), border_color=dn) var3 := (top + btm) / 2 tx := label.new(bar_index + 1, var3, str.tostring(close), style=label.style_label_center, textcolor=color.white, color=dn)else box.set_right(box1, bar_index) label.set_xy(tx, bar_index, var3)// 상승 신호만 표시 (▲)if ta.crossover(low, top) and emaValue < zlma tx1 := label.new(bar_index - 1, low[1], "▲", style=label.style_label_up, color=up, textcolor=color.white)일봉상 위 화살표 신호가 나오는 종목에 대해서 검출 할 수 있도록 해주시면 감사드리겠습니다 (__)
2025-11-03
185
글번호 227573
검색
답변완료
종목검색식 변경
A주가등락률:[일]1봉전(중) 종가대비 0봉전 고가등락률 15%이상B주가비교:[일]0봉전 시가 < 0봉전 종가C[일]거래대금(일:백만, 분:천) 20000이상 999999999이하D[일]3봉전 5봉 평균거래량 100000이상 999999999이하E주가등락률:[일]1봉전(중) 종가대비 0봉전 종가등락률 29.65%이하F주가등락률:[일]3봉전(중) 종가대비 2봉전 종가등락률 29.65%이하G주가비교:[일]2봉전 시가 < 2봉전 종가H주가등락률:[일]3봉전(중) 종가대비 2봉전 고가등락률 15%이상M[일]4봉전 5봉 평균거래량 100000이상 999999999이하J주가비교:[일]3봉전 시가 < 3봉전 종가K주가등락률:[일]4봉전(중) 종가대비 3봉전 고가등락률 15%이상L기간내 등락률:[일]0봉전 5봉이내에서 전일종가대비종가 29.6% 이상 A and B and C and ((D and E and F and G and H) or (M and J and K and !L)) 위 키움 조건식을 예스랭귀지로 아래와 같이 변형을 했습니다.30일치를 한번에 검색할 수 있게 변형했습니다. /* 조건식 변환본 (30일치 조회용) */ var : A(false), B(false), Cc(false), Dd(false), Ee(false), Ff(false);var : Gg(false), Hh(false), Mm(false), Jj(false), Kk(false), Ll(false);var : d(false), cnt5(0);var : VALUE1(0); /* A: 1봉전 종가대비 0봉전 고가등락률 15% 이상(H - C[1]) / C[1] * 100 >= 15*/A = (H - C[1]) / C[1] * 100 >= 15; /* B: 0봉전 시가 < 0봉전 종가 */B = O < C; /* C: [일]거래대금(일:백만) 20000이상 999999999이하→ 예스에서는 원단위로: 20000000000 ~ 999999999000000*/Cc = m >= 20000000000 and m <= 999999999000000; /* D: [일]3봉전 5봉 평균거래량 100000이상 999999999이하 */Dd = ma(V,5)[3] >= 100000 and ma(V,5)[3] <= 999999999; /* E: 1봉전 종가대비 0봉전 종가등락률 29.65% 이하 */Ee = (C - C[1]) / C[1] * 100 <= 29.65; /* F: 3봉전 종가대비 2봉전 종가등락률 29.65% 이하(C[2] - C[3]) / C[3] * 100 <= 29.65*/Ff = (C[2] - C[3]) / C[3] * 100 <= 29.65; /* G: 2봉전 시가 < 2봉전 종가 */Gg = O[2] < C[2]; /* H: 3봉전 종가대비 2봉전 고가등락률 15% 이상(H[2] - C[3]) / C[3] * 100 >= 15*/Hh = (H[2] - C[3]) / C[3] * 100 >= 15; /* M: [일]4봉전 5봉 평균거래량 100000이상 999999999이하 */Mm = ma(V,5)[4] >= 100000 and ma(V,5)[4] <= 999999999; /* J: 3봉전 시가 < 3봉전 종가 */Jj = O[3] < C[3]; /* K: 4봉전 종가대비 3봉전 고가등락률 15% 이상(H[3] - C[4]) / C[4] * 100 >= 15*/Kk = (H[3] - C[4]) / C[4] * 100 >= 15; /* L: 최근 5봉 안에 전일종가대비종가 29.6% 이상이 1회 이상 → 제외(!L) */cnt5 = AccumN( Iff( (C - C[1]) / C[1] * 100 >= 29.6 , 1 , 0 ), 5 );Ll = (cnt5 >= 1); /* 최종식A and B and C and ((D and E and F and G and H) or (M and J and K and !L))*/d = Aand Band Ccand ( (Dd and Ee and Ff and Gg and Hh) or (Mm and Jj and Kk and !Ll) ); /* 신호 난 날짜 저장 */if d thenVALUE1 = sDate; /* 최근 30일 안에 한 번이라도 위 조건이 나오면 뽑기 */if CountIf(d == true, 30) >= 1 thenFind(VALUE1); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 결과 키움조건에서는 25년 1월 6일 : 웰크론, 로보티즈,, 케이씨에스, 퀀트매트릭스25년 1월 7일 : 대동기어, 형지i&c, 형지엘리트, 케이앤알시스템25년 1월 9일 : 로보티즈, 케이엔알시스템, 온코크로스, 모델솔루션 이 검색이 되고, 예스트레이더로 검색시 25년 1월 6일 : 웰크론, 퀀타매트릭스25년 1월 7일 : 대동기어, 형지엘리트25년 1월 9일 : 로보티즈, 케이엔알시스템, 모델솔루션 가 검색이 됩니다. 어느 부분에서 오류가 있는 걸까요?
2025-11-02
424
글번호 227568
종목검색
답변완료
지표식 부탁합니다
지표식 : 주가가 붙임 지표식 상단 위에 있으면 차트바탕에 노란색으로 표시되는 지표식 부탁합니다붙임 :input : period(5),multiplier(1);var : src(0), AtrV(0),upperBand(0),lowerBand(0), prevLowerBand(0), prevUpperBand(0); var : prevSuperTrend(0), direction(0),alpha(0),source(0),SuperTrend(C);if CurrentBar > 1 Then { src = (H+L)/2; alpha = 1 / period ; source = max(high - low, abs(high - close[1]), abs(low - close[1])); ATrV = alpha * source + (1 - alpha) * ATrV[1]; //지수가중이평방식 //ATrV = ma(source,AtrPeriod); //단순이평방식 upperBand = src + multiplier * AtrV; lowerBand = src - multiplier * AtrV; prevLowerBand = lowerBand[1]; prevUpperBand = upperBand[1]; if lowerBand > prevLowerBand or close[1] < prevLowerBand Then lowerBand = lowerBand; Else lowerBand = prevLowerBand; if upperBand < prevUpperBand or close[1] > prevUpperBand Then upperBand = upperBand; Else upperBand = prevUpperBand; if C > UpperBand Then direction = 1; if C < LowerBand Then direction = -1; if direction == 1 Then SuperTrend = lowerband; Else SuperTrend = upperband; Plot1(SuperTrend,"SuperTrend",IFF(direction==1,Green,Black));}
2025-11-02
208
글번호 227566
지표
답변완료
부탁드립니다
M=DATE%10000-DATE%100; D1=M!=M(1); S=valuewhen(1,D1,O); S지표값이 N일전에 10%하락했고 오늘까지 유지중인 종목검색식 부틱드립니다 N일전은 3로 설정해주세요2, A=Ma(가격,기간,이평종류); B=Ma(가격,기준,이평종류); A/B*100 지표조건 가격 시가 기간 1 기준 5 이평종류 단순 종목 검색식 부탁드립니다3,baseDis = (C/avg(C,per))*100;rsiup = avg(max(C-C(1),0),rsiper);rsiDown = avg(max(C(1)-C,0),rsiper);rsival = 100-(100/(1+rsiup/rsiDown));rsiweight = if(rsival <=50, 0.5+(rsival*0.01), 0.5+((rsival - 50)*0.03));volavg =avg(v,volper);volweight = if(volavg !=0,v/volavg,1.0);rsiVolweight = if(rsiVal <30 and Volweight > 1.2,0.8, if(rsiVal > 70 and volweight > 1.2,1.3,1,0));weightedDis = baseDis*rsiweight*volweight*rsivolweight;smoothedweightedDis = avg(weightedDis,3);A= RSI(14);조건 = (smoothedweightedDis(1)<100 ORsmoothedweightedDis<100) &&(A(1)<=30 OR A<=30);지표조건per 20volper 20rsiper 14종목 검색식 부탁 드립니다
2025-11-02
200
글번호 227565
종목검색