커뮤니티

종목 검색이 잘 되지 않아 다시 질문드립니다.

프로필 이미지
mhim30
2021-10-25 22:42:22
1465
글번호 153154
답변완료

첨부 이미지

https://www.yesstock.com/Board/View.asp?db=board100036&Ext=0&startpage=1&pageno=1&num=153763&ref=153745&Sort=&KeyField=NickName&KeyWord=mhim30 위 링크는 저번에 질문드렸었던 링크입니다. 답변 잘 받았습니다. 다름이 아니라 답변해주시는대로 해보았으나, 검색되어야 될 종목이 검색이 되질 않아 다시 질문드려봅니다. 첨부 이미지를 보시면 초록색 선이 있는데 그 선은 일봉상 상한가 전날의 종가에 선을 그어 놨고, 그 선에 +5%~-10% 범위 안에 들어오는 종목을 검색하고자 합니다. 위 조건이라면 재영솔루텍 종목이 검색되어야되는데, 검색이 되질 않습니다. 다시 한번 봐주시면 감사하겠습니다. 감사합니다.
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-10-26 14:00:25

안녕하세요 예스스탁입니다. 죄송합니다. 값을 잘못지정해 드렸습니다. 수정한 식입니다. 종목검색시에 속성에서 검색에 필요한 최소기간에 넉넉히 70봉 이상 지정하고 검색하시기 바랍니다. input : 금액(10000000); 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 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 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; } } var : TL(0); if C >= 상한가 Then { var1 = Index; Var2 = C[1]; } Else { if var1 > 0 and Index < var1+60 and C <= var2*1.05 and C >= var2*0.90 Then Find(Var2); } 즐거운 하루되세요 > mhim30 님이 쓴 글입니다. > 제목 : 종목 검색이 잘 되지 않아 다시 질문드립니다. > https://www.yesstock.com/Board/View.asp?db=board100036&Ext=0&startpage=1&pageno=1&num=153763&ref=153745&Sort=&KeyField=NickName&KeyWord=mhim30 위 링크는 저번에 질문드렸었던 링크입니다. 답변 잘 받았습니다. 다름이 아니라 답변해주시는대로 해보았으나, 검색되어야 될 종목이 검색이 되질 않아 다시 질문드려봅니다. 첨부 이미지를 보시면 초록색 선이 있는데 그 선은 일봉상 상한가 전날의 종가에 선을 그어 놨고, 그 선에 +5%~-10% 범위 안에 들어오는 종목을 검색하고자 합니다. 위 조건이라면 재영솔루텍 종목이 검색되어야되는데, 검색이 되질 않습니다. 다시 한번 봐주시면 감사하겠습니다. 감사합니다.