커뮤니티

문의드립니다

프로필 이미지
파손
2016-11-25 16:48:46
141
글번호 104380
답변완료
input: dayno(19),pro(0.5),loss(0.5); var : cnt(0),count(0),고가(0),저가(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } 고가 = dayhigh(0); for cnt = 0 to dayno{ if 고가 < dayhigh(cnt) Then 고가 = dayhigh(cnt); } 저가 = daylow(0); for cnt = 1 to dayno{ if 저가 > daylow(cnt) Then 저가 = daylow(cnt); } if stime>=090000 and stime<135900 and MarketPosition==0 and count <1 Then{ if DayOpen < 고가 Then buy("b1",AtStop,고가); if dayopen > 저가 Then sell("s1",AtStop,저가); } SetStopProfittarget(pro,PointStop); SetStopLoss(loss,pointstop); SetStopEndofday(150000); 1분봉 차트에서 20일동안의 고가를 돌파하면 atstop으로 진입하는 식입니다 그런데 20일 동안의 고가보다 시가가 더 높은 가격에서 시작했을 때 09시02분에 진입을 하게 됩니다 시가가 20일 고가 보다 높을시 진입하지 않도록 하고 싶습니다
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2016-11-25 17:11:25

안녕하세요 예스스탁입니다. input: dayno(19),pro(0.5),loss(0.5); var : cnt(0),count(0),고가(0),저가(0); var : Bcond(false),Scond(false); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } 고가 = dayhigh(0); for cnt = 0 to dayno{ if 고가 < dayhigh(cnt) Then 고가 = dayhigh(cnt); } 저가 = daylow(0); for cnt = 1 to dayno{ if 저가 > daylow(cnt) Then 저가 = daylow(cnt); } if Bdate != Bdate[1] Then{ Bcond = false; Scond = false; if O > 고가 Then Bcond = true; if O < 저가 Then Scond = true; } if stime>=090000 and stime<135900 and MarketPosition==0 and count <1 Then{ if Bcond == false and DayOpen < 고가 Then buy("b1",AtStop,고가); if Scond == false and dayopen > 저가 Then sell("s1",AtStop,저가); } SetStopProfittarget(pro,PointStop); SetStopLoss(loss,pointstop); SetStopEndofday(150000); 즐거운 하루되세요 > 파손 님이 쓴 글입니다. > 제목 : 문의드립니다 > input: dayno(19),pro(0.5),loss(0.5); var : cnt(0),count(0),고가(0),저가(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } 고가 = dayhigh(0); for cnt = 0 to dayno{ if 고가 < dayhigh(cnt) Then 고가 = dayhigh(cnt); } 저가 = daylow(0); for cnt = 1 to dayno{ if 저가 > daylow(cnt) Then 저가 = daylow(cnt); } if stime>=090000 and stime<135900 and MarketPosition==0 and count <1 Then{ if DayOpen < 고가 Then buy("b1",AtStop,고가); if dayopen > 저가 Then sell("s1",AtStop,저가); } SetStopProfittarget(pro,PointStop); SetStopLoss(loss,pointstop); SetStopEndofday(150000); 1분봉 차트에서 20일동안의 고가를 돌파하면 atstop으로 진입하는 식입니다 그런데 20일 동안의 고가보다 시가가 더 높은 가격에서 시작했을 때 09시02분에 진입을 하게 됩니다 시가가 20일 고가 보다 높을시 진입하지 않도록 하고 싶습니다
프로필 이미지

파손

2016-11-25 17:49:22

2015년 12월 10,14일에 진입을 하고있습니다 이날 말고도 진입하지 않아야 하는날에 진입을 많이 하고 있습니다. 다시 가르쳐 주시면 감사하겠습니다 > 파손 님이 쓴 글입니다. > 제목 : 문의드립니다 > input: dayno(19),pro(0.5),loss(0.5); var : cnt(0),count(0),고가(0),저가(0); count = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) Then count = count+1; } 고가 = dayhigh(0); for cnt = 0 to dayno{ if 고가 < dayhigh(cnt) Then 고가 = dayhigh(cnt); } 저가 = daylow(0); for cnt = 1 to dayno{ if 저가 > daylow(cnt) Then 저가 = daylow(cnt); } if stime>=090000 and stime<135900 and MarketPosition==0 and count <1 Then{ if DayOpen < 고가 Then buy("b1",AtStop,고가); if dayopen > 저가 Then sell("s1",AtStop,저가); } SetStopProfittarget(pro,PointStop); SetStopLoss(loss,pointstop); SetStopEndofday(150000); 1분봉 차트에서 20일동안의 고가를 돌파하면 atstop으로 진입하는 식입니다 그런데 20일 동안의 고가보다 시가가 더 높은 가격에서 시작했을 때 09시02분에 진입을 하게 됩니다 시가가 20일 고가 보다 높을시 진입하지 않도록 하고 싶습니다