커뮤니티

수식어 부탁드립니다

프로필 이미지
푸른
2021-04-11 22:49:50
775
글번호 147891
답변완료
Input : Period(12); value1 = TRIX(Period); # 매수/매도청산 If CrossUP(value1, 0) Then { Buy(); } # 매도/매수청산 If CrossDown(value1, 0) Then { Sell(); } _____________________ 매매시간 21:00~05:50 청산시간 05: 55 분 부탁드립니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-04-12 14:48:52

안녕하세요 예스스탁입니다. Input : Period(12); input : StartTime(210000),EndTime(055000); var : Tcond(false); if sDate != sDate[1] then SetStopEndofday(055500); if bDate != bDate[1] then SetStopEndofday(0); 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; value1 = TRIX(Period); if Tcond == true Then { # 매수/매도청산 If CrossUP(value1, 0) Then { Buy(); } # 매도/매수청산 If CrossDown(value1, 0) Then { Sell(); } } 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 수식어 부탁드립니다 > Input : Period(12); value1 = TRIX(Period); # 매수/매도청산 If CrossUP(value1, 0) Then { Buy(); } # 매도/매수청산 If CrossDown(value1, 0) Then { Sell(); } _____________________ 매매시간 21:00~05:50 청산시간 05: 55 분 부탁드립니다