커뮤니티

키움 수식입니다 시스템 트레이딩으로 변경 부탁 드립니다.

프로필 이미지
이름이
2021-08-16 20:57:20
1182
글번호 151531
답변완료
crossdown(l,envelopedown(5,5)) 매매 시간 추가 가능하면 기능 추가 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-08-17 09:58:48

안녕하세요 예스스탁입니다. 올리신 수식은 조건내용만 있습니다. 지정한 조건에 만족시 매수하게 작성해 드립니다. 시스템은 청산신호가 없으면 최초 진입 후 포지션이 유지됩니다. 청산내용이 없어 당일청산을 추가해 드립니다. input : StartTime(90000),EndTime(150000); 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 = EnvelopeDown(5,5); if Tcond == true Then { if CrossDown(l,var1) Then Buy(); } 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); } } 즐거운 하루되세요 > 이름이 님이 쓴 글입니다. > 제목 : 키움 수식입니다 시스템 트레이딩으로 변경 부탁 드립니다. > crossdown(l,envelopedown(5,5)) 매매 시간 추가 가능하면 기능 추가 부탁드립니다.