C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- {局部更正版;版权所有,不得作为商品,不得盗用为提升个人名誉、地位}
-
- {副图名:DDV_YFQJ_JLJ ; TDX版,基本通用版};
- {开发根据:基于一发千钧DDX模型;解析、改进与编程:JIPGEMLING.见凌见};
- {参数设置:VOL_AMO(1,2,1); 1为VOL,2为AMOUNT;注意下划线用全角下划线};
- {坐标线位置:自动 ;额外Y轴分界 值1=0 };
- {TDX版,中高分辨率屏幕};
-
- {解析与改进部分};
- VOL_AMO:=1;{1~2,1};
- EPSL:=0.0001;
- TJ1:=H=L AND C>REF(C,1);
- TJ2:=H=L AND C<REF(C,1); {**1};
- 量_价:IF(VOL_AMO=1,VOL,AMOUNT),STICK,COLOREEFFEE;
- STICKLINE(C>OPEN,0,量_价,1.5,-1),COLOR1133FA;
- STICKLINE(C<=OPEN,0,量_价,2.0,-1),COLORDFDF13; {**2};
- EP:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));
- ZL:=3*((H-L)+IF(H=L,EPSL,0)); {**3};
- DDX_YFQJ_JLJ:=((2*C-(H+L))+EP)/ZL;
- 买卖差:DDX_YFQJ_JLJ*量_价,COLOR13AADD,NODRAW;
- DDX%:DDX_YFQJ_JLJ*100,NODRAW;
- 主动买:(量_价+买卖差)/2,COLOR1133AA,NODRAW;
- 主动卖:(量_价-买卖差)/2,COLORDFDF13,NODRAW;
- STICKLINE(1,0,主动买,2.2,1),COLOR1133DE;
-
- {买卖差(DDV)实心柱};
- JDZ:=ABS(买卖差);
- STICKLINE(主动买>主动卖,0,JDZ,2,0),COLOR13BCE8;
- STICKLINE(主动买>主动卖,0,JDZ,1,0),COLOR13CDE8;
- STICKLINE(主动买>主动卖,0,JDZ,0.5,0),COLOR13DEE8;
- STICKLINE(主动买<主动卖,0,JDZ,2,0),COLOR339933;
- STICKLINE(主动买<主动卖,0,JDZ,1,0),COLOR33BB33;
- STICKLINE(主动买<主动卖,0,JDZ,0.5,0),COLOR33DD33;
-
- {买卖差累积曲线};
- MMC:=IF(BARSCOUNT(C)>0,买卖差,0);{上市第一颗不要};
- 短:SMA(SUM(MMC,5),6,1)/1.3,COLORABCCBA,LINETHICK2;
- 中:SMA(SUM(MMC,34),9,2)/4,COLOR13EFEF,LINETHICK1;
- 长:SMA(SUM(MMC,55),9,2)/6.5,COLORFFAA55,LINETHICK1;
- 强:IF(短>REF(短,1),短,MA(短,256000)),COLOR1133EF,LINETHICK2;
-
- {更正说明}
- {**1;去掉了 TJ3:=H=L AND C=REF(C,1); };
- {**2;更正:加“=”号,改小柱宽,显出买方和卖方界线,改虚线不刺眼};
- {**3;更正、简化了分母部分的(涨停、跌停、平盘一字)处理};