通达信公式黄白线贴近0轴选股

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=DIFF>-1 AND DEA>-1 AND DIFF<1 AND DEA<1;
AA:=REF(COUNT(A1,50),3)=50 OR REF(COUNT(A1,50),2)=50 OR REF(COUNT(A1,50),1)=50;
BB:=ABS(DIFF/DEA)<0.01;
AA AND BB;