커뮤니티

수식작성

프로필 이미지
푸른
2021-07-25 08:10:25
1471
글번호 151060
답변완료
박스권 매매의 수식어를 부탁 드립니다. 1.buy 진입과 청산의 조건 이격도 30이 기준선100 이상 캔들 10봉이 저점 최소 가격변화가 3틱이하일때 매수 이격도 30이 기준선106 이상 캔들 10봉이 고점 최소 가격변화가 3틱이하일때 청산 2.sell진입과 청산이 조건 이격도 30이 기준선108 이상 캔들 10봉이 고점 최소 가격변화가 3틱이하일때 매도 이격도 30이 기준선96 이하 캔들 10봉이 저점 최소 가격변화가 3틱이하일때 청산 매매시간 : 0700 ~ 익일 0550 익절 150틱 손절 20틱
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-07-26 13:49:39

안녕하세요 예스스탁입니다. input : StartTime(70000),EndTime(55000); input : 익절틱수(150),손절틱수(20); 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; var1 = Disparity(30); if Tcond == true Then { if MarketPosition <= 0 and var1 >= 100 and Highest(L,10)-Lowest(L,10) <= PriceScale*3 Then Buy(); if MarketPosition == 1 and var1 >= 106 and Highest(H,10)-Lowest(H,10) <= PriceScale*3 Then ExitLong(); if MarketPosition >= 0 and var1 >= 108 and Highest(H,10)-Lowest(H,10) <= PriceScale*3 Then Sell(); if MarketPosition == -1 and var1 <= 96 and Highest(L,10)-Lowest(L,10) <= PriceScale*3 Then ExitShort(); } 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); } } 즐거운 하루되세요 > 푸른 님이 쓴 글입니다. > 제목 : 수식작성 > 박스권 매매의 수식어를 부탁 드립니다. 1.buy 진입과 청산의 조건 이격도 30이 기준선100 이상 캔들 10봉이 저점 최소 가격변화가 3틱이하일때 매수 이격도 30이 기준선106 이상 캔들 10봉이 고점 최소 가격변화가 3틱이하일때 청산 2.sell진입과 청산이 조건 이격도 30이 기준선108 이상 캔들 10봉이 고점 최소 가격변화가 3틱이하일때 매도 이격도 30이 기준선96 이하 캔들 10봉이 저점 최소 가격변화가 3틱이하일때 청산 매매시간 : 0700 ~ 익일 0550 익절 150틱 손절 20틱