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ZT4:=REF(V,4)-ZYY1;
ZT3:=REF(V,3)-ZYY1;
ZT2:=REF(V,2)-ZYY1;
ZT1:=REF(V,1)-ZYY1;
ZT0:=V-ZYY1;
ZTT:=ZT19*ZT19+ZT18*ZT18+ZT17*ZT17+ZT16*ZT16+ZT15*ZT15+ZT14*ZT14+ZT13*ZT13+ZT12*ZT12+ZT11*ZT11+ZT10*ZT10+ZT9*ZT9+ZT8*ZT8+ZT7*ZT7+ZT6*ZT6+ZT5*ZT5+ZT4*ZT4+ZT3*ZT3+ZT2*ZT2+ZT1*ZT1+ZT0*ZT0;
ZTT1:=ZTT/20;
Z空:=SQRT(ZTT1);
均量比:(空-Z空)/空*100;
量比:(Z空-STD(V,20))/Z空*100;
坑深:量比-均量比;
DRAWTEXT_FIX(1,0.85,0.01,0,'量比大于均量比且量比向下'),COLORMAGENTA,LINETHICK1;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!