커뮤니티

수정 부탁드릴게요

프로필 이미지
회원
2008-10-17 18:27:03
623
글번호 17600
답변완료
맨 밑에 적었습니다 ================================================= input : P(13),startdate(20081010),PP(920); var : sum(0),mav(0),cnt(0),BuyP(0),count(0); sum = 0; for cnt = 0 to P-1{ sum = sum+dayclose(cnt); } mav = sum/P; if sdate >= startdate and dayindex() == 0 and dayclose(1)*1.05 > dayopen() and dayopen() > dayclose(1)*0.97 and count < 1 Then{ buy("매수"); buyP = C; count = 1; } if MarketPosition() == 1 and C <= Buyp*0.94 Then{ buy("추가매수"); BuyP = C; } if MarketPosition() == 1 and C >= mav*0.99 Then{ exitlong("청산1"); count = 0; } if MarketPosition() == 1 and data2(C) >= data2(ma(c,PP))*0.987 Then{ exitlong("청산2"); count = 0; } ================================================= 바로 위 청산 2번이 오후 2시 5분 뒤부터만 적용되게 수정 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2008-10-20 11:25:20

안녕하세요 예스스탁입니다. input : P(13),startdate(20081010),PP(920); var : sum(0),mav(0),cnt(0),BuyP(0),count(0); sum = 0; for cnt = 0 to P-1{ sum = sum+dayclose(cnt); } mav = sum/P; if sdate >= startdate and dayindex() == 0 and dayclose(1)*1.05 > dayopen() and dayopen() > dayclose(1)*0.97 and count < 1 Then{ buy("매수"); buyP = C; count = 1; } if MarketPosition() == 1 and C <= Buyp*0.94 Then{ buy("추가매수"); BuyP = C; } if MarketPosition() == 1 and C >= mav*0.99 Then{ exitlong("청산1"); count = 0; } if MarketPosition() == 1 and data2(C) >= data2(ma(c,PP))*0.987 and data2(stime) > 140500 Then{ exitlong("청산2"); count = 0; } 주봉 봉 완성시간으로 설정하시려면 stime > 140500 참조종목 최근 완성된봉 이후로 설정하시려면 data2(stime) > 140500 로 작성하시면 됩니다. 즐거운 하루되세요 > 부상전에탭치자 님이 쓴 글입니다. > 제목 : 수정 부탁드릴게요 > 맨 밑에 적었습니다 ================================================= input : P(13),startdate(20081010),PP(920); var : sum(0),mav(0),cnt(0),BuyP(0),count(0); sum = 0; for cnt = 0 to P-1{ sum = sum+dayclose(cnt); } mav = sum/P; if sdate >= startdate and dayindex() == 0 and dayclose(1)*1.05 > dayopen() and dayopen() > dayclose(1)*0.97 and count < 1 Then{ buy("매수"); buyP = C; count = 1; } if MarketPosition() == 1 and C <= Buyp*0.94 Then{ buy("추가매수"); BuyP = C; } if MarketPosition() == 1 and C >= mav*0.99 Then{ exitlong("청산1"); count = 0; } if MarketPosition() == 1 and data2(C) >= data2(ma(c,PP))*0.987 Then{ exitlong("청산2"); count = 0; } ================================================= 바로 위 청산 2번이 오후 2시 5분 뒤부터만 적용되게 수정 부탁드립니다.