通达信缠论选股源码附图

[复制链接]
查看130 | 回复0 | 2021-8-19 17:53:18 | 显示全部楼层 |阅读模式

以下是通达信缠论选股源码附图(无源码的请下载附件导入)

BI:=TDXDLL6(1,H,L, DATE);
 BG:=TDXDLL6(2,H,L,笔段背切换);{输出笔高}
BD:=TDXDLL6(3,H,L,DATE);{输出笔低}
ZG:=TDXDLL6(4,H,L,DATE);{输出笔高低}
ZD:=TDXDLL6(5,H,L,DATE);{输出笔高}
ZSKS:=TDXDLL6(6,H,L,DATE);{输出笔}
ZSJS:=TDXDLL6(7,H,L,DATE);
 ZSLX1:=TDXDLL6(8,H,L,DATE);{输出笔高低}
ZSLXDOT:=TDXDLL6(9,H,L,DATE);{输出笔高}
BH1:=TDXDLL6(13,H,L,DATE);{输出线段}
DGZS:=TDXDLL6(17,H,L,DATE);
 SFZZ:=TDXDLL6(18,H,L,C);
 DZG:=TDXDLL6(21,H,1,C);
 DZD:=TDXDLL6(21,H,2,C);
 DZSKS:=TDXDLL6(21,H,3,C);
 DZSJS:=TDXDLL6(21,H,4,C);
 ZSLX2:=TDXDLL6(21,H,5,C);
 QCZZ:=TDXDLL6(22,H,L,C);

 ZHB:=0;
 ZHD:=0;
 ZSLX:=IF(笔段背切换=0,ZSLX1,ZSLX2);
 XBGD:=IF(BI=1 AND ZHB!=-1,BG,IF(BI=-1 AND ZHB!=-1,BD,0));
 XBI:=TDXDLL6(19,XBGD,L,1);
 XXHB:=IF(隐藏笔=0 AND XBI!=0,XBI,DRAWNULL),LINETHICK1,COLORRED;
 XZG:=IF(ZSKS!=0 OR ZSJS!=0,ZG,0);
 XZD:=IF(ZSKS!=0 OR ZSJS!=0,ZD,0);
 XXZG:=TDXDLL6(19,XZG,L,2);
 XXZD:=TDXDLL6(19,XZD,L,2);
 XHZS:=IF(隐藏笔中枢=0 AND XXZG!=0,XXZG,DRAWNULL);
 XDZS:=IF(隐藏笔中枢=0 AND XXZD!=0,XXZD,DRAWNULL);
 JDSJ:=ZSJS!=0 AND COUNT(BI!=0, BARSLAST(ZSKS!=0)+1) >=10;
 JSQ:=IF(ZSKS!=0 OR ZSJS!=0,(ZG+ZD)/2,0);
 XJSQ:=TDXDLL6(19,JSQ,L,2);
 XXJSQ:=IF(隐藏笔中枢=0 AND XJSQ !=0,XJSQ,DRAWNULL),LINETHICK2,COLORRED;
 XZSDOT1:=IF(ZSLXDOT=1 AND ZHD!=-1,BG,IF(ZSLXDOT=-1 AND ZHD!=-1,BD,0));
 XZS1:=TDXDLL6(19,XZSDOT1,L,1);
 XXHB1:=IF(隐藏段=0 AND XZS1!=0,XZS1,DRAWNULL),LINETHICK2,COLORRED;
 XZSDOT2:=IF(DGZS=1,BG,IF(DGZS=-1,BD,0));
 XZS2:=TDXDLL6(19,XZSDOT2,L,1);
 XXHB2:=IF(隐藏大级别=0 AND XZS2!=0,XZS2,DRAWNULL),LINETHICK2,COLORBLUE;
 DXZG:=IF(DZSKS!=0 OR DZSJS!=0,DZG,0);
 DXZD:=IF(DZSKS!=0 OR DZSJS!=0,DZD,0);
 DXXZG:=TDXDLL6(19,DXZG,L,2);
 DXXZD:=TDXDLL6(19,DXZD,L,2);
 DXHZS:=IF(隐藏段中枢=0 AND DXXZG!=0,DXXZG,DRAWNULL);
 DXDZS:=IF(隐藏段中枢=0 AND DXXZD!=0,DXXZD,DRAWNULL);
 A1:=隐藏走势判断=0 AND ZSLX=2;
 A2:=隐藏走势判断=0 AND ZSLX=-2;
 A3:=隐藏走势判断=0 AND ZSLX=3;
 A4:=隐藏走势判断=0 AND ZSLX=-3;
 A5:=隐藏背离提示=0 AND SFZZ=-3;
 A6:=隐藏背离提示=0 AND SFZZ=3;
 A7:=隐藏背离提示=0 AND SFZZ=-2;
 A8:=隐藏背离提示=0 AND SFZZ=2;
 A9:=隐藏背离提示=0 AND SFZZ=-1;
 A10:=隐藏背离提示=0 AND SFZZ=1;
 XG:A1 OR A2 OR A3 OR A4 OR A5 OR A6 OR A7 OR A8 OR A9 OR A10;
 

回复

使用道具 举报

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

本版积分规则