커뮤니티

문의드립니다.

프로필 이미지
아침
2022-05-24 19:23:43
1288
글번호 159226
답변완료
시작시간 15시30분. 끝나는 시간 05시50분.진입한 수량이 있다면 모두청산후 시스템종료. 이평 1 > 이평 2 위의 있고 알에스아이 55.50.45.40 하향돌파 매수. 진입신호의 매수 총 4개 진입하는 겁니다. 이평1 < 이평 2 아래의 있고 알에스아이 45.50.55.60 상향돌파 매도. 진입신호의 매도 총 4개 진입하는 겁니다. 익절800틱. 수고하세요.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-05-25 09:38:25

안녕하세요 예스스탁입니다. input : StartTime(153000),EndTime(055000); input : P1(5),P2(10),rsip(10); Input : 익절틱수(800); var : Tcond(false),mav1(0),mav2(0),rsiv(0); 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 Tcond = true; if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then { Tcond = False; IF Endtime <= starttime Then { SetStopEndofday(0); } } mav1 = ma(C,P1); mav2 = ma(C,P2); rsiv = rsi(rsip); if tcond == true Then { if mav1 > mav2 Then { if MarketPosition <= 0 and CrossDown(rsiv,55) Then Buy("b1",OnClose,Def,1); if MarketPosition == 1 and MaxEntries == 1 and CrossDown(rsiv,50) Then Buy("b2",OnClose,Def,1); if MarketPosition == 1 and MaxEntries == 2 and CrossDown(rsiv,45) Then Buy("b3",OnClose,Def,1); if MarketPosition == 1 and MaxEntries == 3 and CrossDown(rsiv,40) Then Buy("b4",OnClose,Def,1); } if mav1 < mav2 Then { if MarketPosition >= 0 and CrossUp(rsiv,45) Then Sell("s1",OnClose,Def,1); if MarketPosition == -1 and MaxEntries == 1 and CrossUp(rsiv,50) Then Sell("s2",OnClose,Def,1); if MarketPosition == -1 and MaxEntries == 2 and CrossUp(rsiv,55) Then Sell("s3",OnClose,Def,1); if MarketPosition == -1 and MaxEntries == 2 and CrossUp(rsiv,60) Then Sell("s4",OnClose,Def,1); } } SetStopProfittarget(PriceScale*익절틱수,PointStop); 즐거운 하루되세요 > 아침 님이 쓴 글입니다. > 제목 : 문의드립니다. > 시작시간 15시30분. 끝나는 시간 05시50분.진입한 수량이 있다면 모두청산후 시스템종료. 이평 1 > 이평 2 위의 있고 알에스아이 55.50.45.40 하향돌파 매수. 진입신호의 매수 총 4개 진입하는 겁니다. 이평1 < 이평 2 아래의 있고 알에스아이 45.50.55.60 상향돌파 매도. 진입신호의 매도 총 4개 진입하는 겁니다. 익절800틱. 수고하세요.