커뮤니티

영웅문 수식을 변환하고 싶습니다.

프로필 이미지
jyck
2021-10-28 09:19:47
877
글번호 153212
답변완료
안녕하세요? 영웅문에서 시스템 신호로 사용을 했는데요. 예스트레이더로 이전하고 싶습니다. 수식변환 도움 주실수 있나요? <<<매수진입/매도청산>>> R=highest(H,X); S=lowest(L,X); A=countsince(time>=T1,crossUp(c,R(1)) or crossDown(c,S(1))); crossUp(A,0.5) and C>R(1) <<<매수청산/매도진입>>> R=highest(H,X); S=lowest(L,X); crossDOWN(C,S(1)) <<<변수>>> T1 = 15 X = 30 <<<매매시간>>> 오전 9시 ~ 익일새벽 2시 <<<하루목표 수익 및 손절>>> 목표수익 100틱(나스닥) 목표손절 100틱(나스닥)
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-10-29 10:40:35

안녕하세요 예스스탁입니다. input : t1(15),x(30); input : 익절틱수(100),손절틱수(100); var : R(0),S(0),A(0); input : StartTime(90000),EndTime(020000); var : Tcond(false); 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; R = Highest(H,X); S = Lowest(L,X); if sdate != sDate[1] Then A = 0; if sTime >= t1 and (crossUp(c,R[1]) or crossDown(c,S[1])) Then A = A+1; if Tcond == true Then { if CrossUp(A,0.5) and C > R[1] Then Buy(); if CrossUp(C,S[1]) Then Sell(); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { IF Endtime <= starttime Then { SetStopEndofday(0); } } 즐거운 하루되세요 > jyck 님이 쓴 글입니다. > 제목 : 영웅문 수식을 변환하고 싶습니다. > 안녕하세요? 영웅문에서 시스템 신호로 사용을 했는데요. 예스트레이더로 이전하고 싶습니다. 수식변환 도움 주실수 있나요? <<<매수진입/매도청산>>> R=highest(H,X); S=lowest(L,X); A=countsince(time>=T1,crossUp(c,R(1)) or crossDown(c,S(1))); crossUp(A,0.5) and C>R(1) <<<매수청산/매도진입>>> R=highest(H,X); S=lowest(L,X); crossDOWN(C,S(1)) <<<변수>>> T1 = 15 X = 30 <<<매매시간>>> 오전 9시 ~ 익일새벽 2시 <<<하루목표 수익 및 손절>>> 목표수익 100틱(나스닥) 목표손절 100틱(나스닥)