通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
r1:=ZDMR[-1];
r2:=BDMR[-1];
r3:=-ZDMC[-1];
r4:=-BDMC[-1];
a:=(r1+r2);
b:=(r3+r4);
d:=a+b;
e:=a-b;
N:=1;
N1:=5;
STICKLINE(CREF(C,1),0,e,8,1),colorred;
STICKLINE(C=REF(C,1),0,e,8,1),colorfff000;
STICKLINE(d0,-d,0,8,0),color00ff00;
STICKLINE(d0,d,0,8,0),color00ffff;
STICKLINE(C,a,0,4,0),coloraa00bb;
STICKLINE(C,a,0,3,0),colorcc22bb;
STICKLINE(C,a,0,2,0),colordd33bb;
STICKLINE(C,a,0,1,0),coloree44bb;
STICKLINE(C,a,r1,4,0),color2266aa;
STICKLINE(C,a,r1,3,0),color3377cc;
STICKLINE(C,a,r1,2,0),color4488dd;
STICKLINE(C,a,r1,1,0),color9955ee;
STICKLINE(C,e,a,4,0),coloraaaaaa;
STICKLINE(C,e,a,3,0),colorbbbbbb;
STICKLINE(C,e,a,2,0),colorcccccc;
STICKLINE(C,e,a,1,0),colordddddd;
STICKLINE(C,e,a-r4,4,0),Colorff6600;
STICKLINE(C,e,a-r4,3,0),Colorff7722;
STICKLINE(C,e,a-r4,2,0),Colorff8833;
STICKLINE(C,e,a-r4,1,0),Colorff9955;
mv5:MA(e,5);
mv10:MA(e,10);
mv35:MA(e,35);
mv135:MA(e,135);
a3:=SUM(a,n)/1000000;
b3:=SUM(b,n)/1000000;
VOL1=SUM(VOL,n)/1000000;
y:=a3-b3;
z:=y/VOL1*100;
TOSTRING(n,0)+天买入+TOSTRING(a3,1)+万手,卖出+TOSTRING(b3,1)+万手.净买入+TOSTRING(y,1)+万手.占总成交+TOSTRING(z,1)+%.;
TOSTRING(n1,0)+天机构买入+TOSTRING(a3,1)+万手,卖出+TOSTRING(b3,1)+万手.净买入+TOSTRING(y,1)+万手.占总成交+TOSTRING(z,1)+%.;
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
大户能量:(大户-均量); 操盘:STICKLINE(大户能量=0 AND 大户能量=REF(大户能量,1),0,大户能量,4,0),colorred;
减仓:STICKLINE(大户能量=0 AND 大户能量 REF(大户能量,1),0,大户能量,4,0),colorred;
反弹:STICKLINE(大户能量0 AND 大户能量=REF(大户能量,1),0,大户能量,4,0),colorgreen;
寻底:STICKLINE(大户能量0 AND 大户能量 REF(大户能量,1),0,大户能量,4,0),colorred,POINTDOT;
0,POINTDOT,colorwhite;
中户能量:(中户-均量);
0,POINTDOT,colorwhite;
散户能量:(散户-均量),LINETHICK2;
0,colorwhite,LINETHICK3;
主力能量:(主力-均量),LINETHICK3;
0,POINTDOT,colorwhite,LINETHICK3;
A:=IF((CLOSE126.32),(AMOUNT/100000),VOL);
主力:MA(A,4),LINETHICK0,color00FFFF;
游资:MA(A,8),LINETHICK0,color00FF00;
大户:MA(A,16),LINETHICK0,color0000FF;
散户:MA(A,32),LINETHICK0,colorFFFF00;
主力比例:CEILING(((主力/(((主力+游资)+大户)+散户))*100)),LINETHICK0,color00FFFF;
游资比例:CEILING(((游资/(((主力+游资)+大户)+散户))*100)),LINETHICK0,color00FF00;
大户比例:CEILING(((大户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,color0000FF;
散户比例:CEILING(((散户/(((主力+游资)+大户)+散户))*100)),LINETHICK0,colorFFFF00;
警戒线:MA(A,180),colorFF00FF;
STICKLINE((主力0),0,主力,8,0),color0000FF;
STICKLINE((主力0),0,主力,7.8,0),color0018FF;
STICKLINE((主力0),0,主力,7.5,0),color001BFF;
STICKLINE((主力0),0,主力,7.3,0),color0022FF;
STICKLINE((主力0),0,主力,7,0),color0035FF;
STICKLINE((主力0),0,主力,6.8,0),color0041FF;
STICKLINE((主力0),0,主力,6.5,0),color0050FF;
STICKLINE((主力0),0,主力,6.3,0),color0059FF;
STICKLINE((主力0),0,主力,6,0),color0062FF;
STICKLINE((主力0),0,主力,5.7,0),color006CFF;
STICKLINE((主力0),0,主力,5.5,0),color007AFF;
STICKLINE((主力0),0,主力,5.3,0),color0080FF;
STICKLINE((主力0),0,主力,5,0),color0089FF;
STICKLINE((主力0),0,主力,4.5,0),color0095FF;
STICKLINE((主力0),0,主力,3.5,0),color009CFF;
STICKLINE((主力0),0,主力,3,0),color00ABFF;
STICKLINE((主力0),0,主力,2.5,0),color00C0FF;
STICKLINE((主力0),0,主力,1.5,0),color00D1FF;
STICKLINE((主力0),0,主力,1,0),color00EAFF;
STICKLINE((主力0),0,主力,0.7,0),color00FFFF;
STICKLINE((游资0),0,游资,8,0),color006800;
STICKLINE((游资0),0,游资,7.8,0),color007F00;
STICKLINE((游资0),0,游资,7,5),color008B00;
STICKLINE((游资0),0,游资,7,3),color008B00;
STICKLINE((游资0),0,游资,7,0),color009000;
STICKLINE((游资0),0,游资,6.8,0),color009500;
STICKLINE((游资0),0,游资,6.5,0),color009C00;
STICKLINE((游资0),0,游资,6.3,0),color00A300;
STICKLINE((游资0),0,游资,6,0),color00AB00;
STICKLINE((游资0),0,游资,5.7,0),color00AF00;
STICKLINE((游资0),0,游资,5.5,0),color00B900;
STICKLINE((游资0),0,游资,5.3,0),color00C000;
STICKLINE((游资0),0,游资,5,0),color00C100;
STICKLINE((游资0),0,游资,4.5,0),color00CA00;
STICKLINE((游资0),0,游资,3.5,0),color00D300;
STICKLINE((游资0),0,游资,3,0),color00DB00;
STICKLINE((游资0),0,游资,2.5,0),color00EA00;
STICKLINE((游资0),0,游资,1.5,0),color00FF00;
STICKLINE((大户0),0,大户,8,0),color102088;
STICKLINE((大户0),0,大户,7,0),color102099;
STICKLINE((大户0),0,大户,6,0),color1020AA;
STICKLINE((大户0),0,大户,5,0),color1020BB;
STICKLINE((大户0),0,大户,4,0),color1020CC;
STICKLINE((大户0),0,大户,3,0),color1020DD;
STICKLINE((大户0),0,大户,2,0),color1020EE;
STICKLINE((大户0),0,大户,1,0),color1020FF;
STICKLINE((大户0),0,大户,8,0),color102088;
STICKLINE((大户0),0,大户,7,0),color102099;
STICKLINE((大户0),0,大户,6,0),color1020AA;
STICKLINE((大户0),0,大户,5,0),color1020BB;
STICKLINE((大户0),0,大户,4,0),color1020CC;
STICKLINE((大户0),0,大户,3,0),color1020DD;
STICKLINE((大户0),0,大户,2,0),color1020EE;
STICKLINE((大户0),0,大户,1,0),color1020FF;
STICKLINE((散户0),0,散户,8,0),colorFF7700;
STICKLINE((散户0),0,散户,7,0),colorFF8800;
STICKLINE((散户0),0,散户,6,0),colorFF9900;
STICKLINE((散户0),0,散户,5,0),colorFFAA00;
STICKLINE((散户0),0,散户,4,0),colorFFBB00;
STICKLINE((散户0),0,散户,3,0),colorFFCC00;
STICKLINE((散户0),0,散户,2,0),colorFFDD00;
STICKLINE((散户0),0,散户,1,0),colorFFEE00;
STICKLINE((散户0),0,散户,8,0),colorFF7700;
STICKLINE((散户0),0,散户,7,0),colorFF8800;
STICKLINE((散户0),0,散户,6,0),colorFF9900;
STICKLINE((散户0),0,散户,5,0),colorFFAA00;
STICKLINE((散户0),0,散户,4,0),colorFFBB00;
STICKLINE((散户0),0,散户,3,0),colorFFCC00;
STICKLINE((散户0),0,散户,2,0),colorFFDD00;
P:=5;
R:=(AMOUNT/1000000);
R1:=IF(CREF(C,1),R,IF(CR3:=SUM(R1,13);
资金监控K:(R3*OPEN),POINTDOT,colorFFCC00;
资金监控S:(R3*CLOSE),POINTDOT,colorFFCC00;
资金平衡位:MA(资金监控S,8),colorred;
平衡A:MA(资金平衡位,5),colorwhite;
STICKLINE((资金监控S=REF(资金监控S,1)),REF(资金监控S,1),资金监控S,6,0),color0000FF;
STICKLINE((资金监控SREF(资金监控S,1)),REF(资金监控S,1),资金监控S,6,0),color00FF00;
MA(资金监控S,P),color00FFFF;