커뮤니티

수정부탁합니다

프로필 이미지
큰바위얼굴
2019-01-11 07:56:03
167
글번호 125155
답변완료
if MarketPosition == 1 and C >= EntryPrice *(1+5/100) Then exitlong("bx+5%",AtStop,highest(H,BarsSinceEntry)-0,"",Floor(CurrentContracts*0.3),1); if MarketPosition == -1 and C <= EntryPrice *(1-5/100) Then ExitShort("sx-5%",AtStop,Lowest(L,BarsSinceEntry)+0,"",Floor(CurrentContracts*0.3),1); 위수식 수정부탁합니다. (위수식은 5% 수익시 30% 종가 이익실현 입니다.) 매수는 5% 수익후 And 20일이평선하항돌파시 30%를 이익실현한다 로 부탁 합니다. 매도는 반대 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-01-11 13:53:23

안녕하세요 예스스탁입니다. var1 = ma(C,20); if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice *(1+5/100) and CrossDown(c,var1) Then exitlong("bx+5%",OnClose,def,"",Floor(CurrentContracts*0.3),1); if MarketPosition == -1 and lowest(L,BarsSinceEntry) <= EntryPrice *(1-5/100) and crossup(c,var1) Then ExitShort("sx-5%",OnClose,def,"",Floor(CurrentContracts*0.3),1); 즐거운 하루되세요 > 큰바위얼굴 님이 쓴 글입니다. > 제목 : 수정부탁합니다 > if MarketPosition == 1 and C >= EntryPrice *(1+5/100) Then exitlong("bx+5%",AtStop,highest(H,BarsSinceEntry)-0,"",Floor(CurrentContracts*0.3),1); if MarketPosition == -1 and C <= EntryPrice *(1-5/100) Then ExitShort("sx-5%",AtStop,Lowest(L,BarsSinceEntry)+0,"",Floor(CurrentContracts*0.3),1); 위수식 수정부탁합니다. (위수식은 5% 수익시 30% 종가 이익실현 입니다.) 매수는 5% 수익후 And 20일이평선하항돌파시 30%를 이익실현한다 로 부탁 합니다. 매도는 반대 감사합니다.