VAR1:=EMA(EMA(CLOSE,9),9);
VAR2:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
VAR3:=EMA(VAR2,3);
A:=3*VAR2-2*VAR3;
B:=MEMA(C,2);
K:SMA((A+B*2),2,1);
D:SMA(K,3,1);
DRAWBAND(K,RGB(250,150,0),D,RGB(0,130,50));
IF(C,K,DRAWNULL),COLORFF00FF,LINETHICK2;
IF(K<=REF(K,1),K,DRAWNULL),COLORBLUE,LINETHICK2;
IF(C,D,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(D<=REF(D,1),D,DRAWNULL),COLOR33FF33,LINETHICK2;