//EXCIA Chande Kroll Stop
study(title = "Chande Kroll Stop", shorttitle="CKS", overlay = true)
P = 9, x = 1.5, Q = 14
first_high_stop = highest(high, P) - x * atr(P)
first_low_stop = lowest(high, P) + x * atr(P)
stop_short = highest(first_high_stop, Q)
stop_long = lowest(first_low_stop, Q)
plot(stop_long, color=green)
plot(stop_short, color=red)
이 수식을 예스랭귀지로 바꿀 수 있나요? 감사합니다.
답변 1
예스스탁
예스스탁 답변
2021-04-19 11:05:34
안녕하세요
예스스탁입니다.
input : P(9),x(1.5),Q(14);
var : first_high_stop(0),first_low_stop(0),stop_short(0),stop_long(0);
first_high_stop = highest(high, P) - x * atr(P);
first_low_stop = lowest(high, P) + x * atr(P);
stop_short = highest(first_high_stop, Q);
stop_long = lowest(first_low_stop, Q) ;
plot1(stop_long,"stop_long",green);
plot2(stop_short,"stop_short",red);
즐거운 하루되세요
> alltoone 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> //EXCIA Chande Kroll Stop
study(title = "Chande Kroll Stop", shorttitle="CKS", overlay = true)
P = 9, x = 1.5, Q = 14
first_high_stop = highest(high, P) - x * atr(P)
first_low_stop = lowest(high, P) + x * atr(P)
stop_short = highest(first_high_stop, Q)
stop_long = lowest(first_low_stop, Q)
plot(stop_long, color=green)
plot(stop_short, color=red)
이 수식을 예스랭귀지로 바꿀 수 있나요? 감사합니다.