通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
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:=VAR6vol>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;
公式解读:
[源码注释]通达信公式动态公式解读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;