N:=(2,300,10);
LC := REF(CLOSE,1);
VID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2)))*100);
RC := (CLOSE-LC)*VID;
LONG := SUM(RC,0);
DIFF := SMA(LONG,10,1);
DEA := SMA(LONG,20,1);
LON : DIFF-DEA;
LONMA : MA(LON,10);
DRAWBAND(LON,RGB(100,10,10),LONMA,RGB(10,100,10));
LONT:=LON, COLORSTICK;
STICKLINE(LON>REF(LON,1) AND LON>0,0,LON,0,0),COLORRED; MYGB1:=REF(LON,2)<0 AND REF(LON,1)<0 AND LON<0 AND ABS(REF(LON,2))ABS(LON);
STICKLINE(LON>REF(LON,1) AND LON<0,0,LON,0,0),COLORMAGENTA;
STICKLINE(LON0,0,LON,0,0),COLORLIGREEN;
STICKLINE(LON
MYGB3:=REF(LON,2)>0 AND REF(LON,1)>0 AND LON>0 AND ABS(REF(LON,2))ABS(LON);
STICKLINE(MYGB1,0,LON,0.1,0),COLORMAGENTA;
STICKLINE(MYGB3,0,LON,0.1,0),COLORGREEN;