커뮤니티

재문의 드립니다

프로필 이미지
스페이드퀸
2005-12-08 14:16:12
1118
글번호 8929
답변완료
input : N(2); var : cnt(0); var1= WILLR(14); if date != date[1] then cnt = 0; if var1 >= -80 and cnt < N then{ buy(); cnt = cnt +1; } if var1 <= -20 then exitlong(); if var1 <= -20 and cnt < N then{ sell(); cnt = cnt +1; } if var1 >= -80 then exitshort(); 2. 신호가 나온후 N 봉 안에는 신호가 안나오게 하는식 input : N(2); var : cnt(0); var1= WILLR(14); if var1 >= -80 and cnt < 1 then{ buy(); cnt = 1; } if var1 <= -20 and cnt < 1 then{ sell(); cnt = 1; } if var1 >= -80 and barssinceexit() >= N then{ buy(); cnt = 1; } if var1 <= -20 and barssinceexit() >= N then{ sell(); cnt = 1; } if var1 <= -20 then exitlong(); if var1 >= -80 then exitshort(); 테스트 해보니 오바용인데 시가에서 신호가 막떠버리는데여 또 조건에 맞으면 시가에서 매수,매도,청산 신호들이 떠버리든데 그런 신호들이 안뜨게 할수없나요? 부탁드려요^^
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2005-12-08 16:16:42

안녕하세요 예스스탁입니다. 문의하신 식을 수정했습니다. 1. input : N(2); var : cnt(0); var1= WILLR(14); if date != date[1] then cnt = 0; if var1 <= -80 and cnt < N then{ buy(); cnt = cnt +1; } if var1 >= -20 then exitlong(); if var1 >= -20 and cnt < N then{ sell(); cnt = cnt +1; } if var1 <= -80 then exitshort(); 2. input : N(2); var : cnt(0); var1= WILLR(14); if var1 <= -80 and cnt < 1 then{ buy(); cnt = 1; } if var1 >= -20 and cnt < 1 then{ sell(); cnt = 1; } if cnt == 1 and var1 <= -80 and barssinceexit(1) >= N then{ buy(); } if cnt == 1 and var1 >= -20 and barssinceexit(1) >= N then{ sell(); } if var1 >= -20 then exitlong(); if var1 <= -80 then exitshort(); 즐거운 하루되세요 > 스페이드퀸 님이 쓴 글입니다. > 제목 : 재문의 드립니다 > input : N(2); var : cnt(0); var1= WILLR(14); if date != date[1] then cnt = 0; if var1 >= -80 and cnt < N then{ buy(); cnt = cnt +1; } if var1 <= -20 then exitlong(); if var1 <= -20 and cnt < N then{ sell(); cnt = cnt +1; } if var1 >= -80 then exitshort(); 2. 신호가 나온후 N 봉 안에는 신호가 안나오게 하는식 input : N(2); var : cnt(0); var1= WILLR(14); if var1 >= -80 and cnt < 1 then{ buy(); cnt = 1; } if var1 <= -20 and cnt < 1 then{ sell(); cnt = 1; } if var1 >= -80 and barssinceexit() >= N then{ buy(); cnt = 1; } if var1 <= -20 and barssinceexit() >= N then{ sell(); cnt = 1; } if var1 <= -20 then exitlong(); if var1 >= -80 then exitshort(); 테스트 해보니 오바용인데 시가에서 신호가 막떠버리는데여 또 조건에 맞으면 시가에서 매수,매도,청산 신호들이 떠버리든데 그런 신호들이 안뜨게 할수없나요? 부탁드려요^^