X_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_2:=EMA(X_1,9);
X_3:=(X_1-X_2)*2;
X_4:=MA(macd.DIF#WEEK(12,26,9),5);
X_5:=MA(MACD.DEA#WEEK(12,26,9),5);
X_6:=MA(MACD.DIF#MONTH(12,26,9),20);
X_7:=MA(MACD.DEA#MONTH(12,26,9),20);
X_8:=X_1>=X_2;
X_9:=X_2>X_1;
A10:STICKLINE(X_8,1.2,1.7,2,0),COLORRED;
A11:STICKLINE(X_9,1.2,1.7,2,0),COLORLIBLUE;
X_10:=X_4>=X_5;
X_11:=X_5>X_4;
A14:STICKLINE(X_10,0.6,1.1,2,0),COLORRED;
A15:STICKLINE(X_11,0.6,1.1,2,0),COLORLIBLUE;
X_12:=X_6>=X_7;
X_13:=X_7>X_6;
A18:STICKLINE(X_12,0,0.5,2,0),COLORRED;
A19:STICKLINE(X_13,0,0.5,2,0),COLORLIBLUE;
X_14:=crOSS(X_1,X_2) AND X_1>=0;
A21:DRAWNUMBER(X_14,2.2,1);
X_15:=CROSS(X_1,X_2) AND X_1<0;
A23:DRAWNUMBER(X_15,2.2,(-1));