龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-12-15 10:00

大智慧ddx优化版指标源码 更美观[大智慧公式]

大智慧ddx优化版指标源码 更美观
[code]
A1:=MIN((COUNT(ORDER(2),0)),60);
DDX:((((BIGORDER(1,2) - BIGORDER(2,2)) * VOL) / CAPITAL) * 100),COLOR3D ;
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DRAWTEXTABS(0,0,'大单动向');
HS:=vol/CAPITAL;
DD:=BIGORDER(1,2)-(BIGORDER(2,2));
DT:=HS*DD*100;
LR:=HS*(1-BIGORDER(1,2))*100;
LC:=HS*(1-BIGORDER(2,2))*100;
大单净买 : (DT * CAPITAL) * (amount/(v*100))/10000,LINETHICK0;
N日累计净买: SUM(大单净买,10), LINETHICK0,color00EEEE;
流通比: DT, LINETHICK0;
连红:LAST(DD>0),PRECIS0,color0000FF,LINETHICK0;
十日连红:COUNT(DD>0,10),PRECIS0,colorgray,LINETHICK0;
DDX1:EMA(DDX,A1) * A1;
DDX2:MA(DDX1,5),DOTLINE;
DDX3:MA(DDX1,10),DOTLINE;
PARTLINE(DDX3,(DDX3>ref(DDX3,1))),LINETHICK2,Coloraa00FF;
[/code]

龙听 发表于 2018-12-15 10:01

源码解析:



A1赋值:(统计0日中满足ORDER(2)的天数)和60的较小值
输出大单动向:((((BIGORDER(1,2) - BIGORDER(2,2)) * 成交量(手)) / 当前流通股本(手)) * 100),COLOR3D
CXH赋值:STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1))
DRAWTEXTABS(0,0,'大单动向')
HS赋值:成交量(手)/当前流通股本(手)
DD赋值:BIGORDER(1,2)-(BIGORDER(2,2))
DT赋值:HS*DD*100
LR赋值:HS*(1-BIGORDER(1,2))*100
LC赋值:HS*(1-BIGORDER(2,2))*100
输出大单净买 : (DT * 当前流通股本(手)) * (成交额(元)/(成交量(手)*100))/10000,线宽为0
输出N日累计净买: 大单净买的10日累和, 线宽为0,COLOR00EEEE
输出流通比: DT, 线宽为0
输出连红:从前?日到前?日持续DD>0,PRECIS0,COLOR0000FF,线宽为0
输出十日连红:统计10日中满足DD>0的天数,PRECIS0,画深灰色,线宽为0
输出DDX1:DDX的A1日指数移动平均 * A1
输出DDX2:DDX1的5日简单移动平均,DOTLINE
输出DDX3:DDX1的10日简单移动平均,DOTLINE
PARTLINE(DDX3,(DDX3>昨日DDX3)),线宽为2,COLORAA00FF

页: [1]