通达信分时副图四线图公式、源码 测试图[通达信公式]
通达信分时副图四线图公式、源码 测试图:
N:=10;YDL1:=C*V;YDL2:=YDL1/10000/10000;YDLCH1:=SUM(IF(C>REF(CLOSE,1) AND V>=6000 OR YDL1>=1500000,YDL2,0),0);YDLCH2:=SUM(IF(C<REF(CLOSE,1) AND V>=6000 OR YDL1>=1500000,YDL2,0),0);YDLDH1:=SUM(IF(C>REF(CLOSE,1) AND V>=4000 AND V<6000 OR YDL1>=500000 AND YDL1<1500000,YDL2,0),0);YDLDH2:=SUM(IF(C<REF(CLOSE,1) AND V>=4000 AND V<6000 OR YDL1>=500000 AND YDL1<1500000,YDL2,0),0);YDLZH1:=SUM(IF(C>REF(CLOSE,1) AND V>=1000 AND V<4000 OR YDL1>=200000 AND YDL1<500000,YDL2,0),0);YDLZH2:=SUM(IF(C<REF(CLOSE,1) AND V>=1000 AND V<4000 OR YDL1>=200000 AND YDL1<500000,YDL2,0),0);YDLSH1:=SUM(IF(C>REF(CLOSE,1) AND V<1000 OR YDL1<200000,YDL2,0),0);YDLSH2:=SUM(IF(C<REF(CLOSE,1) AND V<1000 OR YDL1<200000,YDL2,0),0);YDLCH:=YDLCH1-YDLCH2;YDLDH:=YDLDH1-YDLDH2;YDLZH:=YDLZH1-YDLZH2;YDLSH:=YDLSH1-YDLSH2;YDL:=YDLCH+YDLDH+YDLZH+YDLSH;YDL3:=SUM(YDLCH,N);YDL4:=SUM(YDLDH,N);YDL5:=SUM(YDLZH,N);YDL6:=SUM(YDLSH,N);YDL7:=SUM(YDL,N);CH:YDL3,COLORRED,LINETHICK4;DH:YDL4,COLORYELLOW,LINETHICK4;ZH:YDL5,COLORWHITE,LINETHICK4;SH:YDL6,COLORBLUE,LINETHICK4;总净:YDL7,COLORLIRED,NODRAW;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容