커뮤니티

시스템식 기본 틀 부탁드립니다.

프로필 이미지
yjh7474
2013-09-02 19:38:11
113
글번호 67064
답변완료
안녕하세요^^ 몇년전 쓰전 함수로 작성하였는데 검증이 않되네요 ㅋ 선물 매수진입 >> 매도청산 하는 기본틀좀 드탁드립니다^^ Condition1 = ( 진입조건 ); Condition2 = ( 진입조건 ); Condition3 = ( 진입조건 ); Condition4 = ( 진입조건 ); Condition5 = ( 진입조건 ); Condition10 = (각항 공통 진입조건); If Condition1 and Condition10 then{ buy(); } If Condition2 and Condition10 then{ buy(); } If Condition3 and Condition10 then{ buy(); } If Condition4 and Condition10 then{ buy(); } If Condition5 and Condition10 then{ buy(); } if !(BarsSinceEntry() == 0) and (o > ma(c,5) and c < ma(c,5)) or (c[1] < ma(c,5) and c < ma(c,5)) or SetStopEndofday(150400) Then{ ExitLong(); } 진입조건이 여러개 있고 진입을 했을때 어느Condition로 진입되었는가 알고자 하며, 위 식이 검증이 않되서요^^ 부탁드립니다^^ 수고하세요^^
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-09-02 20:10:12

안녕하세요 예스스탁입니다. 작성하신 구조에는 이상이 없어 보입니다. condition1~5의 진입조건을 살펴보셔야 할 것 같습니다. 그리고 끝 부분은 당일청산을 따로 빼서 작성해야 합니다. if !(BarsSinceEntry() == 0) and (o > ma(c,5) and c < ma(c,5)) or (c[1] < ma(c,5) and c < ma(c,5)) Then{ ExitLong(); } SetStopEndofday(150400); 즐거운 날 되세요. > yjh7474 님이 쓴 글입니다. > 제목 : 시스템식 기본 틀 부탁드립니다. > 안녕하세요^^ 몇년전 쓰전 함수로 작성하였는데 검증이 않되네요 ㅋ 선물 매수진입 >> 매도청산 하는 기본틀좀 드탁드립니다^^ Condition1 = ( 진입조건 ); Condition2 = ( 진입조건 ); Condition3 = ( 진입조건 ); Condition4 = ( 진입조건 ); Condition5 = ( 진입조건 ); Condition10 = (각항 공통 진입조건); If Condition1 and Condition10 then{ buy(); } If Condition2 and Condition10 then{ buy(); } If Condition3 and Condition10 then{ buy(); } If Condition4 and Condition10 then{ buy(); } If Condition5 and Condition10 then{ buy(); } if !(BarsSinceEntry() == 0) and (o > ma(c,5) and c < ma(c,5)) or (c[1] < ma(c,5) and c < ma(c,5)) or SetStopEndofday(150400) Then{ ExitLong(); } 진입조건이 여러개 있고 진입을 했을때 어느Condition로 진입되었는가 알고자 하며, 위 식이 검증이 않되서요^^ 부탁드립니다^^ 수고하세요^^