K:=KDJ.K;
D:=KDJ.D;
J:=KDJ.J;
HH:=MAX(MAX(K,D),J);
LL:=MIN(MIN(K,D),J);
NH:=(HH/LL-1)*100;
A:=K>D AND J>K;
T:=BARSLAST(CROSS(NH<1,0.5));
TJ:=MIN(C,O)/L>1.04 AND MIN(C,O)<REF(MIN(C,O),1);
TJ1:=IF(C<O,H/O>1.005,C>=O);
XG:REF(A,T+1) AND COUNT(NH>1,T)=1 AND NH>1 AND TJ AND TJ1;
九毛八公式解读
K赋值:KDJ的K D赋值:KDJ的D J赋值:KDJ的J HH赋值:K和D的较大值和J的较大值 LL赋值:K和D的较小值和J的较小值 NH赋值:(HH/LL-1)*100 A赋值:K>D AND J>K T赋值:上次NH<1上穿0.5距今天数 TJ赋值:收盘价和开盘价的较小值/最低价>1.04 AND 收盘价和开盘价的较小值<1日前的收盘价和开盘价的较小值 TJ1赋值:如果收阴线,返回最高价/开盘价>1.005,否则返回收盘价>=开盘价 输出XG:T+1日前的A AND 统计T日中满足NH>1的天数=1 AND NH>1 AND TJ AND TJ1