Var1:=(CLOSE+LOW+HIGH)/3;
a=HIGH-LOW;
IF(HIGH==LOW)a=0.01;
Var2:=SUM(((Var1-REF(LOW,1))-(HIGH-Var1))*VOL/10000000/a,0);
Var3:=EMA(Var2,1);
J1:Var3;
J2:MA(Var3,12);
J3:MA(Var3,26);
a:var2;
STICKLINE(J1>0 AND J1>J2 AND J1>J3,0,10,8,0),colorred;
STICKLINE(J1<0 AND J1>J2 AND J1>J3,0,10,8,0),colorred;
STICKLINE(J1>0 AND J1>J2 AND J1<J3,0,5,10,0),colorwhite;
STICKLINE(J1<0 AND J1>J2 AND J1<J3,0,5,10,0),colorwhite;
STICKLINE(J1>0 AND J1<J2 AND J1>J3,0,5,10,0),colorwhite;
STICKLINE(J1<0 AND J1<J2 AND J1>J3,0,5,10,0),colorwhite;
STICKLINE(J1>0 AND J1<J2 AND J1<J3,0,3,10,0),colorgreen;
STICKLINE(J1<0 AND J1<J2 AND J1<J3,0,3,10,0),colorgreen;