A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
A2:=EMA(A1,5)*CLOSE;
LONG:EMA(A2,20)-EMA(A2,50);
XN:EMA(LONG,10);
LONGXN:3*LONG-2*XN;
LB:(LONG-XN)*3,COLORSTICK;
AA:0;