分时四线图(通达信公式 分时副图 源码 测试图)

[复制链接]
查看65 | 回复0 | 2022-6-27 19:21:25 | 显示全部楼层 |阅读模式

分时四线图,是用在分时副图的

 N:=10;

YDL1:=C*V;
YDL2:=YDL1/10000/10000;
YDLCH1:=SUM(IF(C>REF(C,1) AND V>=6000 OR YDL1>=1500000,YDL2,0),0);
YDLCH2:=SUM(IF(C<REF(C,1) AND V>=6000 OR YDL1>=1500000,YDL2,0),0);
YDLDH1:=SUM(IF(C>REF(C,1) AND V>=4000 AND V<6000 OR YDL1>=500000 AND  YDL1<1500000,YDL2,0),0);
YDLDH2:=SUM(IF(C<REF(C,1) AND V>=4000 AND V<6000 OR YDL1>=500000 AND  YDL1<1500000,YDL2,0),0);
YDLZH1:=SUM(IF(C>REF(C,1) AND V>=1000 AND V<4000 OR YDL1>=200000 AND  YDL1<500000,YDL2,0),0);
YDLZH2:=SUM(IF(C<REF(C,1) AND V>=1000 AND V<4000 OR YDL1>=200000 AND  YDL1<500000,YDL2,0),0);
YDLSH1:=SUM(IF(C>REF(C,1) AND V<1000 OR YDL1<200000,YDL2,0),0);
YDLSH2:=SUM(IF(C<REF(C,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;

p20201912593232407.jpg

p20201912593232407.jpg

20201912593918097.rar

2.07 KB, 下载次数: 0

售价: 4 金钱  [记录]  [购买]

20201912593918097.rar

回复

使用道具 举报

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

本版积分规则