커뮤니티

60714 답변 보완요청

프로필 이미지
tao
2019-01-11 05:07:40
165
글번호 125153
답변완료
60714의 보내주신 시스템을 적용해보니, "선언되지 않은 'T1'이 사용되었습니다."라는 오류메세지가 뜨네요. 그리고 var :count(0),T1(0); 로 수정해사용해보니 하루에 1번진입합니다. 보완요청드립니다. 감사합니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-01-11 13:26:29

안녕하세요 예스스탁입니다. 진입을 누적하시는지 여부가 정확치 않습니다. 피라미딩 여부와 관계없이 각 지정한 시간대별로 1회씩 진입하게 수정해 드립니다. 피라미딩을 하실경우에는 시스템 트레이딩 설정창의 피라미딩탭에서 모든 진입신호허용으로 설정하고 적용하시면 됩니다. Input:N(1); var :count(0); var : A(0),B(0); A = ma(C,5); B = ma(C,10); if (sdate != sdate[1] and stime >= 90000) or (sdate == sdate[1] and stime >= 90000 and stime[1] < 90000) Then Count = 0; if (sdate != sdate[1] and stime >= 093000) or (sdate == sdate[1] and stime >= 093000 and stime[1] < 093000) Then Count = 0; if (sdate != sdate[1] and stime >= 100000) or (sdate == sdate[1] and stime >= 100000 and stime[1] < 100000) Then Count = 0; if CurrentContracts > CurrentContracts[1] Then count = count+1; #진입 If Count<N and marketposition==0 Then { If Stime >= 090000 and Stime < 093000 Then { if crossup(A,B) then buy(); } If Stime >= 093000 and Stime < 100000 Then { if crossup(A,B) then buy(); } If Stime >= 100000 and Stime < 120000 Then { if crossup(A,B) then buy(); } } If marketposition==1 Then { if CrossDown(A,B) then exitlong(); } 즐거운 하루되세요 > tao 님이 쓴 글입니다. > 제목 : 60714 답변 보완요청 > 60714의 보내주신 시스템을 적용해보니, "선언되지 않은 'T1'이 사용되었습니다."라는 오류메세지가 뜨네요. 그리고 var :count(0),T1(0); 로 수정해사용해보니 하루에 1번진입합니다. 보완요청드립니다. 감사합니다