커뮤니티

시스탬수정

프로필 이미지
야크
2018-06-21 19:45:04
113
글번호 119951
답변완료
당일거래 왰수10 아래수식을 10시16분에 앞전신호가 매수이면 매수 매도이면 매도가(이 기능이 불가시 무시하시고요) 이루어지면서 시작하고 오후5시29분에 포지션 정리후 종료 되게끔 부탁드립니다. input : 기간(1),수치(10); var : AA(0); aa = 100*((ma((c+h+l)/3,10)+2*std((c+h+l)/3,10))-(ma((c+h+l)/3,10)-2*std((c+h+l)/3,10)))/ma((c+h+l)/3,10); if crossup(c,highest(h[1],수치)) and aa>기간 Then buy(); if crossdown(c,lowest(l[1],수치)) Then exitlong(); if crossdown(c,lowest(l[1],수치)) Then sell(); if crossup(c,highest(h[1],수치)) Then ExitShort();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-06-22 08:44:54

안녕하세요 예스스탁입니다. input : 기간(1),수치(10); var : AA(0),Tcond(false),T(0); aa = 100*((ma((c+h+l)/3,10)+2*std((c+h+l)/3,10))-(ma((c+h+l)/3,10)-2*std((c+h+l)/3,10)))/ma((c+h+l)/3,10); if (sdate != sdate[1] and stime >= 101600) or (sdate == sdate[1] and stime >= 101600 and stime[1] < 101600) then { Tcond = true; if MarketPosition(1) == 1 Then buy(); if MarketPosition(1) == -1 Then sell(); } if (sdate != sdate[1] and stime >= 172900) or (sdate == sdate[1] and stime >= 172900 and stime[1] < 172900) then { Tcond = false; } if Tcond == true then { if crossup(c,highest(h[1],수치)) and aa>기간 Then { buy(); } if crossdown(c,lowest(l[1],수치)) Then { sell(); } if crossdown(c,lowest(l[1],수치)) Then exitlong(); if crossup(c,highest(h[1],수치)) Then ExitShort(); } SetStopEndofday(172900); 즐거운 하루되세요 > 야크 님이 쓴 글입니다. > 제목 : 시스탬수정 > 당일거래 왰수10 아래수식을 10시16분에 앞전신호가 매수이면 매수 매도이면 매도가(이 기능이 불가시 무시하시고요) 이루어지면서 시작하고 오후5시29분에 포지션 정리후 종료 되게끔 부탁드립니다. input : 기간(1),수치(10); var : AA(0); aa = 100*((ma((c+h+l)/3,10)+2*std((c+h+l)/3,10))-(ma((c+h+l)/3,10)-2*std((c+h+l)/3,10)))/ma((c+h+l)/3,10); if crossup(c,highest(h[1],수치)) and aa>기간 Then buy(); if crossdown(c,lowest(l[1],수치)) Then exitlong(); if crossdown(c,lowest(l[1],수치)) Then sell(); if crossup(c,highest(h[1],수치)) Then ExitShort();