커뮤니티

이건 가능 한가요

프로필 이미지
회원
2008-10-20 08:56:42
726
글번호 17603
답변완료
1분챠트를 이용하고요 업종 종합챠트를 참조 하여서 업종 실시간 현재가를 이용 합니다. 밑에 식에다더해주세요 if 2시 5분 이후 and 1분봉 업종 실시간 현재가 >= (예를들어:1288.46) //괄호는 제가 숫자를 넣을수 있게 설정 부탁드립니다// 면 매수청산 2 ========================== input : P(20),startdate(20080821); 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 dayopen() < mav*0.953 and dayclose(1)*1.03 > 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("청산"); count = 0; }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2008-10-20 11:39:58

안녕하세요 예스스탁입니다. 최근 완성된 봉의 값을 기준으로 청산이 발동합니다. 즐거운 하루되세요 input : P(20),startdate(20080821),pp(1288.46); 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 dayopen() < mav*0.953 and dayclose(1)*1.03 > 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("청산"); count = 0; } if MarketPosition() == 1 Then{ if data2(c) >= Pp Then exitlong(); } > 부상전에탭치자 님이 쓴 글입니다. > 제목 : 이건 가능 한가요 > 1분챠트를 이용하고요 업종 종합챠트를 참조 하여서 업종 실시간 현재가를 이용 합니다. 밑에 식에다더해주세요 if 2시 5분 이후 and 1분봉 업종 실시간 현재가 >= (예를들어:1288.46) //괄호는 제가 숫자를 넣을수 있게 설정 부탁드립니다// 면 매수청산 2 ========================== input : P(20),startdate(20080821); 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 dayopen() < mav*0.953 and dayclose(1)*1.03 > 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("청산"); count = 0; }