TJ:=MIN(O,C)/L>1.04;
T1:=BARSLAST(TJ);
T2:=REF(T1,T1+1)+T1+1;
T3:=CONST(T2-T1<=30 AND BETWEEN(REF(L,T1)-REF(L,T2),0.01,-0.01));
B:=T3 AND CURRBARSCOUNT=CONST(T1)+1;
D:=BARSLAST(B);
COUNT(C>REF(H,D),D+1)=1 AND C>REF(H,D);
九毛八公式解读
TJ赋值:开盘价和收盘价的较小值/最低价>1.04 T1赋值:上次TJ距今天数 T2赋值:T1+1日前的T1+T1+1 T3赋值:T2-T1<=30ANDBETWEEN(T1日前的最低价-T2日前的最低价,0.01,-0.01)的最后一日取值设为常数 B赋值:T3 AND 到最后交易的周期=T1的最后一日取值设为常数+1 D赋值:上次B距今天数 统计D+1日中满足收盘价>D日前的最高价的天数=1 AND 收盘价>D日前的最高价