커뮤니티
부탁드립니다.
2013-02-12 10:28:17
203
글번호 59342
수고하십니다.
1. RSI 신호로 매수할것 단 참조봉이 20이평서 데드크로스후에 현재가격이1990을 찍었다면 진입금지또는 매도
2. 아래식도 참조봉 20이평선 데드크로스후 로 바꿔주세요.
if data2(countif(C<=1990,dayindex+1) >= 1) and data1(crossup(c,ma(c,20))) Then
buy();
if data1(crossdown(c,ma(c,60))) Then
sell();
감사합니다.
답변 1
예스스탁 예스스탁 답변
2013-02-12 14:12:21
안녕하세요
예스스탁입니다.
1.
Input : Period(14), LPercent(30), SPercent(70);
Var : value(0,data1),cond(false,data1);
value = data1(RSI(Period));
#날짜가 변경되면 false
if date != date[1] Then
cond = false;
#당일 data2에서 20이평보다 작은 상태에서 종가가 1990이하가 되면 true로 변경
if data2(c < ma(c,20) and C <= 1990) Then
Cond = true;
If cond == false and CrossUP(value, LPercent) Then
Buy();
If cond == true Then
ExitLong();
2.
if data2(countif(C<=1990,dayindex+1) >= 1) and data1(crossup(c,ma(c,20)))
and data2(c< ma(c,20)) Then
buy();
if data1(crossdown(c,ma(c,60))) Then
sell();
즐거운 하루되세요
> 로자리 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 수고하십니다.
1. RSI 신호로 매수할것 단 참조봉이 20이평서 데드크로스후에 현재가격이1990을 찍었다면 진입금지또는 매도
2. 아래식도 참조봉 20이평선 데드크로스후 로 바꿔주세요.
if data2(countif(C<=1990,dayindex+1) >= 1) and data1(crossup(c,ma(c,20))) Then
buy();
if data1(crossdown(c,ma(c,60))) Then
sell();
감사합니다.