N:=120;
M:=80;
现价:=C;
顶部:=COST(95),COLORFFFF33;
卖出:=COST(75),COLORGREEN;
买入:=COST(30),COLORRED;
底部:=COST(5),COLORYELLOW;
MA1:=MA(VOL,5);
MA2:=MA(VOL,10);
MA3:=MA(VOL,20);
MA4:=MA(VOL,30);
MA5:=MA(VOL,60);
XG:顶部<HHV(顶部,N)*M/100
AND COUNT(CROSS(C,顶部),3)>0
AND C>REF(C,1)
AND 买入>REF(买入,1)
AND 卖出>REF(卖出,1)
AND 顶部>REF(顶部,1)
AND DYNAINFO(4)>0;