通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
DRAWTEXTABS(10,10, -- ),COLORYELLOW,linethick2;
DRAWTEXTABS(83,10, 紫色进场 ),COLORFF00FF,linethick2;
DRAWTEXTABS(140,10, 蓝色出局 ),COLORFFFF00,linethick2;
当日成交:amount*BIGORDER(1,2)/10000-amount*BIGORDER(2,2)/10000,colorWhite,linethick0;
stickline(当日成交 0,0,当日成交,5,0),colorred;
stickline(当日成交 0,当日成交,0,5,0),colorgreen;
HS:=/capital;
DD:=(BIGORDER(1,2)-BIGORDER(2,2));
DT:=HS*DD*100;
当日增减度:DT,linethick0;
当日成交:=(DT*capital)*DYNAINFO(11)/10000;
买入手数:=(capital*DT)/100;
if(当日成交 =0)then
begin
Str1:= 主力净买入: +NUMTOSTRN(当日成交,3)+ 万元,
Str2:= 净买入: +NUMTOSTRN(买入手数,0)+ 手,
Str3:= 当日增减度: +NUMTOSTRN(DT,3);
end;
if当日成交 0then
begin
Str1:= 主力净卖出: +NUMTOSTRN(当日成交,3)+ 万元,
Str2:= 净卖出: +NUMTOSTRN(买入手数,0)+ 手,
Str3:= 当日增减度: +NUMTOSTRN(DT,3);
end;
DRAWFLAGTEXT(DT =0,当日成交,Str1+str2+str3),COLORRED;
DRAWFLAGTEXT(DT 0,当日成交,Str1+str2+str3),COLORGREEN;
QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));
XVL:=(IF((CLOSE OPEN),(QJJ*(HIGH-LOW)),IF((CLOSE OPEN),(QJJ*((HIGH-OPEN)+(CLOSE-LOW))),(VOL/2)))+IF((CLOSE OPEN),(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE OPEN),(0-(QJJ*(HIGH-LOW))),(0-(VOL/2)))));
HSL:=((XVL/40)/1.15);
主买:=SUM(HSL,N1);
主卖:=EMA(主买,N3);
量柱:主买-主卖,colorWhite,linethick1;
STICKLINE((主买 =主卖),主买,主卖,8,1),COLORFF00FF,LINETHICK2;STICKLINE((主买 主卖),主买,主卖,8,1),COLORFFFF00,LINETHICK2;
DRAWICON(CROSS(量柱,0)and当日成交 150,0+2,1),ALIGN1;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
mo:=MONEY/100000000;
日成交亿:=MO,coloryellow;
日增:=MO-REF(MO,1),coloryellow;
rz1:=VOL/SHGZG*100*ABS(zdf);
换手涨幅积:rz1;
m5:MA(rz1,5);
m60:MA(ABS(rz1),60),colorligray;
m62:MA(ABS(rz1),60)*2.5,colorligray;
m63:MA(ABS(rz1),60)*5,colorligray;
STICKLINE(zdf =0,0,rz1,5,0),colorlired;
STICKLINE(zdf 0,0,rz1,5,1),colorliblue;
STICKLINE(rz1 =m5,rz1*0.9,rz1,8,0),coloryellow;
STICKLINE(VOL =MA(VOL,5),rz1*0.8,rz1*0.7,8,0),coloryellow;
STICKLINE(m5 =m60ANDzdf =0,rz1*0.6,rz1*0.5,8,0),colorred;
STICKLINE(MA(VOL,5) =MA(VOL,60)ANDzdf =0,rz1*0.4,rz1*0.3,8,0),colorred;
P1:=60;
P2:=5;
P3:=10;
REFLINE:0;
K1:=IF(CLOSE =REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
K2:=IF(CLOSE =REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
DT:=VOL*K1/(K1+K2);
KT:=VOL-DT;
买量:=SUM(DT,1);
卖量:=SUM(KT,1);
DDX:EMA(买量-卖量,5)*VOL/CAPITAL*100,COLORSTICK,LINETHICK2;
STICKLINE(DDX 0,0,DDX,3,0),COLOR000088;
STICKLINE(DDX 0,0,DDX,2.5,0),COLOR0000AA;
STICKLINE(DDX 0,0,DDX,1.5,0),COLOR0000CC;
STICKLINE(DDX 0,0,DDX,1,0),COLOR0000EE;
STICKLINE(DDX 0,0,DDX,3,0),COLOR008800;
STICKLINE(DDX 0,0,DDX,2.5,0),COLOR00AA00;
STICKLINE(DDX 0,0,DDX,1.5,0),COLOR00CC00;
STICKLINE(DDX 0,0,DDX,1,0),COLOR00EE00;
DDX1:SMA(DDX,3,1),COLORFFFFFF;
DDX2:SMA(DDX1,3,1),COLOR00FFFF;
DDX3:EMA(DDX2,5),COLORFF00FF;
预警:DDX 0ANDMA(V,5) MA(MA(V,5),5)ANDCROSS(DDX1,DDX2),LINETHICK;
天:=COUNT(DDX 0,5),COLORRED;
公式解读:
最高价=计算价 AND 收盘价 计算涨停价
公式解读:
公式编写要求:
今日封涨停板盘中又打开的公式。
公式编写方法:
H=ZTPRICE(REF(C,1),0.1)ANDC ZTPRICE(REF(C,1),0.1);