通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信主力散户进出指标公式
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,3,0),COLORWHITE;
A10:=CROSS(控盘,0);
无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
开始控盘:IF(A10,5,0),LINETHICK3,COLORRED;
STICKLINE(控盘>REF(控盘,1)AND控盘>0,控盘,0,3,0),COLORRED;
有庄控盘:IF(控盘>REF(控盘,1)AND控盘>0,控盘,0),COLORRED,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2>50ANDCOST(85)0,控盘,0,3,0),COLORFF00FF;
高度控盘:IF(VAR2>50ANDCOST(85)0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘0,控盘,0,3,1),COLOR00FF00;
主力出货:IF(控盘0,控盘,0),COLOR00FF00,NODRAW;
VAR1:=REF(LOW,1);
VAR2:=(SMA(ABS(LOW-VAR1),13,1))/(SMA(MAX(LOW-VAR1,0),13,1))*4;
VAR3:=EMA(VAR2,13);
VAR4:=LLV(LOW,34);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
VAR6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S
MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S
MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR8:=VAR6<ref(var7,1)andvol>REF(VOL,1)ANDCLOSE>REF(CLOSE,1);
STICKLINE(VAR8ANDCOUNT(VAR8,18)=1,0,18,8,0),COLORAA00BB;{粉色住}
STICKLINE(VAR8ANDCOUNT(VAR8,18)=1,0,18,8,0),COLORBB11BB;
STICKLINE(VAR8ANDCOUNT(VAR8,18)=1,0,18,5,0),COLORCC22BB;
STICKLINE(VAR8ANDCOUNT(VAR8,18)=1,0,18,3,0),COLORDD33BB;
STICKLINE(VAR8ANDCOUNT(VAR8,18)=1,0,18,1,0),COLOREE44BB;
DRAWTEXT(VAR8ANDCOUNT(VAR8,18)=1,16,'●↙大资金进场'),COLOR0099FF;
DRAWTEXT(VAR8ANDCOUNT(VAR8,18)=1,12,'●↙择机买入'),COLOR0033FF;
DRAWTEXT(VAR8ANDCOUNT(VAR8,18)=1,8,'●↙多数会
'),COLORFFFFAA;
涨
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
主力出场:IF(VAR5>REF(VAR5,1),0,VAR5),COLORRED,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),VAR5,0,3,0),COLORRED;
回调:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORGREEN;
VAR12:=SMA(ABS(VAR1-H),13,1)/SMA(MAX(VAR1-H,0),10,1);
VAR13:=EMA(VAR12,10);
VAR14:=HHV(H,33);
VAR15:=EMA(IF(H>=VAR14,VAR13,0),3);
主力进场:IF(VAR15<REF(VAR15,1),VAR15,0),COLORYELLOW,POINTDOT,LINETHICK0;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,3,0),COLORYELLOW;
冲顶:IF(VAR15>REF(VAR15,1),VAR15,0),COLORFF00FF,POINTDOT,LINETHICK0;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0),COLORFF00FF;
A1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;
波段参与点:IF(A2<19,19,0)COLORWHITE;
VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);
金山:EMA(IF(L<=LLV(L,30),VARC,0),3),COLOR808000,LINETHICK2;
二、通达信主力资金散户走势线指标
M:=60;
N:=30;
散户线:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力线:EMA(J,6),COLORYELLOW;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸筹:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORMAGENTA;
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;
AA6:=SMA(AA3,21,8);
买关注:STICKLINE(走势-AA6<-65,0,7,15,1);
DRAWICON(FILTER(J>REF(J,1)AND走势>=REF(走势,1)AND走势<25,5),走势,1);
卖关注:STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;
DRAWICON(FILTER(J<REF(J,1)AND走势<=ref(走势,1)andj>85,5),J,2);
A1:=V*C;
B1:=SUM(A1,1)/SUM(V,1);
B2:=EMA(B1,12);
资金:=(EMA((B1-B2)*100/B1,3)+3)*18;
A:=SUM((C-REF(C,1)),0);
B:=SUM(V,0);
VAR0:=(A-MA(A,12))/(STD(A,12));
V1:=(B-MA(B,12))/(STD(B,12));
CC:=SUM(VAR0/V1*100,2);
主力:(EMA(CC,2)+EMA(CC,16.18)+资金)*25;
散户:=EMA(主力,3);
DRAWBAND(主力,RGB(100,200,50),0,RGB(00,100,200));
DRAWBAND(主力,RGB(155,50,10),散户,RGB(0,50,150));
资金趋势:EMA(主力,16.18)-22,COLORYELLOW;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:(主力-均量),NODRAW;
操盘:STICKLINE(主力能量>=0AND主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;
减仓:STICKLINE(主力能量>=0AND主力能量<REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;
反弹:STICKLINE(主力能量<0and主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORGREEN;
寻底:STICKLINE(主力能量<0AND主力能量<REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),'主力'),COLORRED;
大户量能:
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
大户能量:(大户-均量),NODRAW;
操盘1:STICKLINE(大户能量>=0AND大户能量>=REF(大户能量,1),3,3+大户能量,1,0),COLORRED;
减仓1:STICKLINE(大户能量>=0AND大户能量<REF(大户能量,1),3,3+大户能量,1,0),COLORRED;
反弹1:STICKLINE(大户能量<0and大户能量>=REF(大户能量,1),3,3+大户能量,1,0),COLORGREEN;
寻底1:STICKLINE(大户能量<0AND大户能量<REF(大户能量,1),3,3+大户能量,1,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),'大户'),COLORYELLOW;
中户量能:
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
中户能量:(中户-均量),NODRAW;
操盘2:STICKLINE(中户能量>=0AND中户能量>=REF(中户能量,1),1.5,1.5+中户能
量,1,0),COLORRED;
减仓2:STICKLINE(中户能量>=0AND中户能量<REF(中户能量,1),1.5,1.5+中户能
量,1,0),COLORRED;
反弹2:STICKLINE(中户能量<0and中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORGREEN;
寻底2:STICKLINE(中户能量<0AND中户能量<REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),'中户'),COLORMAGENTA;
散户量能:
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
散户能量:(散户-均量),NODRAW;
操盘3:STICKLINE(散户能量>=0AND散户能量>=REF(散户能量,1),0,散户能量,1,0),COLORRED;
减仓3:STICKLINE(散户能量>=0AND散户能量<REF(散户能量,1),0,散户能量,1,0),COLORRED;
反弹3:STICKLINE(散户能量<0and散户能量>=REF(散户能量,1),0,散户能量,1,0),COLORGREEN;
寻底3:STICKLINE(散户能量<0AND散户能量<REF(散户能量,1),0,散户能量,1,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),'散户'),COLORGREEN;
[源码注释]通达信公式动态翻译结果
BIAS1赋值:(收盘价/收盘价的6日简单移动平均-1)*100
BIAS2赋值:(收盘价/收盘价的12日简单移动平均-1)*100
BIAS3赋值:(收盘价/收盘价的24日简单移动平均-1)*100
AA1赋值:((成交额(元)的5日简单移动平均/成交量(手)的5日简单移动平均-成交额(元)的110日简单移动平均/成交量(手)的110日简单移动平均)/(成交额(元)的5日简单移动平均/成交量(手)的5日简单移动平均))<-0.273
当满足条件AA1ANDBIAS1<=-7ANDBIAS2<=-11ANDBIAS3<=-14时,在1和33位置之间画柱状线,宽度为1,0不为0则画空心柱.,画红色
推荐阅读:通达信主力资金指标公式
VAR2:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);
VAR3:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);
VAR4:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);
VAR5:=(((VAR2+(2*VAR3))+(3*VAR4))/6);
VAR6:=MA(VAR5,3);
开始控盘:=STICKLINE((VAR6<=(0-10)),0,(0-20),,0),COLOR00AAFF;
STICKLINE((VAR6<=(0-10)),0,(0-20),,0),COLOR0044FF;
STICKLINE((VAR6<=(0-10)),0,(0-20),,0),COLOR0088FF;
STICKLINE((VAR6<=(0-10)),0,(0-20),3,0),COLOR00AAFF;
VAR1:=EMA(EMA(CLOSE,3),1);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,,0),COLORFFAA00;
STICKLINE(控盘<0,控盘,0,
STICKLINE(控盘<0,控盘,0,,0),COLORFF8800;
STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;
主力出货:0,COLORFFAA00;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,,0),COLOR000088;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,,0),COLOR0000AA;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,,0),COLOR0000CC;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,1,0),COLOR0000EE;
主力吸货:0,COLOR0000FF;
STICKLINE(控盘0,控盘,0,,0),COLOR008800;
STICKLINE(控盘0,控盘,0,,0),COLOR00AA00;
STICKLINE(控盘0,控盘,0,,0),COLOR00CC00;
STICKLINE(控盘0,控盘,0,1,0),COLOR00EE00;
STICKLINE(DDX<0,0,DDX,,0),COLOR008800;
STICKLINE(DDX<0,0,DDX,,0),COLOR00AA00;
STICKLINE(DDX<0,0,DDX,,0),COLOR00CC00;
STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;
对倒出货洗盘:0,COLOR00FF00;
黄色底部吸货:0,COLORYELLOW;
DRAWTEXT(CROSS(控盘,0),0-3,'买。追'),COLORFF00FF;
DRAWTEXT(CROSS(0,控盘),0-0,'卖'),COLORGREEN;
DATA:=5;
{多头买入}DRAWICON(ZIG(3,DATA)>REF(ZIG(3,DATA),1)
ANDREF(ZIG(3,DATA),1)<=REF(ZIG(3,DATA),2)
ANDREF(ZIG(3,DATA),2)<=REF(ZIG(3,DATA),3),L*,1);
{多头卖出}DRAWICON(ZIG(3,DATA)<REF(ZIG(3,DATA),1)
ANDREF(ZIG(3,DATA),1)>=REF(ZIG(3,DATA),2)
ANDREF(ZIG(3,DATA),2)>=REF(ZIG(3,DATA),3),H*,2);
N:=8;:M:=13;P:=60;S:=3;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
{主力开始出:IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;}
主力开始进:IF(V4>=0,V4,0){,COLORFF00FF,LINETHICK2};
{V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大资金进场:IF(VB>=0,VB,0),COLORRED,LINETHICK2;
大资金撤走:IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;};
JE:=VOL;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
主买:=(QJ0*(JJ-MIN(CLOSE,OPEN)));
主卖:=(QJ0*(MIN(OPEN,CLOSE)-LOW));
TMP:=主买-主卖;
主⼒活跃度:(主买+主卖)*10000/(2*FINANCE(7)),NODRAW;
STICKLINE(TMP0,0,主⼒活跃度,2,0),COLORLIRED;
STICKLINE(TMP0,0,主⼒活跃度,2,0),COLORLIGREEN;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSEOPEN,AA*(HIGH-LOW),IF(CLOSEOPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
卖量:=IF(CLOSEOPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSEOPEN,0-AA*(HIGH-LOW),0-
VOL/2)),LINETHICK0,COLORCYAN;
主⼒净流⼊:MA(买量+卖量/2,3)*AMO/V/100000000,COLORYELLOW,LINETHICK1;
评论(0)