Var1=MONEY/VOL;
A=SMA(Var1,5,1)-SMA(Var1,55,1);
B=SMA((A-SMA(A,5,1)),5,1);
//IF(CLOSE>MA(CLOSE,5) AND A>A[1] AND B>B[1])
//RETURN "colorred";
STICKLINE(CLOSE>MA(CLOSE,5) AND A>A[1] AND B>B[1],H,L,0,1),colorred;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>A[1] AND B>B[1],O,C,10,1),colorred;
//IF(CLOSE<MA(CLOSE,5) AND A>A[1] AND B>B[1])
//RETURN "colorwhite";
STICKLINE(CLOSE<MA(CLOSE,5) AND A>A[1] AND B>B[1],H,L,0,1),colorwhite;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>A[1] AND B>B[1],O,C,10,1),colorwhite;
//IF(A<A[3] AND B<B[3])
//RETURN "colorgreen";
STICKLINE(A<A[3] AND B<B[3],H,L,0,1),colorgreen;
STICKLINE(A<A[3] AND B<B[3],O,C,10,1),colorgreen;
//IF(A>A[1] AND B<B[1])
//RETURN "colorwhite";
STICKLINE(A>A[1] AND B<B[1],H,L,0,1),colorwhite;
STICKLINE(A>A[1] AND B<B[1],O,C,10,1),colorwhite;
//IF(A<A[1] AND B>B[1])
//RETURN"colorwhite";
STICKLINE(A<A[1] AND B>B[1],H,L,0,1),colorwhite;
STICKLINE(A<A[1] AND B>B[1],O,C,10,1),colorwhite;
//RETURN "colorgreen";
MA30:MA(C,30),colorwhite;
MA60:MA(C,60),COLOR00FFFF;
MA90:MA(C,90),COLORFF00FF;
MA120:MA(C,120),COLORFFFF00;
MA250:MA(C,250),COLOR808080;
DRAWNUMBER(ISLASTBAR,C,C),colormagenta;
STICKLINE((C-REF(C,1))/REF(C,1)>0.095,C,O,2,0),colormagenta;