DIFF:SMA(C,10,1)-SMA(C,22,1);
DEA:SMA(DIFF,7,1);
macd:(DIFF-DEA)*2,COLORSTICK;
STICKLINE(MacD>=0,0,MACD,6,0),colorFF;
STICKLINE(MACD>=0 AND MACD
STICKLINE(MACD<0,0,MACD,6,0),colorFFFF00;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,6,1),colorFFFF00;
差:=DEA-DIFF;
{ _飞狐股票指标公式}
面积:=IF(MACD<0,SUM(MACD,BArslAST(差<0)),0);
A1:=IF(MACD<0,BARSLAST(crOSS(DIFF,DEA)),0);
前次面积:=REF(面积,A1+1);
A2:=IF((面积<0 AND Abs(面积)
XG:=count(MACD>0,55)>=34 and cross(DIFF,DEA) and REF(A2,1);
DRAWTEXT(XG,0,'★'),LINETHICK3,COLOR00FFFF;