通达信贝塔选股和丁丁选股合成一个条件选股公式

[复制链接]
查看71 | 回复0 | 2022-7-24 07:21:44 | 显示全部楼层 |阅读模式

贝塔选股原公式:

五日贝塔:=CLOSE/REF(CLOSE,5)/(INDEXC/REF(INDEXC,5));
 十三日贝塔:=CLOSE/REF(CLOSE,13)/(INDEXC/REF(INDEXC,13));
 牛股:=IF(CROSS(五日贝塔,1.07) AND 十三日贝塔>1 AND COUNT(五日贝塔<1.07,3)>=2,1.1,1);
 XG:牛股=1.1;

 

丁丁选股原公式:
 
丁丁1:=EMA(C,3),COLORWHITE;
 丁丁2:=EMA(C,5),COLORYELLOW;
 丁丁3:=EMA(C,7),COLORBROWN;
 丁丁4:=EMA(C,12),COLORLIGREEN;
 丁丁5:=EMA(C,20),COLORRED;
 SS:=CROSS(丁丁1,丁丁2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
 OR CROSS(丁丁1,丁丁4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
 OR CROSS(丁丁2,丁丁3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
 OR CROSS(丁丁1,丁丁3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(丁丁1,丁丁4);
 DRAWICON(SS,L-0.04,5);
 DD:=CROSS(丁丁2,丁丁3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
 OR CROSS(丁丁2,丁丁5) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
 OR CROSS(丁丁3,丁丁4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
 OR CROSS(丁丁2,丁丁4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(丁丁1,丁丁5);

1016322353.png

1016322353.png

合并后的选股公式:

五日贝塔:=CLOSE/REF(CLOSE,5)/(INDEXC/REF(INDEXC,5));
 十三日贝塔:=CLOSE/REF(CLOSE,13)/(INDEXC/REF(INDEXC,13));
 牛股:=IF(CROSS(五日贝塔,1.07) AND 十三日贝塔>1 AND COUNT(五日贝塔<1.07,3)>=2,1.1,1);
 XG:=牛股=1.1;
 丁丁1:=EMA(C,3),COLORWHITE;
 丁丁2:=EMA(C,5),COLORYELLOW;
 丁丁3:=EMA(C,7),COLORBROWN;
 丁丁4:=EMA(C,12),COLORLIGREEN;
 丁丁5:=EMA(C,20),COLORRED;
 SS:=CROSS(丁丁1,丁丁2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
 OR CROSS(丁丁1,丁丁4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
 OR CROSS(丁丁2,丁丁3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
 OR CROSS(丁丁1,丁丁3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(丁丁1,丁丁4);
 XG AND SS;

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则