{SHORT2,200,12;LONG2,200,26;MID2,200,9;ISARROW0,1,1}
DRAWGBK(CURRBARSCOUNT=1,RGB(110,108,108),RGB(88,30,0),0,‘’,0);
DIFF:=EMA(CLOSE*100,SHORT)-EMA(CLOSE*100,LONG);
DEA:=EMA(DIFF,MID);
MACD2:=(DIFF-DEA)*2;
DIF:DIFF,LINETHICK2;
DEF:DEA,LINETHICK2;
MACD:MACD2,NODRAW;
获利比:WINNER(C),NODRAW;
STICKLINE((MACD2》=0),0,MACD2,0,1),COLORRED;
STICKLINE(((MACD2》=0)AND(MACD2《REF(MACD2,1))),0,MACD2,0,0),COLORMAGENTA;
STICKLINE((MACD2《0),0,MACD2,0,0),COLORGREEN;
STICKLINE(((MACD2《0)AND(MACD2》REF(MACD2,1))),0,MACD2,0,1),COLORWHITE;
DRAWICON(LONGCROSS(CLOSE,MA(CLOSE,5),17),MACD2,1);
DRAWICON(LONGCROSS(MA(CLOSE,5),CLOSE,17),MACD2,2);
{88GS}
A1:=IF(MACD2》0,1,-1);
A2:=REF(A1,1);
A3:=A1*A2;
A4:=BARSLAST(A3《0);
A5:=A4+1;
累计面积:SUM(MACD2,A5),NODRAW;
均匀力度:SUM(MACD2,A5)/A5,NODRAW;
0,DOTLINE;
DRAWICON(ISARROWANDCROSS(DIF,DEA),DEA,1);
DRAWICON(ISARROWANDCROSS(DEA,DIF),DEA,2);
MA1:EMA(C,80);
MA2:EMA(C,100);
DRAWTEXT(CROSS(C,MA1),L,‘B’);
DRAWTEXT(CROSS(C,MA2),L*0.99,‘B’);