커뮤니티

진입안되는 현상

프로필 이미지
캣피쉬
2021-06-21 17:04:36
2013
글번호 150141
답변완료

첨부 이미지

시뮬차트와 전략차트의 신호가 다르게 나와서... 살펴 보다보니... 왼쪽사진은 crossup,crossdown 조건 오른쪽은 크다작다로 진입 설정 두개 사이에 차이가 발생하는 것도 이상하고,, 두개의 사진에서 모두 진입조건인데 진입을 안하는 경우 역시 발생합니다. 왜 이런지 궁금합니다. ------------ # input : StartTime(90500),EndTime(151000); Input : s1(700), s2(1200); input : 손절(5.6); input : 익절(10.2); input : bf11(0.75),sf11(-0.7),bf12(0.8),sf12(-0.75); input : bf13(0.4),sf13(-0.2),bf14(0.5),sf14(-0.45); input : ultra1(1200); var : Tcond(false,Data1); var : C2(0,Data2); var : C3(0,Data3); var : C4(0,Data4); var : C5(0,Data5); value1 = ma(c5,s1); value2 = ma(c5,s2); if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then Tcond = true; C2 = Data2(c); C3 = Data3(c); C4 = Data4(c); C5 = Data5(c); if Tcond == true Then { If Value1>Value2 #crossup(value1,value2) and c2<bf11 and c3<bf12 and c4<bf13 and c5<bf14 Then { Buy(); } If Value1<Value2 #crossdown(value1,value2) and c2>sf11 and c3>sf12 and c4>sf13 and c5>sf14 Then { Sell(); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-06-21 18:42:32

> 캣피쉬 님이 쓴 글입니다. > 제목 : 진입안되는 현상 > 시뮬차트와 전략차트의 신호가 다르게 나와서... 살펴 보다보니... 왼쪽사진은 crossup,crossdown 조건 오른쪽은 크다작다로 진입 설정 두개 사이에 차이가 발생하는 것도 이상하고,, 두개의 사진에서 모두 진입조건인데 진입을 안하는 경우 역시 발생합니다. 왜 이런지 궁금합니다. ------------ # input : StartTime(90500),EndTime(151000); Input : s1(700), s2(1200); input : 손절(5.6); input : 익절(10.2); input : bf11(0.75),sf11(-0.7),bf12(0.8),sf12(-0.75); input : bf13(0.4),sf13(-0.2),bf14(0.5),sf14(-0.45); input : ultra1(1200); var : Tcond(false,Data1); var : C2(0,Data2); var : C3(0,Data3); var : C4(0,Data4); var : C5(0,Data5); value1 = ma(c5,s1); value2 = ma(c5,s2); if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then Tcond = true; C2 = Data2(c); C3 = Data3(c); C4 = Data4(c); C5 = Data5(c); if Tcond == true Then { If Value1>Value2 #crossup(value1,value2) and c2<bf11 and c3<bf12 and c4<bf13 and c5<bf14 Then { Buy(); } If Value1<Value2 #crossdown(value1,value2) and c2>sf11 and c3>sf12 and c4>sf13 and c5>sf14 Then { Sell(); } }