DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
TJF:=MACD<0;
TSF:=BARSLASTCOUNT(TJF);
TJZ:=MACD>=0;
TSZ:=BARSLASTCOUNT(TJZ);
TSYX:=TSZ+REF(TSF,TSZ);
TS:=REF(TSZ,TSYX)+TSYX;
X:0;
负面积:=ABS(SUM(MACD,TSF)*TSF),NODRAW;
上个负面积:REF(负面积,TS),NODRAW;
最后负面积:REF(负面积,TSZ),NODRAW;
正面积:SUM(MACD,TSZ)*TSZ,NODRAW;