N:=13;M:=34;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV1:=MA(OBV,N);
OBV2:=MA(OBV,M);
RSV:=(OBV-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;
Y0:MA(OBV1,2),COLORRED,LINETHICK1;
Y1:MA(OBV2,3),COLORYELLOW,LINETHICK1;
TTT:=LAST(Y0>Y1);{公式平台,公式指标和源码 www.Gspt.com}
STICKLINE(Y0>Y1 ,Y0,Y1,6,0),COLORRED;
STICKLINE(Y0<=Y1 ,Y0,Y1,6,0),COLORYELLOW;