커뮤니티

문의드립니다.

프로필 이미지
아침
2021-12-21 17:36:15
661
글번호 154739
답변완료
스토캐스틱퍼스트 40위에 있고 50하향돌파 매수. 익절400틱 스토캐스틱퍼스트 40하향돌파 매수청산. 그 다음캔들의 매도진입. 스톡캐스틱퍼스트 40보다 캔들종가가 위에 있어야 하고 매도하기 직전의 매수청산한 그 캔들의 고가보다 캔들종가가 높게 봉완성되면 손절청산. 오전9시 시작 다음날 06시50분 진입한 종목이 있다면 모두청산 후 시스템완전종료.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-12-22 09:30:15

Input : Period(12), Period1(5); input : StartTime(90000),EndTime(065000); var : Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } 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; IF Endtime <= starttime Then { SetStopEndofday(0); } } value1 = StochasticsK(Period,Period1); if Tcond == true Then { If MarketPosition == 0 and value1 > 40 and CrossDown(value1,50) Then Buy("b"); If MarketPosition == 1 and CrossDown(value1,40) Then ExitLong("bx"); if MarketPosition == 0 and BarsSinceExit(1) == 1 and IsEntryName("b",1) == true and IsExitName("bx",1) == true Then Sell("s"); if MarketPosition == -1 and value1 > 40 and C > H[BarsSinceExit(1)] Then ExitShort("sx"); } SetStopProfittarget(PriceScale*400,PointStop); > 아침 님이 쓴 글입니다. > 제목 : 문의드립니다. > 스토캐스틱퍼스트 40위에 있고 50하향돌파 매수. 익절400틱 스토캐스틱퍼스트 40하향돌파 매수청산. 그 다음캔들의 매도진입. 스톡캐스틱퍼스트 40보다 캔들종가가 위에 있어야 하고 매도하기 직전의 매수청산한 그 캔들의 고가보다 캔들종가가 높게 봉완성되면 손절청산. 오전9시 시작 다음날 06시50분 진입한 종목이 있다면 모두청산 후 시스템완전종료.