通达信资金动力指标公式


  VAR1:=DYNAINFO(17);

  VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;

  量比:=IF(VAR2,VAR1,V/REF(MA(V,5),1)),COLORWHITE;

  振幅:=(H-L)/REF(C,1)*100,NODRAW;

  动力:REF(MA(振幅,5),1)*量比,COLORMAGENTA,NODRAW;

  异动:=5,COLORYELLOW,DOTLINE;

  趋势1:(5*动力+4*MA(动力,3)+3*MA(动力,5)+2*MA(动力,7))/14,LINETHICK2,COLORRED;

  趋势3:=IF(C》0,SUM(动力,3)/3,0)COLORLIGREEN;

  趋势5:=IF(C》0,SUM(动力,5)/5,0)COLORRED;

  趋势10:IF(C》0,SUM(动力,10)/10,0)COLORWHITE;

  趋势20:IF(C》0,SUM(动力,20)/20,0)COLORGREEN;

  趋势30:IF(C》0,SUM(动力,30)/30,0)COLORLIBLUE;

  趋势60:IF(C》0,SUM(动力,60)/60,0)COLORYELLOW;

  趋势120:IF(C》0,SUM(动力,120)/120,0)COLORLIMAGENTA;

  趋势250:IF(C》0,SUM(动力,250)/250,0)COLORBLUE;