您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:仿文峰K线主图

仿文峰K线主图


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2013-02-27 09:15:00
公式简介:

看到网友使用我的统计DDX的源码,很是高兴!现将网友(对不起忘记了你的大名,刚才搜索也没有找到,哈哈是中国红军)的仿文峰K线主图进行了优化,并加入了统计DDX、DDY、DDZ小于0的天数,供喜欢的朋友下载使用!

TA1:=IF (DDX<0 AND REF(DDX,1)>0,1,0);
TA2:=IF (DDX<0 AND REF(DDX,1)<0 AND REF(DDX,2)>0,2,TA1);
TA3:=IF (DDX<0 AND REF(DDX,1)<0 AND REF(DDX,2)<0 AND REF(DDX,3)>0,3,TA2);
TA4:=IF (DDX<0 AND REF(DDX,1)<0 AND REF(DDX,2)<0 AND REF(DDX,3)<0 AND REF(DDX,4)>0,4,TA3);
TA5:=IF (DDX<0 AND REF(DDX,1)<0 AND REF(DDX,2)<0 AND REF(DDX,3)<0 AND REF(DDX,4)<0 AND REF(DDX,5)>0,5,TA4);
TA6:=IF (DDX<0 AND REF(DDX,1)<0 AND REF(DDX,2)<0 AND REF(DDX,3)<0 AND REF(DDX,4)<0 AND REF(DDX,5)<0 AND REF(DDX,6)>0,6,TA5);
TA7:=IF (DDX<0 AND REF(DDX,1)<0 AND REF(DDX,2)<0 AND REF(DDX,3)<0 AND REF(DDX,4)<0 AND REF(DDX,5)<0 AND REF(DDX,6)<0 AND REF(DDX,7)>0,7,TA6);
TA8:=IF (DDX<0 AND REF(DDX,1)<0 AND REF(DDX,2)<0 AND REF(DDX,3)<0 AND REF(DDX,4)<0 AND REF(DDX,5)<0 AND REF(DDX,6)<0 AND REF(DDX,7)<0 AND REF(DDX,8)>0,8,TA7);
TA9:=IF (DDX<0 AND REF(DDX,1)<0 AND REF(DDX,2)<0 AND REF(DDX,3)<0 AND REF(DDX,4)<0 AND REF(DDX,5)<0 AND REF(DDX,6)<0 AND REF(DDX,7)<0 AND REF(DDX,8)<0 AND REF(DDX,9)>0,9,TA8);
TA:=IF (DDX<0 AND REF(DDX,1)<0 AND REF(DDX,2)<0 AND REF(DDX,3)<0 AND REF(DDX,4)<0 AND REF(DDX,5)<0 AND REF(DDX,6)<0 AND REF(DDX,7)<0 AND REF(DDX,8)<0 AND REF(DDX,9)<0,10,TA9);


