예스스탁
예스스탁 답변
2021-10-18 14:55:49
안녕하세요
예스스탁입니다.
input : period(20),period_min(5),period_max(10),lower(95),upper(105);
var : CANDLE(0),AA(0),BB(0),cloud1(0),cloud2(0),condition(False);
CANDLE = Accum(1);
AA = highest(C, period)[1];
if CrossUp(C,AA) Then
BB = CANDLE;
cloud1=(highest(high,9)+
lowest(low,9)+
highest(high,26)+
lowest(low,26))/4;
cloud2=(highest(high,52)+lowest(low,52))/2;
condition= crossup(C, AA) and (CANDLE-BB[1] < period_max)
and (period_min< CANDLE-BB[1])
and (lower < disparity(60) and disparity(60) <upper)
and (C > cloud1[25] and C > cloud2[25])
and (O < cloud1[25]*1.3 and O < cloud2[25]*1.3);
if Condition == true Then
Find(1);
즐거운 하루되세요
> 밤톨123 님이 쓴 글입니다.
> 제목 : 키움 수식을 변환 하려고 함니다
> 종목검색을하려고함니다
수고스럽지만 부탁드림니다
CANDLE=sum(1);
AA=highest(C(1), period);
BB=valuewhen(1, crossup(C, AA), CANDLE);
cloud1=(
highest(high,9)+
lowest(low,9)+
highest(high,26)+
lowest(low,26)
)/4;
cloud2=(
highest(high,52)+
lowest(low,52)
)/2;
condition= crossup(C, AA) and (CANDLE-BB(1)<period_max)
and (period_min< CANDLE-BB(1))
and (lower<disparity(60) and disparity(60) <upper)
and (C > cloud1(25) and C > cloud2(25))
and (O < cloud1(25)*1.3 and O < cloud2(25)*1.3)