커뮤니티
시스템식 부탁드려요
2013-05-07 13:50:32
190
글번호 62891
직전20개봉중에 저가가 이동평균채널하단(30이평,0.600)을 터치한 적이 있고
and A>B이고 CrossUp(C,D)이거나,
또는
역시 이동평균채널하단을 터치한 적이 있고
and C>D이고 CrossUp(A,B)일 때
매수.
정반대일 때 매도.
진입은 5개 동시.
익절은 1P,2P,3P에 각각 하나씩.4P에 2개.
매수청산(전량)은 E<F일 때
매도청산(전량}은 E>F일 때
(시스템식 부탁드립니다)
답변 1
예스스탁 예스스탁 답변
2013-05-07 16:12:55
안녕하세요
예스스탁입니다.
Input : Period(30), P(0.6);
var : UPchennel(0),UPline(0),Dnline(0),DNchennel(0);
UPchennel = ma(H,period)*(1+P/100);
UPline = ma(H,period);
dnline = ma(L,period);
DNchennel = ma(L,period)*(1-P/100);
if countif(L<DNchennel,30) >= 1 and
((A > B and crossup(C,D)) or
(C > D and crossup(A,B))) Then
buy("b",OnClose,def,5);
if countif(H>Upchennel,30) >= 1 and
((A < B and CrossDown(C,D)) or
(C < D and CrossDown(A,B))) Then
sell("s",OnClose,def,5);
if MarketPosition == 1 Then{
ExitLong("bx1",AtLimit,EntryPrice+1,"",1,1);
ExitLong("bx2",AtLimit,EntryPrice+1,"",1,1);
ExitLong("bx3",AtLimit,EntryPrice+1,"",1,1);
ExitLong("bx4",AtLimit,EntryPrice+1,"",2,1);
if E < F Then
ExitLong("bx");
}
if MarketPosition == -1 Then{
ExitShort("sx1",AtLimit,EntryPrice-1,"",1,1);
ExitShort("sx2",AtLimit,EntryPrice-1,"",1,1);
ExitShort("sx3",AtLimit,EntryPrice-1,"",1,1);
ExitShort("sx4",AtLimit,EntryPrice-1,"",2,1);
if E > F Then
ExitShort("sx");
}
즐거운 하루되세요
> 묘선낭자 님이 쓴 글입니다.
> 제목 : 시스템식 부탁드려요
> 직전20개봉중에 저가가 이동평균채널하단(30이평,0.600)을 터치한 적이 있고
and A>B이고 CrossUp(C,D)이거나,
또는
역시 이동평균채널하단을 터치한 적이 있고
and C>D이고 CrossUp(A,B)일 때
매수.
정반대일 때 매도.
진입은 5개 동시.
익절은 1P,2P,3P에 각각 하나씩.4P에 2개.
매수청산(전량)은 E<F일 때
매도청산(전량}은 E>F일 때
(시스템식 부탁드립니다)