TB11:=IF (DDY<0 AND REF(DDY,1)>0,1,0);
TB21:=IF (DDY<0 AND REF(DDY,1)<0 AND REF(DDY,2)>0,2,TB11);
TB31:=IF (DDY<0 AND REF(DDY,1)<0 AND REF(DDY,2)<0 AND REF(DDY,3)>0,3,TB21);
TB41:=IF (DDY<0 AND REF(DDY,1)<0 AND REF(DDY,2)<0 AND REF(DDY,3)<0 AND REF(DDY,4)>0,4,TB31);
TB51:=IF (DDY<0 AND REF(DDY,1)<0 AND REF(DDY,2)<0 AND REF(DDY,3)<0 AND REF(DDY,4)<0 AND REF(DDY,5)>0,5,TB41);
TB61:=IF (DDY<0 AND REF(DDY,1)<0 AND REF(DDY,2)<0 AND REF(DDY,3)<0 AND REF(DDY,4)<0 AND REF(DDY,5)<0 AND REF(DDY,6)>0,6,TB51);
TB71:=IF (DDY<0 AND REF(DDY,1)<0 AND REF(DDY,2)<0 AND REF(DDY,3)<0 AND REF(DDY,4)<0 AND REF(DDY,5)<0 AND REF(DDY,6)<0 AND REF(DDY,7)>0,7,TB61);
TB81:=IF (DDY<0 AND REF(DDY,1)<0 AND REF(DDY,2)<0 AND REF(DDY,3)<0 AND REF(DDY,4)<0 AND REF(DDY,5)<0 AND REF(DDY,6)<0 AND REF(DDY,7)<0 AND REF(DDY,8)>0,8,TB71);
TB91:=IF (DDY<0 AND REF(DDY,1)<0 AND REF(DDY,2)<0 AND REF(DDY,3)<0 AND REF(DDY,4)<0 AND REF(DDY,5)<0 AND REF(DDY,6)<0 AND REF(DDY,7)<0 AND REF(DDY,8)<0 AND REF(DDY,9)>0,9,TB81);
TBY:=IF (DDY<0 AND REF(DDY,1)<0 AND REF(DDY,2)<0 AND REF(DDY,3)<0 AND REF(DDY,4)<0 AND REF(DDY,5)<0 AND REF(DDY,6)<0 AND REF(DDY,7)<0 AND REF(DDY,8)<0 AND REF(DDY,9)<0,10,TB91);


TC1Z:=IF (DDZ<0 AND REF(DDZ,1)>0,1,0);
TC2Z:=IF (DDZ<0 AND REF(DDZ,1)<0 AND REF(DDZ,2)>0,2,TC1Z);
TC3Z:=IF (DDZ<0 AND REF(DDZ,1)<0 AND REF(DDZ,2)<0 AND REF(DDZ,3)>0,3,TC2Z);
TC4Z:=IF (DDZ<0 AND REF(DDZ,1)<0 AND REF(DDZ,2)<0 AND REF(DDZ,3)<0 AND REF(DDZ,4)>0,4,TC3Z);
TC5Z:=IF (DDZ<0 AND REF(DDZ,1)<0 AND REF(DDZ,2)<0 AND REF(DDZ,3)<0 AND REF(DDZ,4)<0 AND REF(DDZ,5)>0,5,TC4Z);
TC6Z:=IF (DDZ<0 AND REF(DDZ,1)<0 AND REF(DDZ,2)<0 AND REF(DDZ,3)<0 AND REF(DDZ,4)<0 AND REF(DDZ,5)<0 AND REF(DDZ,6)>0,6,TC5Z);
TC7Z:=IF (DDZ<0 AND REF(DDZ,1)<0 AND REF(DDZ,2)<0 AND REF(DDZ,3)<0 AND REF(DDZ,4)<0 AND REF(DDZ,5)<0 AND REF(DDZ,6)<0 AND REF(DDZ,7)>0,7,TC6Z);
TC8Z:=IF (DDZ<0 AND REF(DDZ,1)<0 AND REF(DDZ,2)<0 AND REF(DDZ,3)<0 AND REF(DDZ,4)<0 AND REF(DDZ,5)<0 AND REF(DDZ,6)<0 AND REF(DDZ,7)<0 AND REF(DDZ,8)>0,8,TC7Z);
TC9Z:=IF (DDZ<0 AND REF(DDZ,1)<0 AND REF(DDZ,2)<0 AND REF(DDZ,3)<0 AND REF(DDZ,4)<0 AND REF(DDZ,5)<0 AND REF(DDZ,6)<0 AND REF(DDZ,7)<0 AND REF(DDZ,8)<0 AND REF(DDZ,9)>0,9,TC8Z);
TCZ:=IF (DDZ<0 AND REF(DDZ,1)<0 AND REF(DDZ,2)<0 AND REF(DDZ,3)<0 AND REF(DDZ,4)<0 AND REF(DDZ,5)<0 AND REF(DDZ,6)<0 AND REF(DDZ,7)<0 AND REF(DDZ,8)<0 AND REF(DDZ,9)<0,10,TC9Z);


 






 


[url=http://www.goodgupiao.com/gupiaogongshi/26239.html][B]仿文峰K线主图[/B][/url]