分时四线图通达信公式 分时副图 源码附图
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;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:10
YDL1赋值:C*V
YDL2赋值:YDL1/10000/10000
YDLCH1赋值:SUM(IF(C>1日前的C AND V>=6000 OR YDL1>=1500000,YDL2,0),0)
YDLCH2赋值:SUM(IF(C<1日前的C AND V>=6000 OR YDL1>=1500000,YDL2,0),0)
YDLDH1赋值:SUM(IF(C>1日前的C AND V>=4000 AND V<6000 OR YDL1>=500000 AND YDL1<1500000,YDL2,0),0)
YDLDH2赋值:SUM(IF(C<1日前的C AND V>=4000 AND V<6000 OR YDL1>=500000 AND YDL1<1500000,YDL2,0),0)
YDLZH1赋值:SUM(IF(C>1日前的C AND V>=1000 AND V<4000 OR YDL1>=200000 AND YDL1<500000,YDL2,0),0)
YDLZH2赋值:SUM(IF(C<1日前的C AND V>=1000 AND V<4000 OR YDL1>=200000 AND YDL1<500000,YDL2,0),0)
YDLSH1赋值:SUM(IF(C>1日前的C AND V<1000 OR YDL1<200000,YDL2,0),0)
YDLSH2赋值:SUM(IF(C<1日前的C 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:=N的YDLCH日累和
YDL4:=N的YDLDH日累和
YDL5:=N的YDLZH日累和
YDL6:=N的YDLSH日累和
YDL7:=N的YDL日累和
输出CH:YDL3,画红色,LINETHICK4
输出DH:YDL4,画黄色,LINETHICK4
输出ZH:YDL5,画白色,LINETHICK4
输出SH:YDL6, 画蓝色,LINETHICK4
输出总净:YDL7,COLORLIRED,NODRAW