커뮤니티

35596 입니다

프로필 이미지
하늘거지
2014-03-25 13:14:20
148
글번호 73808
답변완료
input;kospiF1( 지정한 선물가격),kospiF2(0),kospiF3(0),kospiF4(0),kospiF5(0); 1.매수진입(10초봉 기준) kospiF1+0.2P . . kospiF5+0.2p 범위에서 연속되는 8개봉중 종가or저가가 6개봉이상 머무를때 시장가 매수 2.매도진입(10초봉 기준) kospiF1-0.2P . . kospiF5-0.2 범위에서 연속되는 8개봉중 종가or고가가 6개봉이상 머무를때 시장가 매도
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-03-25 17:47:04

안녕하세요 예스스탁입니다. input:kospiF1(256),kospiF2(257),kospiF3(258),kospiF4(259),kospiF5(260); var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } if (dayindex+1 >= 8 and stime < 90500 and count == 0) or (stime >= 095000 and count >=1) Then{ if countif(C>=kospiF1 and C <= kospiF1+0.2,8) >= 6 Or countif(L>=kospiF1 and L <= kospiF1+0.2,8) >= 6 Then buy("b1"); if countif(C>=kospiF2 and C <= kospiF2+0.2,8) >= 6 Or countif(L>=kospiF2 and L <= kospiF2+0.2,8) >= 6 Then buy("b2"); if countif(C>=kospiF3 and C <= kospiF3+0.2,8) >= 6 Or countif(L>=kospiF3 and L <= kospiF3+0.2,8) >= 6 Then buy("b3"); if countif(C>=kospiF4 and C <= kospiF4+0.2,8) >= 6 Or countif(L>=kospiF4 and L <= kospiF4+0.2,8) >= 6 Then buy("b4"); if countif(C>=kospiF5 and C <= kospiF5+0.2,8) >= 6 Or countif(L>=kospiF5 and L <= kospiF5+0.2,8) >= 6 Then buy("b5"); if countif(C<=kospiF1 and C >= kospiF1-0.2,8) >= 6 Or countif(H<=kospiF1 and H <= kospiF1-0.2,8) >= 6 Then sell("s1"); if countif(C<=kospiF2 and C >= kospiF2-0.2,8) >= 6 Or countif(H<=kospiF2 and H <= kospiF2-0.2,8) >= 6 Then sell("s2"); if countif(C<=kospiF3 and C >= kospiF3-0.2,8) >= 6 Or countif(H<=kospiF3 and H <= kospiF3-0.2,8) >= 6 Then sell("s3"); if countif(C<=kospiF4 and C >= kospiF4-0.2,8) >= 6 Or countif(H<=kospiF4 and H <= kospiF4-0.2,8) >= 6 Then sell("s4"); if countif(C<=kospiF5 and C >= kospiF5-0.2,8) >= 6 Or countif(H<=kospiF5 and H <= kospiF5-0.2,8) >= 6 Then sell("s5"); } if MarketPosition == 1 and IsEntryName("b1") == true Then ExitLong("bx1",AtStop,kospiF1-0.5); if MarketPosition == 1 and IsEntryName("b2") == true Then ExitLong("bx2",AtStop,kospiF2-0.5); if MarketPosition == 1 and IsEntryName("b3") == true Then ExitLong("bx3",AtStop,kospiF3-0.5); if MarketPosition == 1 and IsEntryName("b4") == true Then ExitLong("bx4",AtStop,kospiF4-0.5); if MarketPosition == 1 and IsEntryName("b5") == true Then ExitLong("bx5",AtStop,kospiF5-0.5); if MarketPosition == -1 and IsEntryName("s1") == true Then ExitShort("sx1",AtStop,kospiF1+0.5); if MarketPosition == -1 and IsEntryName("s2") == true Then ExitShort("sx2",AtStop,kospiF2+0.5); if MarketPosition == -1 and IsEntryName("s3") == true Then ExitShort("sx3",AtStop,kospiF3+0.5); if MarketPosition == -1 and IsEntryName("s4") == true Then ExitShort("sx4",AtStop,kospiF4+0.5); if MarketPosition == -1 and IsEntryName("s5") == true Then ExitShort("sx5",AtStop,kospiF5+0.5); SetStopEndofday(150000); 즐거운 하루되세요 > 하늘거지 님이 쓴 글입니다. > 제목 : 35596 입니다 > input;kospiF1( 지정한 선물가격),kospiF2(0),kospiF3(0),kospiF4(0),kospiF5(0); 1.매수진입(10초봉 기준) kospiF1+0.2P . . kospiF5+0.2p 범위에서 연속되는 8개봉중 종가or저가가 6개봉이상 머무를때 시장가 매수 2.매도진입(10초봉 기준) kospiF1-0.2P . . kospiF5-0.2 범위에서 연속되는 8개봉중 종가or고가가 6개봉이상 머무를때 시장가 매도