大智慧DDV_YFQJ_JLJ指标公式源码
-
相关简介:{副图名:DDV_YFQJ_JLJ ; TDX版,基本通用版}; {开发根据:基于一发千钧DDX模型;解析、改进与编程:JIPGEMLING.见凌见}; {参数设置:VOL_AMO(1,2,1); 1为VOL,2为AMOUNT;注意下划线用全角下划线}; {坐标线位置:自动 ;额外Y轴分界 值1=0 }; {TDX版,中高分辨率屏幕}; {更正说明} {**1;去掉了 TJ3:=H=L AND C=ref(C,1); }; {**2;更正:加=号,改小柱宽,显出买方和卖方界线,改虚线不刺眼};
-
文章来源:股海网作者:股海网发布时间:2013-09-04浏览次数:
{副图名:DDV_YFQJ_JLJ ; TDX版,基本通用版};
{开发根据:基于一发千钧DDX模型;解析、改进与编程:JIPGEMLING.见凌见};
{参数设置:VOL_AMO(1,2,1); 1为VOL,2为AMOUNT;注意下划线用全角下划线};
{坐标线位置:自动 ;额外Y轴分界 值1=0 };
{TDX版,中高分辨率屏幕};
{更正说明}
{**1;去掉了 TJ3:=H=L AND C=ref(C,1); };
{**2;更正:加“=”号,改小柱宽,显出买方和卖方界线,改虚线不刺眼};
{**3;更正、简化了分母部分的(涨停、跌停、平盘一字)处理};
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,LINETHICK0;
DDX%:DDX_YFQJ_JLJ*100,LINETHICK0;
主动买:(量_价+买卖差)/2,COLOR1133AA,LINETHICK0;
主动卖:(量_价-买卖差)/2,COLORDFDF13,LINETHICK0;
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;
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and CXH=5);
DRAWTEXTREL(10 ,10 ,'指标公式');
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;