A:=SUM(IF(CLOSE REF(CLOSE,1),VOL,IF(CLOSE REF(CLOSE,1),-VOL,0)),0)/10000; B:=MA(A,5);{九毛八公式指标网www.9m8.cn} A1:=BARSLAST(REF(CROSS(A,B),1)); B1:=REF(C,A1+1) C AND REF(A,A1+1) B AND CROSS(A,B); DRAWTEXT(IF(B1 0,1,0),L-0.1,'OBV底背离'),COLORGREEN;