最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > 曲线不重合

曲线不重合

来源:网络 点击: 时间:2022-12-21 00:25:23

编写要求:

V1:=IF(C>REF(C,1),V,-V); Y0:=MA(V1,20); Y1:=MA(V1,63); YY1:=Y0*2-Y1; T19:=REF(V1,19)-YY1; T18:=REF(V1,18)-YY1; T17:=REF(V1,17)-YY1; T16:=REF(V1,16)-YY1; T15:=REF(V1,15)-YY1; T14:=REF(V1,14)-YY1; T13:=REF(V1,13)-YY1; T12:=REF(V1,12)-YY1; T11:=REF(V1,11)-YY1; T10:=REF(V1,10)-YY1; T9:=REF(V1,9)-YY1; T8:=REF(V1,8)-YY1; T7:=REF(V1,7)-YY1; T6:=REF(V1,6)-YY1; T5:=REF(V1,5)-YY1; T4:=REF(V1,4)-YY1; T3:=REF(V1,3)-YY1; T2:=REF(V1,2)-YY1; T1:=REF(V1,1)-YY1; T0:=V1-YY1; TT:=T19*T19+T18*T18+T17*T17+T16*T16+T15*T15+T14*T14+T13*T13+ T12*T12+T11*T11+T10*T10+T9*T9+T8*T8+T7*T7+T6*T6+T5*T5+T4*T4+ T3*T3+T2*T2+T1*T1+T0*T0; TT1:=TT/20; 空:=SQRT(TT1); ZY0:=MA(V,20); ZY1:=MA(V,63); ZYY1:=ZY0*2-ZY1; ZT19:=REF(V,19)-ZYY1; ZT18:=REF(V,18)-ZYY1; ZT17:=REF(V,17)-ZYY1; ZT16:=REF(V,16)-ZYY1; ZT15:=REF(V,15)-ZYY1; ZT14:=REF(V,14)-ZYY1; ZT13:=REF(V,13)-ZYY1; ZT12:=REF(V,12)-ZYY1; ZT11:=REF(V,11)-ZYY1; ZT10:=REF(V,10)-ZYY1; ZT9:=REF(V,9)-ZYY1; ZT8:=REF(V,8)-ZYY1; ZT7:=REF(V,7)-ZYY1; ZT6:=REF(V,6)-ZYY1; ZT5:=REF(V,5)-ZYY1; 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);{20日均量差} 均量比:(空-Z空)/空*100,COLORWHITE; 量比:(Z空-STD(V,20))/Z空*100,COLORYELLOW; DRAWICON(量比REF(量比,2) AND 量比<80 ,量比,1); DRAWICON(量比REF(量比,2) AND 量比>80 ,量比,4); 80; 0; XY0:=MA(V,20); XY1:=MA(V,63); XYY1:=XY0*2-XY1; XT19:=REF(V,19)-XYY1; XT18:=REF(V,18)-XYY1; XT17:=REF(V,17)-XYY1; XT16:=REF(V,16)-XYY1; XT15:=REF(V,15)-XYY1; XT14:=REF(V,14)-XYY1; XT13:=REF(V,13)-XYY1; XT12:=REF(V,12)-XYY1; XT11:=REF(V,11)-XYY1; XT10:=REF(V,10)-XYY1; XT9:=REF(V,9)-XYY1; XT8:=REF(V,8)-XYY1; XT7:=REF(V,7)-XYY1; XT6:=REF(V,6)-XYY1; XT5:=REF(C,5)-XYY1; XT4:=REF(V,4)-XYY1; XT3:=REF(V,3)-XYY1; XT2:=REF(V,2)-XYY1; XT1:=REF(V,1)-XYY1; XT0:=V-XYY1; XTT:=XT19*XT19+XT18*XT18+XT17*XT17+XT16*XT16+XT15*XT15+ XT14*XT14+XT13*XT13+XT12*XT12+XT11*XT11+XT10*XT10+XT9*XT9+ XT8*XT8+XT7*XT7+XT6*XT6+XT5*XT5+XT4*XT4+XT3*XT3+XT2*XT2+ XT1*XT1+XT0*XT0; XTT1:=XTT/20; CJLBZ:=SQRT(XTT1);{20日均量差} CJLKZ:=STD(V,20); ZKC:(CJLBZ-STD(V,20))/CJLBZ*100;

解答:

?俩的计算不一样.

靠下面那段公式比上面的少了V1:=IF(C>REF(C,1),V,-V);

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top