커뮤니티

이평 수정건

프로필 이미지
아트정
2021-09-25 14:40:01
184
글번호 123330
답변완료
수정부탁드림니다. 오일선물적용기준 매수조건 30봉이네 50틱 이하 하락한후 20 이평을 상승돌파후 종가가 20 이평위에 형성시 매수 매도조건 30봉이네 50틱 이하 상승후 20이평을 하락돌파후 종가가 20이평 아래에서 형성시 매도 손절기준 30틱. 익절 60틱.
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2018-11-05 14:57:53

안녕하세요 예스스탁입니다. 24시는 0으로 지정하시면 됩니다. input : starttime(100000),endtime(0); var : t(0),mav(0); var : Tcond(false); if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then { Tcond = true; } if (sdate != sdate[1] and stime >= endtime) or (sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then { Tcond = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } mav = ma(C,20); if CrossUp(L,mav) Then { t = 1; Condition1 = false; if Condition2 == true Then buy(); } if CrossDown(H,mav) Then { t = -1; Condition2 = false; if Condition1 == true Then sell(); } if t == 1 and H >= mav+PriceScale*50 Then Condition1 = true; if t == -1 and L <= mav-PriceScale*50 Then Condition2 = true; if MarketPosition == 1 Then ExitLong("bx",AtStop,mav-PriceScale*30); if MarketPosition == -1 Then ExitShort("sx",AtStop,mav+PriceScale*30); SetStopProfittarget(PriceScale*100,PointStop); 즐거운 하루되세요 > 아트정 님이 쓴 글입니다. > 제목 : 이평 > 수고 많으심니다 해외식 부탁드림니다 이평 20선기준 매수조건-기준선 아래에서 하향(-50틱이상)후 기준선 상승돌파시 매수 단 시가.저가. 종가가 기준선위에 있을시 매도조건-기준선 위에서 상승(+50틱이상)후 기준선 하향돌파시 매도 시가,고가.종가가 기준선 아래에 있을시 익절- 진입후 100틱. 손절-기준(20)선에서 30틱 운영시간-한국시간10시-24시까지
프로필 이미지

아트정

2021-12-25 13:07:57

> 예스스탁 님이 쓴 글입니다. > 제목 : Re : 이평 > 안녕하세요 예스스탁입니다. 24시는 0으로 지정하시면 됩니다. input : starttime(100000),endtime(0); var : t(0),mav(0); var : Tcond(false); if (sdate != sdate[1] and stime >= starttime) or (sdate == sdate[1] and stime >= starttime and stime[1] < starttime) then { Tcond = true; } if (sdate != sdate[1] and stime >= endtime) or (sdate == sdate[1] and stime >= endtime and stime[1] < endtime) then { Tcond = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } mav = ma(C,20); if CrossUp(L,mav) Then { t = 1; Condition1 = false; if Condition2 == true Then buy(); } if CrossDown(H,mav) Then { t = -1; Condition2 = false; if Condition1 == true Then sell(); } if t == 1 and H >= mav+PriceScale*50 Then Condition1 = true; if t == -1 and L <= mav-PriceScale*50 Then Condition2 = true; if MarketPosition == 1 Then ExitLong("bx",AtStop,mav-PriceScale*30); if MarketPosition == -1 Then ExitShort("sx",AtStop,mav+PriceScale*30); SetStopProfittarget(PriceScale*100,PointStop); 즐거운 하루되세요 > 아트정 님이 쓴 글입니다. > 제목 : 이평 > 수고 많으심니다 해외식 부탁드림니다 이평 20선기준 매수조건-기준선 아래에서 하향(-50틱이상)후 기준선 상승돌파시 매수 단 시가.저가. 종가가 기준선위에 있을시 매도조건-기준선 위에서 상승(+50틱이상)후 기준선 하향돌파시 매도 시가,고가.종가가 기준선 아래에 있을시 익절- 진입후 100틱. 손절-기준(20)선에서 30틱 운영시간-한국시간10시-24시까지 안녕하세요 수식 적용시 에러가 발생됨 54줄 45열 문범에러 / 잘몾된 토큰<File End> 이렇게 뜸니다