커뮤니티

문의 드립니다

프로필 이미지
시골길
2008-11-27 11:48:39
949
글번호 18387
답변완료
var : cnt(0),count(0); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and MarketPosition() == 0 then{ if crossup(ma(c,5),ma(c,20)) Then buy(); } if PositionProfit(1) <= 0 and BarsSinceExit(1) > 5 Then{ if crossup(ma(c,5),ma(c,20)) Then buy(); } } SetStopProfittarget(3); SetStopLoss(2); 상기수식중에 손실발생후 재진입을 다섯개봉 이후이거나(or) 다음봉이상에서 손절가격의 7%이상상승시 재진입하는 수식이 가능한가요. 부탁드립니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2008-11-27 18:07:44

안녕하세요 예스스탁입니다. var : cnt(0),count(0); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and MarketPosition() == 0 then{ if crossup(ma(c,5),ma(c,20)) Then buy("매수1"); } if MarketPosition() == 0 and count > 0 Then{ var1 = (ExitPrice(1)-EntryPrice(1))/EntryPrice(1)*100; ##매수손익율 if Var1 > -2 and crossup(ma(c,5),ma(c,20)) Then buy("매수2"); if Var1 <= -2 and BarsSinceExit(1) >= 5 and crossup(ma(c,5),ma(c,20)) Then buy("매수3"); if Var1 <= -2 and BarsSinceExit(1) >= 1 and crossup(C,ExitPrice(1)*1.07) Then buy("매수4"); } SetStopProfittarget(3); SetStopLoss(2); 참고하시기 바랍니다. 즐거운 하루되세요 > 시골길 님이 쓴 글입니다. > 제목 : 문의 드립니다 > var : cnt(0),count(0); count = 0; for cnt = 0 to 10{ if sdate == EntryDate(cnt) Then count = count+1; } if count == 0 and MarketPosition() == 0 then{ if crossup(ma(c,5),ma(c,20)) Then buy(); } if PositionProfit(1) <= 0 and BarsSinceExit(1) > 5 Then{ if crossup(ma(c,5),ma(c,20)) Then buy(); } } SetStopProfittarget(3); SetStopLoss(2); 상기수식중에 손실발생후 재진입을 다섯개봉 이후이거나(or) 다음봉이상에서 손절가격의 7%이상상승시 재진입하는 수식이 가능한가요. 부탁드립니다