ZF:=(C-REF(C,1))/REF(C,1)*100;
AA:=-50+SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(Abs(CLOSE-REF(CLOSE,1)),6,1)*100,COLORRED,LINETHICK2;
BB:=IF(AA>REF(AA,1),AA,REF(AA,1)),COLORYELLOW,LINETHICK1;
XG:=AA=BB AND AA>REF(AA,1) AND BB>REF(BB,1) AND REF(BB,1)>REF(AA,1) AND ZF>1;
蓝宝石:XG;