通达信振幅发现主力副图指标公式源码


振幅:=(H-L)/REF(C,2)*100;
CC1:=(H-L)*0.809+L;
CC3:=(H-L)*0.5+L;
OBV1:=MA(SUM(IF(C>REF(CC,1),振幅,IF(C<REF(CC1,1),-振幅,0)),0),1);
OBV3:=MA(SUM(IF(C>REF(CC,1),振幅,IF(C<REF(CC3,1),-振幅,0)),0),1);
OBV:(OBV1+OBV2+OBV3+OBV4)/4,LINETHICK1;
MA2:EMA(SLOPE(OBV,42)+OBV,48),LINETHICK1;