커뮤니티

수식장성 문의 드립니다.

프로필 이미지
울산덕신
2020-08-07 16:07:36
1213
글번호 141327
답변완료
수식장성 문의 드립니다. 1) 1분전 종가가 2분전 종가보다 높을 시 시장가매수. 2) 현종가가 1분전 종가보다 3틱이상 이익 시 시장가청산. 3) or 매수 후 5봉 후 시장가청산. or 5틱이상 손실시 시장가청산. 4) 매수시작은 9시30분, 종결은 새벽4시.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-08-10 08:51:27

안녕하세요 예스스탁입니다. input : StartTime(93000),EndTime(040000); var : Tcond(false); if sDate != sDate[1] Then SetStopEndofday(040000); if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; SetStopEndofday(0); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if Tcond == true Then { if MarketPosition == 0 and C[1] > c[2] Then Buy("b"); if MarketPosition == 1 Then { if C >= c[1]+PriceScale*3 Then ExitLong("bx1"); if BarsSinceEntry == 5 Then ExitLong("bx2"); } } SetStopLoss(PriceScale*5,PointStop); 즐거운 하루되세요 > 울산덕신 님이 쓴 글입니다. > 제목 : 수식장성 문의 드립니다. > 수식장성 문의 드립니다. 1) 1분전 종가가 2분전 종가보다 높을 시 시장가매수. 2) 현종가가 1분전 종가보다 3틱이상 이익 시 시장가청산. 3) or 매수 후 5봉 후 시장가청산. or 5틱이상 손실시 시장가청산. 4) 매수시작은 9시30분, 종결은 새벽4시.