通达信版;千钧DDX保密指标源码
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2014-03-17 21:35:00
公式简介:
一、【千钧DDX保密*****】
指标源码:
N:=20;jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);
qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));
qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));
DDX:((qj1+qj2)-(qj3+qj4))/if(CAPITAL=0,ESTDATA(8),CAPITAL),COLOR00aaaa,LINETHICK;
DX:=ma(ddx,5)*N;
STICKLINE(DDX>0,0,DDX,8,0),COLOR000088;
STICKLINE(DDX>0,0,DDX,5,0),COLOR0000aa;
STICKLINE(DDX>0,0,DDX,3,0),COLOR0000cc;
STICKLINE(DDX>0,0,DDX,1,0),COLOR0000ee;
STICKLINE(DDX<0,0,DDX,8,0),COLOR008800;
STICKLINE(DDX<0,0,DDX,5,0),COLOR00aa00;
STICKLINE(DDX<0,0,DDX,3,0),COLOR00cc00;
STICKLINE(DDX<0,0,DDX,1,0),COLOR00ee00;
DDX1:sma(DX,3,1),COLORFFFFFF;
DDX2:sma(DDX1,3,1),COLOR00FFFF;
DDX3:wma(DDX2,5),COLORFF00FF;
预警:DDX>0 and ma(v,5)>ma(ma(v,5),5) and CROSS(DDX1,DDX2),LINETHICK;
天:=COUNT(DDX>0,5),COLORRED;
DRAWTEXT(预警,DDX*1.06,'★'),LINETHICK3,COLOR00FFFF,ALIGN0;
DRAWTEXTEX(CLOSE,1,180,0,'一周内翻红:'+NUMTOSTR(天[SYSPARAM(1)],0)+' 天'),Color00EEFF;
DRAWTEXTEX(DDX[SYSPARAM(1)]>0,1,10,0,'大单动向:'+'↑'),Color0000FF;
DRAWTEXTEX(DDX[SYSPARAM(1)]<0,1,10,0,'大单动向:'+'↓'),Color00FF00;
DRAWTEXTEX(CLOSE,1,0,900,'证券代码: '+STKLABEL+' 证券名称: '+STKNAME+''),ColorFFAA00;
[url=http://www.goodgupiao.com/gupiaogongshi/33088.html][B]通达信版;千钧DDX保密指标源码[/B][/url]