参数数量: 2
参数1: M, 最小: 1, 最大: 100, 缺省: 30
参数2: N, 最小: 1, 最大: 100, 缺省: 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);