X_1:=EMA(CLOSE,240);
X_2:=EMA(CLOSE,520);
X_3:=X_1-X_2;
X_4:=EMA(CLOSE,240)+X_3;
WDEA:EMA(X_4,180),COLORGREEN;
X_5:=X_4*2-WDEA;
X_6:=SMA(X_5,3,1);
DRAWBAND(X_5,RGB(225,255,0),X_6,RGB(61,89,171));
IF(X_4>=REF(X_4,1),X_4,DRAWNULL),COLORRED;
IF(X_4<=REF(X_4,1),X_4,DRAWNULL),COLORBLUE,LINETHICK2;
X_7:=IF(crOSS(X_5,X_4),1,0);
X_8:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
DRAWICON(X_7,X_4*1,1);
X_9:=IF(CROSS(X_4,X_5),1,0);
DRAWICON(X_9,X_4*1,2);
X_10:=EMA(CLOSE,60);
X_11:=EMA(CLOSE,130);
X_12:=X_10-X_11;
X_13:=EMA(CLOSE,60)+X_12;
X_14:=EMA(X_13,45);
X_15:=X_13*2-X_14;
X_16:=SMA(X_15,3,1);
DRAWBAND(X_15,RGB(225,25,55),X_16,RGB(25,225,55));