커뮤니티

수식 부탁드립니다.

프로필 이미지
디얼디어
2017-09-03 00:34:39
135
글번호 112453
답변완료
5분봉기준에서 매매시 전일거래량 대비 5분봉 누적거래량이 전일대비 50%이면서 주가가 일목균형표의 기준선보다 위에 있고 기준선 위에 있을때 양봉이고 전일 고점을 넘었을때 매수 단 거래시간이 9:00~9:30분 이내 신호발생시 매매 진입횟수도 1회로 제한 조건만족시20%이하 캔들만 진입(5분봉) 기준선을 20%이상(종가기준)으로 뚫었을때 진입 안함 또한 시가를 캡으로 15%이상급등하면서 전일거래량을 시작하고 5분만에 전일거래량100%이상 제외 진입안함 전날 상한가도 매매안함 최근 5일 변동이고저 15%이하만 매매 익절은 5% 일목 기준선 종가 이탈시 다음봉 종가 손절
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-09-04 14:10:30

안녕하세요 예스스탁입니다. var : T1(0),entry(0),HH(0),LL(0),cnt(0); 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; } } if bdate != Bdate[1] Then{ T1 = TotalTrades; Condition1 = true; if DayVolume > DayVolume(1) and dayopen >= DayClose(1)*1.15 Then Condition1 = false; if DayClose(1) >= 상한가 Then Condition1 = false; } if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = TotalTrades-T1+1; var1 = (Highest(H, 26) + Lowest(L, 26)) / 2; HH = dayhigh(1); LL = daylow(1); for cnt = 1 to 5{ if dayhigh(cnt) > HH Then HH = DayHigh(cnt); if DayLow(cnt) < LL Then LL = DayLow(cnt); } if Condition1 == true and DayVolume > DayVolume(1)*0.5 and C > var1 and C < var1*1.20 and C > O and crossup(c,DayHigh(1)) and stime < 93000 and entry < 1 and HH < LL*1.15 then buy(); if MarketPosition == 1 and CrossDown(c,var1) Then exitlong(); SetStopLoss(5,PercentStop); 즐거운 하루되세요 > 디얼디어 님이 쓴 글입니다. > 제목 : 수식 부탁드립니다. > 5분봉기준에서 매매시 전일거래량 대비 5분봉 누적거래량이 전일대비 50%이면서 주가가 일목균형표의 기준선보다 위에 있고 기준선 위에 있을때 양봉이고 전일 고점을 넘었을때 매수 단 거래시간이 9:00~9:30분 이내 신호발생시 매매 진입횟수도 1회로 제한 조건만족시20%이하 캔들만 진입(5분봉) 기준선을 20%이상(종가기준)으로 뚫었을때 진입 안함 또한 시가를 캡으로 15%이상급등하면서 전일거래량을 시작하고 5분만에 전일거래량100%이상 제외 진입안함 전날 상한가도 매매안함 최근 5일 변동이고저 15%이하만 매매 익절은 5% 일목 기준선 종가 이탈시 다음봉 종가 손절