DIFF:=EMA(CLOSE,9)-EMA(CLOSE,26);
DEAA:=EMA(DIFF,12);
macdD:=(DIFF-DEAA)*2;
ZT:=IF(CODELIKE('68') OR CODELIKE('30'),ZTPRICE(REF(C,1),0.2),IF(CODELIKE('8'),ZTPRICE(REF(C,1),0.3),IF((NAMELIKE('ST') OR NAMELIKE('*')),ZTPRICE(REF(C,1),0.05),ZTPRICE(REF(C,1),0.1))));
{STICKLINE(C=ZT,O,C,0.8,0),COLORYELLOW;}
TS:=BARSCOUNT(CLOSE)>=10;
MM:=EMA((3*CLOSE+HIGH+LOW+OPEN)/6,20),COLORBLUE,LINETHICK2;
FL:=HHV(MM,5),LINETHICK2,COLORGREEN;
FS:=MM-(FL-MM),LINETHICK2,COLORRED;
三线:=FL=FS AND REF(FL,1)>REF(FS,1);
九天揽月:FILTER(FL=FS AND BARSLAST(三线) <=4 AND TS AND C>=O AND V>=REF(V,1)*2 AND C/REF(C,1)>1.03 ,5);