通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
公式解读:
公式解读:
N1:=5;N2:=55;
总手:;
MA5:MA(VOL,N1),coloryellow,LINETHICK2;
MA55:MA(VOL,N2),colormagenta,LINETHICK2;
DRAWICON(CROSS(MA5,MA55),V,2);
SELECTCROSS(MA5,MA55);
:(VOL*(TRADETIME+1))/(FIVEDAYVOL/5*(FROMOPEN+1));
换手:VOL/CAPITAL*100;
换5:MA(换手,5);
换和10:SUM(换手,10);
换20:=MA(换手,20);
多空量:(MA(V,6)+MA(V,13)+MA(V,26))/3;
上限:多空量*1.382;
下限:多空量*0.618;
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE OPEN,量*(HIGH-LOW),IF(CLOSE OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:买量+卖量,LINETHICK0;
净量:买量-卖量,LINETHICK0;
MAA:=MA(CLOSE,2);
STICKLINE(C MAA,总量,1,4,1),COLOR00FFFF;
STICKLINE(C MAA,总量,1,4,1),COLORFF00FF;
STICKLINE(净量 0,1,总量,4,1),COLORFFFF00;
STICKLINE(C MAAAND净量 0,净量,1,4,1),COLOR0000FF;
STICKLINE(V =2*REF(V,1),1,总量,4,1),COLOR0000FF;
STICKLINE(总量 1,总量,0,3,0),COLORFF3300;
STICKLINE(总量 1,总量,0,2,0),COLORFF7700;
STICKLINE(总量 1,总量,0,1,0),COLORFFAA00;
STICKLINE(总量 1,总量,0,0.1,0),COLORFFFF00;
STICKLINE(买量 0,0,买量,3,0),COLOR000099;
STICKLINE(买量 0,0,买量,2,0),COLOR0000AA;
STICKLINE(买量 0,0,买量,1,0),COLOR0000FF;
STICKLINE(买量 0,0,买量,0.1,0),COLORCC00FF;
STICKLINE(净量 0,0,净量,3,0),COLOR0033FF;
STICKLINE(净量 0,0,净量,2,0),COLOR0077FF;
STICKLINE(净量 0,0,净量,1,0),COLOR00BBFF;
STICKLINE(净量 0,0,净量,0.1,0),COLOR00FFFF;
STICKLINE(净量 0,1,净量,4,1),COLORFFFF00;
STICKLINE(净量 0,0,净量,3,0),COLOR005500;
STICKLINE(净量 0,0,净量,2,0),COLOR009900;
STICKLINE(净量 0,0,净量,1,0),COLOR00BB00;
STICKLINE(净量 0,0,净量,0.1,0),COLOR00FF00;
STICKLINE(C MAAAND净量 0,净量,0,3,0),COLOR777777;
STICKLINE(C MAAAND净量 0,净量,0,2,0),COLOR999999;
STICKLINE(C MAAAND净量 0,净量,0,1,0),COLORBBBBBB;
STICKLINE(C MAAAND净量 0,净量,0,0.1,0),COLORFFFFFF;
P1:=5;
ma135:=MA(vol,135);
TJ1:=VOL=HHV(VOL,10)ANDVOL 1.7*REF(VOL,1)ANDC =REF(C,1)ANDC =OANDVOL =MA135*3.5;
LJL:=FILTER(TJ1,3);
TJ3:=IF(BArslAst(LJL)=1ANDCLOSE REF(LOW,3),1,0);
ST:=TJ3=1;
CL:=FILTER(ST,3);
STICKLINE(C,REF(L,BARSLAST(CL)),REF(L,BARSLAST(CL)),2,0),COLORYELLOW;
STICKLINE(CLOSE,REF(L,BARSLAST(LJL)),REF(L,BARSLAST(LJL)),2,0),COLORCYAN;
STICKLINE(LJL,OPEN,CLOSE,1,0),COLORYELLOW;
DRAWTEXT(LJL,L*0.99, 支撑 ),COLORF00FF0;
JJJ:=IF(DYNAINFO(8) 0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5) 0.01||DYNAINFO(6) 0.01);
JJJT:=IF(DDD,1,(JJJ (DYNAINFO(5)+0.01) amp; amp;JJJ (DYNAINFO(6)-0.01)));
cyc1:IF(JJJT,0.01*expma(AMOUNT,P1)/EXPMA(VOL,P1),EMA((HIGH+LOW+CLOSE)/3,P1));
【手】:VOL,NODRAW,VOLSTICK;
额【亿】:AMOUNT/100000000,NODRAW;
流通:CAPITAL/1000000,NODRAW;
成交流通比:AMOUNT/CAPITAL/100,NODRAW;
涨家数:INDEXADV,COLOR0000EE,NODRAW;
跌家数:INDEXDEC,COLOR00EE00,NODRAW;
成交:INDEXV,COLOR00EEEE,NODRAW;
A1:=Ema(C,12)-EMA(C,25);
A2:=EMA(A1,6);
★主力:(A2 =0)*A2,COLORWHITE,LINETHICK0;
stICKLINE(A2 =0,A2,0,5,0),COLORWHITE;
STICKLINE(A2 0,A2,0,5,0),COLORD4FF7F;
STICKLINE(A1 0,A1,0,5,0),COLORB00058;
STICKLINE(A1 =0,A1,0,5,0),COLORRED;
VAR8:=vol 2*MA(VOL,30);
VAR9:= .ADX (12,6);
VARA:= DMI.ADXR (12,6);
VARB:=CLOSE MA(CLOSE,30)ANDCLOSE MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30) REF(MA(CLOSE,30),1);
VARD:=BArslAST(crOSS(MA(CLOSE,5),MA(CLOSE,10))) BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARF:=TROUGHBARS(3,15,1)
VAR10:=EMA(CLOSE,30) REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
★:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;
0,COLORRED;
STICKLINE(FILTER(VARF=1,5)AND★机构 -10,50,0,15,1),COLORYELLOW;
STICKLINE(FILTER(VARF=1,5),86,0,8,0),COLORRED;
DRAWTEXT(FILTER(VARF=1,3),76, ★◆黄金柱◆ ),COLORYELLOW;
STICKLINE(★机构 -10,0,★机构,0.85,0),COLORGREEN;
STICKLINE(★机构 10,0,★机构,0.95,0),COLORYELLOW;
★低点:CROSS(,11)*80,COLORBLUE;
DRAWTEXT(★低点,39, ★低点 ),COLOR66FFCC;
VAR6:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR7:=SMA(Abs(VAR6-H),13,1)/SMA(MAX(VAR6-H,0),10,1);
VAR0:=EMA(IF(H =VAR9,VAR8,0),3);
★主出场:IF(VAR0 REF(VAR0,1),-VAR0+100,100),COLORGREEN;
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),COLORGREEN;
VAR4:=LLV(LOW,33),COLORWHITE;
VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3);
★主进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED;
HL10:=WINNER(C/1.1)*V;
STICKLINE(((C/1.1)*V),HL10,0,0.1,0),COLOR00DD00;
HL20:=WINNER(C/1.2)*V;
STICKLINE(((C/1.2)*V),HL20,0,0.1,0)COLOR00DDDD;
HL30:=WINNER(C/1.3)*V;
STICKLINE(((C/1.3)*V),HL30,0,0.1,1),COLORDD0000;
公式解读:
输出XG:当前流通股本(手)/1000000 1