N:=5;
N1:=5;
N2:=10;
N3:=20;
MA1:=MA(CLOSE,N1);
MA2:=MA(CLOSE,N2);
MA3:=MA(CLOSE,N3);
TJ1:=MA1>MA2 AND MA2>MA3;
TJ2:=MA1>REF(MA1,1) AND MA2>REF(MA2,1) AND MA3>REF(MA3,1);
TJ3:=EVERY(TJ1,N) AND NOT(EVERY(TJ1,(N+1))) ;
TJ4:=COUNT((V/REF(MA(V,5),1)>=1),20)>=1;
TJ1 AND TJ2 AND TJ3 AND TJ4;
九毛八公式解读
N赋值:5 N1赋值:5 N2赋值:10 N3赋值:20 MA1赋值:收盘价的N1日简单移动平均 MA2赋值:收盘价的N2日简单移动平均 MA3赋值:收盘价的N3日简单移动平均 TJ1赋值:MA1>MA2 AND MA2>MA3 TJ2赋值:MA1>1日前的MA1 AND MA2>1日前的MA2 AND MA3>1日前的MA3 TJ3赋值:最近N日一直存在TJ1 AND 取反 TJ4赋值:统计20日中满足(成交量(手)/1日前的成交量(手)的5日简单移动平均>=1)的天数>=1 TJ1 AND TJ2 AND TJ3 AND TJ4