커뮤니티
해석
2018-11-30 10:59:57
215
글번호 124021
consec 개념 포함하여 아래 수식 주석 부탁드립니다.
if CountIf(Close > Highest(High, Length)[1], Consec) == Consec Then Buy ("CBO_LE");
if CountIf(Close < Lowest(Low, Length)[1], Consec) == Consec Then sell ("CBO_SE");
답변 1
예스스탁 예스스탁 답변
2018-11-30 16:00:34
안녕하세요
예스스탁입니다.
해당 수식에서 Length는 최고가와 최저가의 봉수
Consec은 연속봉수입니다.
input : Length(10),Consec(3);
#Length기간 최고가가 연속으로 Consec봉수만큼 상승하면 매수
if CountIf(Close > Highest(High, Length)[1], Consec) == Consec Then
Buy ("CBO_LE");
#Length기간 최저가가 연속으로 Consec봉수만큼 하락하면 매도
if CountIf(Close < Lowest(Low, Length)[1], Consec) == Consec Then
sell ("CBO_SE");
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 해석
>
consec 개념 포함하여 아래 수식 주석 부탁드립니다.
if CountIf(Close > Highest(High, Length)[1], Consec) == Consec Then Buy ("CBO_LE");
if CountIf(Close < Lowest(Low, Length)[1], Consec) == Consec Then sell ("CBO_SE");