커뮤니티

문의드립니다

프로필 이미지
회원
2004-11-16 19:43:44
665
글번호 5708
답변완료
20이평돌파후 2봉이내에서 그리고 macd 0 돌파후 2봉이내에서 rsi매수로 rsi매수를 한정하려고 합니다. 자꾸 오류가 나는데 식 좀 봐주세여 1번식 if crossup(rsi, 20) and accumn(iff(crossup(c, ma(c,20)),1,0),2) >= 1 and accumn(iff(crossup(macd(12,26), 0),1,0),2) >= 1 then buy(); 2번식 if (crossup(rsi, 20) and accumn(iff(crossup(c, ma(c,20)),1,0),2) >= 1) and (crossup(rsi, 20) and accumn(iff(crossup(macd(12,26), 0),1,0),2) >= 1) then buy();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2004-11-17 10:28:02

안녕하세요 예스스탁입니다. rsi의 기본함수식은 rsi(period)입니다. 기간값이 들어가야 합니다. if crossup(rsi(6), 20) and accumn(iff(crossup(c, ma(c,20)),1,0),2) >= 1 and accumn(iff(crossup(macd(12,26), 0),1,0),2) >= 1 then buy(); Rsi(6)이 20선을 상향돌파하고 2봉안에 종가가 20이평을 상향돌파한적이 있고 2봉안에 macd선이 0선을 상향돌파한적이 있으면 매수 if (crossup(rsi(6), 20) and accumn(iff(crossup(c, ma(c,20)),1,0),2) >= 1) and (crossup(rsi(6), 20) and accumn(iff(crossup(macd(12,26), 0),1,0),2) >= 1) then buy(); 두식은 같습니다. 다만 crossup(rsi(6), 20)식이 불필요하게 두번사용이 되었습니다. 즐거운 하루되세요 > CJ_kimrandi 님이 쓴 글입니다. > 제목 : 문의드립니다 > 20이평돌파후 2봉이내에서 그리고 macd 0 돌파후 2봉이내에서 rsi매수로 rsi매수를 한정하려고 합니다. 자꾸 오류가 나는데 식 좀 봐주세여 1번식 if crossup(rsi, 20) and accumn(iff(crossup(c, ma(c,20)),1,0),2) >= 1 and accumn(iff(crossup(macd(12,26), 0),1,0),2) >= 1 then buy(); 2번식 if (crossup(rsi, 20) and accumn(iff(crossup(c, ma(c,20)),1,0),2) >= 1) and (crossup(rsi, 20) and accumn(iff(crossup(macd(12,26), 0),1,0),2) >= 1) then buy();