VA:=IF(CLOSE>REF(CLOSE,1),vol,-VOL);
obv:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV30:MA(OBV,30);
OBV2:=OBV-OBV30;
{STICKLINE(OBV>MOBV,OBV,MOBV,1,0),COLORRED;
STICKLINE(OBV<MOBV,OBV,MOBV,1,0),COLOR00FF00;}
STICKLINE(OBV2>0,OBV,OBV30,1,0),COLORRED;
STICKLINE(OBV2<0,OBV,OBV30,1,0),COLOR00FF00;
DRAWICON(crOSS(OBV,OBV30),OBV30,1);
DRAWICON(CROSS(OBV30,OBV),OBV30,2);
T线:HHV(OBV,0),COLORGREEN;