1、解压附件放到通达信dlls目录下。
2、打开通达信(不能通过快捷方式打开,需要到通达信的安装目录下打开TdxW.exe,否则不能绑定公式)。
3、新建公式,画线方法选择“主图叠加”,将下方代码复制到公式中,确定。
DD0:=TDXDLL1(4, HIGH, LOW, 0); {最后的参数0为旧笔,1为新笔,请根据自己喜好填写}
DD1:=TDXDLL1(1, HIGH, LOW, DATE);
DRAWLINE(DD1 == 1,HIGH, DD1 == 2, LOW, 0) COLORGRAY LINETHICK1;
DRAWLINE(DD1 == 2,LOW, DD1 == 1, HIGH, 0) COLORGRAY LINETHICK1;
DD2:=TDXDLL1(2, HIGH, LOW, DATE);
DRAWLINE(DD2 == 3, HIGH, DD2 == 4, LOW, 0) COLORYELLOW LINETHICK1;
DRAWLINE(DD2 == 4, LOW, DD2 == 3, HIGH, 0) COLORYELLOW LINETHICK1;
DD3:=TDXDLL1(3,HIGH,LOW,DATE);
DRAWLINE(DD3 == 5, HIGH, DD3 == 6, LOW, 0) COLORRED LINETHICK2;
DRAWLINE(DD3 == 6, LOW, DD3 == 5, HIGH, 0) COLORRED LINETHICK2;