커뮤니티

부탁드립니다.

프로필 이미지
매일상승
2015-06-29 17:55:19
112
글번호 87779
답변완료
시간을 잘못 말씀드렸네요 다시한번 부탁드립니다. 아래 수식에서 매매시간을 오후 7 ~ 새벽2시 까지만 매매하고 종료하되 진입된 계약이 있으면 신호가 끝날때 매매종료가 되도록 부탁드립니다. input : Length1(26),Length2(50),Length3(2),P(5); var : SMIv(0),mav(0),T(0); mav = ma(c,P); SMIv = SMI(Length1,Length2,Length3); if SMIv > SMIv[1] Then T = 1; if SMIv < SMIv[1] Then T = -1; if T == 1 and mav > mav[1] and countif(SMIv > SMIv[1],3) >=1 Then buy(); if T == -1 and mav < mav[1] and countif(SMIv < SMIv[1],3) >=1 Then sell();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-06-29 18:41:49

안녕하세요 예스스탁입니다. 신호가 끝날때가 어떤 의미인지 모르겠습니다. 2시에 포지션이 있으면 청산됩니다. input : Length1(26),Length2(50),Length3(2),P(5); var : SMIv(0),mav(0),T(0); mav = ma(c,P); SMIv = SMI(Length1,Length2,Length3); if SMIv > SMIv[1] Then T = 1; if SMIv < SMIv[1] Then T = -1; if stime >= 190000 or stime < 020000 then{ if T == 1 and mav > mav[1] and countif(SMIv > SMIv[1],3) >=1 Then buy(); if T == -1 and mav < mav[1] and countif(SMIv < SMIv[1],3) >=1 Then sell(); } if stime == 020000 or (stime > 020000 and stime[1] < 020000) Then{ ExitLong(); ExitShort(); } 즐거운 하루되세요 > 매일상승 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 시간을 잘못 말씀드렸네요 다시한번 부탁드립니다. 아래 수식에서 매매시간을 오후 7 ~ 새벽2시 까지만 매매하고 종료하되 진입된 계약이 있으면 신호가 끝날때 매매종료가 되도록 부탁드립니다. input : Length1(26),Length2(50),Length3(2),P(5); var : SMIv(0),mav(0),T(0); mav = ma(c,P); SMIv = SMI(Length1,Length2,Length3); if SMIv > SMIv[1] Then T = 1; if SMIv < SMIv[1] Then T = -1; if T == 1 and mav > mav[1] and countif(SMIv > SMIv[1],3) >=1 Then buy(); if T == -1 and mav < mav[1] and countif(SMIv < SMIv[1],3) >=1 Then sell();