커뮤니티

질문드립니다.

프로필 이미지
stockric
2018-04-11 09:44:51
135
글번호 118087
답변완료
최근5일이내 data2의 종목이 상한가를 간적이 있고, data1의 현재가가 시가를 돌파하면서, 현재가가 20%이상 상승하지 않았을때 매수. 오전9시~11시타임과, 오후2시부터 장마감타임 이렇게 2개의 시간대에만 매수함. 매수조건에 전일대비 5%이상 올랐으면, 전일대비15%상승했을때 매수청산 현재가가 전일대비 29%이상 올랐으면 매수청산 진입가대비 8%이상 올랐다가 진입가보다+2%까지 떨어지면 매수청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-04-11 14:32:55

안녕하세요 예스스탁입니다. 매수조건에 전일대비 5%이상 올랐으면, 전일대비15%상승했을때 매수청산 위 부분은 내용이 정확히 판단되지 않아 추가하지 못했습니다. 해당 부분은 사용자분이 추가해 보셔야 할것 같습니다. var : 상한가(0,data2), UpLimit(0,data2); var : BPV(0,data2),up1(0,data2), up2(0,data2), up3(0,data2), up4(0,data2), up5(0,data2),up6(0,data2),Up7(0,data2); var : d2(0,data2),dd(0,data2); BPV = data2(BP); if data2(date >= 19981207) then { if data2(date < 20050328 && CodeCategory() == 2) then UpLimit = (BPV * 1.12); Else if data2(date >= 20050328 and date < 20150615) Then UpLimit = (BPV * 1.15); Else UpLimit = (BPV * 1.30); if data2(CodeCategory() == 2) then { if data2(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 data2(CodeCategory() == 1 || CodeCategory() == 2) then { if data2(sdate < 20101004) Then { If BPV >= 500000 Then 상한가 = up1; Else If BPV >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BPV >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BPV >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BPV >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BPV >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up6); } Else { If BPV >= 500000 Then 상한가 = up1; Else If BPV >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BPV >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BPV >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BPV >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else If BPV >= 1000 Then 상한가 = iff(up5>=5000, up5, up6); Else 상한가 = iff(up6>=1000, up6, up7); } } else if data2(CodeCategory() == 8 || CodeCategory() == 9) then { // ETF 상한가 = up6; } } if data2(bdate != bdate[1]) Then d2 = d2+1; if data2(c >= 상한가) Then dd = d2; if dd > 0 and d2 <= dd+5 and MarketPosition == 0 and data1(crossup(C,dayopen) and c < DayClose(1)*1.20 and ((stime >= 90000 and stime < 110000) or (stime >= 140000))) Then buy(); if MarketPosition == 1 then{ ExitLong("bx2",atlimit,DayClose(1)*1.29); if data1(highest(h,BarsSinceEntry)) >= EntryPrice*1.08 Then ExitLong("bx3",AtStop,EntryPrice*1.02); } 즐거운 하루되세요 > stockric 님이 쓴 글입니다. > 제목 : 질문드립니다. > 최근5일이내 data2의 종목이 상한가를 간적이 있고, data1의 현재가가 시가를 돌파하면서, 현재가가 20%이상 상승하지 않았을때 매수. 오전9시~11시타임과, 오후2시부터 장마감타임 이렇게 2개의 시간대에만 매수함. 매수조건에 전일대비 5%이상 올랐으면, 전일대비15%상승했을때 매수청산 현재가가 전일대비 29%이상 올랐으면 매수청산 진입가대비 8%이상 올랐다가 진입가보다+2%까지 떨어지면 매수청산