M:=30;
N:=10;
XA_1:=IF(CLOSE>REF(CLOSE,1),vol,-VOL);
XA_2:=SUM(IF(CLOSE=REF(CLOSE,1),0,XA_1),0);
XA_3:=MA(obv,M);
DRAWBAND(XA_3,RGB(0,0,80),XA_2,RGB(160,0,0));
XA_4:=REF(XA_2,N)=HHV(XA_2,2*N+1);
XA_5:=FILTER(XA_4,N);
XA_6:=BACKSET(XA_5,N+1);
XA_7:=FILTER(XA_6,N);
T线:REF(OBV,BARSLAST(XA_7)),NODRAW,COLORMAGENTA;
STICKLINE(CLOSE>0,T线,T线,6,0),COLORFF6600;
DRAWICON(crOSS(OBV,T线),T线*0.99,1);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,XA_1),0);
MA30:MA(OBV,M);