커뮤니티
문의?
2010-11-16 15:49:40
648
글번호 33657
if cross(c,ma(c,5) then buy("K");
if isentryname("K") and crossdown (c,ma(c,20) then Exitlong("X");
#직전 청산가를 상향하면 재매수
if MarketPosition == 0 and MarketPosition(1) == 1 Then
buy("재매수",AtStop,ExitPrice(1));
----------------------------------------------
위와같이 적용하면 모든신호에 재매수가 적용됩니다.
청산신호 "X"에 대한 신호 한가지만 재매수식 부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2010-11-16 19:09:45
안녕하세요? 예스스탁입니다.
다음 처럼 수정해 보았습니다.
if crossUp(c,ma(c,5)) then
buy("K");
if isentryname("K") and crossdown (c,ma(c,20)) then
Exitlong("X");
#직전 청산가를 상향하면 재매수
if IsExitName("X",1) and MarketPosition == 0 and MarketPosition(1) == 1 Then
buy("재매수",AtStop,ExitPrice(1));
> 파생맨 님이 쓴 글입니다.
> 제목 : 문의?
>
if cross(c,ma(c,5) then buy("K");
if isentryname("K") and crossdown (c,ma(c,20) then Exitlong("X");
#직전 청산가를 상향하면 재매수
if MarketPosition == 0 and MarketPosition(1) == 1 Then
buy("재매수",AtStop,ExitPrice(1));
----------------------------------------------
위와같이 적용하면 모든신호에 재매수가 적용됩니다.
청산신호 "X"에 대한 신호 한가지만 재매수식 부탁드립니다.
이전글