커뮤니티

키움종목검색식변환이요...

프로필 이미지
시온사랑
2025-05-30 16:55:26
291
글번호 191301
답변완료
지표 내용 A [일]거래량:100000이상 999999999이하 B 검색시간: 09:02 ~ 09:06 C 주가범위:0일전 시가가 5000 이상 20000 이하 O [당일] 전고점 <= 1분 0 봉전 종가 D 주가이평돌파:[1분]0봉전 (종가 1)이평 (종가 3)이평 골든크로스 E 주가이평돌파:[1분]1봉전 (종가 1)이평 (종가 3)이평 골든크로스 F 주가이평돌파:[1분]2봉전 (종가 1)이평 (종가 3)이평 골든크로스 G 주가등락률:[일]1봉전(중) 종가대비 0봉전 시가등락률 1%이상 10%이하 J 기간내 등락률:[1분]0봉전 3봉이내에서 시가대비종가 -0.1% 이하 K 최근 2분간 평균 체결건수 100건 이상 L 기간내 등락률:[1분]0봉전 7봉이내에서 시가대비종가 10% 이상 M 기간내 등락봉수:[1분]0봉전 3봉이내 1봉 포프라이스 도지발생 N 상한가에 5%이내 근접 P 기간내 등락률:[1분]0봉전 7봉이내에서 시가대비종가 -1% 이하 A and B and C and O and (D or E or F) and G and !J and K and !L and !M and !N and !P ---------------------------------------------------- 키움검색식을 변환부탁드립니다... 미리 감사합니다... 수고하세요...ㅎ
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-06-02 12:19:37

안녕하세요 예스스탁입니다. var : AA(False),BB(False),CC(False),OO(False); var : DD(False),EE(False),FF(False),GG(False); var : JJ(False),KK(False),LL(False),MM(False); var : NN(False),PP(False); var : 상한가(0), UpLimit(0); var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0); if date >= 19981207 then { if date < 20050328 && CodeCategory() == 2 then UpLimit = (BP[0] * 1.12); Else if date >= 20050328 and date < 20150615 Then UpLimit = (BP[0] * 1.15); Else UpLimit = (BP[0] * 1.30); if date >= 20230125 Then { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } Else { if CodeCategory() == 2 then { if date >= 20030721 then { up1 = int(UpLimit/100+0.00001)*100; up2 = int(UpLimit/100+0.00001)*100; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/10+0.00001)*10; up7 = int(UpLimit/1+0.00001)*1; } } Else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; up7 = int(UpLimit/1+0.00001)*1; } } if CodeCategory() == 1 || CodeCategory() == 2 then { if date >= 20230125 Then { If BP >= 500000 Then 상한가 = up1; Else If BP >= 200000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=200000, up2, up3); Else If BP >= 20000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=20000, up4, up5); Else If BP >= 2000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=2000, up6, up7); } Else { if sdate < 20101004 Then { If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up6); } Else { If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BP >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up7); } } } else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF 상한가 = up6; } } var1 = ma(c,1); var2 = ma(c,3); Condition1 = CrossUp(var1,var2); AA = DayVolume >= 100000; BB = sTime >= 90200 and sTime <= 090600; CC = DayOpen >= 5000 and DayOpen <= 20000; OO = DayHigh(0)[1] < C; DD = Condition1 == true; EE = Condition1[1] == true; FF = Condition1[2] == true; GG = DayOpen >= DayClose(1)*1.01 and DayOpen <= DayClose(1)*1.10; JJ = CountIf(C<= O*0.999,3) >= 1; KK = ma(Ticks,2) >= 100; LL = CountIf(C>=O*1.10,7)>= 1; MM = CountIf(C == O and H==L,3) >= 1; NN = C >= 상한가*0.95; PP = CountIf(C <= O*0.99,7) >= 1; if AA and BB and CC and OO and (DD or EE or FF) and GG and !JJ and KK and !LL and !MM and !NN and !PP Then Find(1); 즐거운 하루되세요 > 시온사랑 님이 쓴 글입니다. > 제목 : 키움종목검색식변환이요... > 지표 내용 A [일]거래량:100000이상 999999999이하 B 검색시간: 09:02 ~ 09:06 C 주가범위:0일전 시가가 5000 이상 20000 이하 O [당일] 전고점 <= 1분 0 봉전 종가 D 주가이평돌파:[1분]0봉전 (종가 1)이평 (종가 3)이평 골든크로스 E 주가이평돌파:[1분]1봉전 (종가 1)이평 (종가 3)이평 골든크로스 F 주가이평돌파:[1분]2봉전 (종가 1)이평 (종가 3)이평 골든크로스 G 주가등락률:[일]1봉전(중) 종가대비 0봉전 시가등락률 1%이상 10%이하 J 기간내 등락률:[1분]0봉전 3봉이내에서 시가대비종가 -0.1% 이하 K 최근 2분간 평균 체결건수 100건 이상 L 기간내 등락률:[1분]0봉전 7봉이내에서 시가대비종가 10% 이상 M 기간내 등락봉수:[1분]0봉전 3봉이내 1봉 포프라이스 도지발생 N 상한가에 5%이내 근접 P 기간내 등락률:[1분]0봉전 7봉이내에서 시가대비종가 -1% 이하 A and B and C and O and (D or E or F) and G and !J and K and !L and !M and !N and !P ---------------------------------------------------- 키움검색식을 변환부탁드립니다... 미리 감사합니다... 수고하세요...ㅎ