답변완료
검색식 부탁드립니다
안녕하세요 다음 수식을 예스 검색식으로 부탁드립니다 감사합니다 Pivot2차=(predayhigh()+predaylow()+predayclose())/3 +predayhigh()-predaylow();검색=C>=PredayHigh() andV>20000 and V>V(1)*1.5 andO<=PredayClose()*1.12 andC>ma(C,20) and ma(C,20)>ma(C,60) andO<=(H(1)+L(1)+C(1))/3+H(1)-L(1) and C>Pivot2차 and(CrossUp(C,Highest(H,3,1))or C>Highest(H,3,1));카운트=CountSince(date!=date(1),검색);카운트==1&& 카운트(1)==0
답변완료
부탁드립니다
1,efficiency = abs(C-O)/V; directionalVol = if(C>C(1),V,if(C<C(1),-V,0)); weightedFlow = sum(directionalVol*efficiency,orderFlowWindow); efficiencysum = sum(efficiency,orderFlowWindow); raworderFlow = weightedFlow /efficiencysum; hmaorderFlow = wavg(2*wavg(raworderFlow, floor(smoothingLength/2))-wavg(rawOrderFlow,smoothingLength), floor(sqrt(smoothingLength))); OrderFlow = if(usesmoothing == 1,hmaOrderFlow,rawOrderFlow); stdDev = stdev(orderFlow,45); nomalizedorderFlow = orderFlow/(stdDev *2); Crossup( nomalizedorderFlow ,돌파) 지표조건 orderFlowWindow 12 smoothinglength 10 useSmoothing 1 돌파 0 종목 검색식 부탁드립니다 2,1봉전 종가 아래로 주가가 하락해던 종목 매수 금지 검색 부탁 드립니다
답변완료
수식변환문의
아래 수식은 -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
100
글번호 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)일봉상 위 화살표 신호가 나오는 종목에 대해서 검출 할 수 있도록 해주시면 감사드리겠습니다 (__)
답변완료
종목검색식 변경
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
127
글번호 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));}