通达信主力资金冲击副图,源码指标公式
天知1: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
STICKLINE(REF(天知1,1) >天知1, 天知1,REF(天知1,1),8,1),colorcyan ;
STICKLINE(REF(天知1,1)<天知1, 天知1,REF(天知1,1),8,1), colorred;
ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,2);
M1:=EMA(ABV,12);
M2:=EMA(ABV,26);
MTM:=CLOSE-REF(CLOSE,1);
MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6));
MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12));
MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26));
mtgj:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(mtgj,9),9)/EMA(EMA(ABS(mtgj),9),9);
MAZL:=MA(ZLGJ,5);
A:=((VOL)/(CAPITAL))*(100);
S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));
Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));
X:=1;
V1:=(HIGH+OPEN+LOW+(2)*(CLOSE))/(5);
V2:=REF(V1,1);
V3:=MAX(V1-V2,0);
V4:=ABS(V1-V2);
V5:=SMA(V3,10,1);
V6:=SMA(V4,10,1);
V8:=COUNT(((V5)/(V6)<0.2),5);
V9:=COUNT((LLV(V1,10)=V1),10);
主力进出:IF((MMS>REF(MMS,1) AND ZLGJ>REF(ZLGJ,1) AND CROSS(ABV,M2) AND ABV>REF(ABV,1) AND M1>REF(M1,1) AND M2>REF(M2,1)),65,0),colorwhite,POINTDOT;
主进主轨:=ABV>M2 AND CROSS(ABV,M1) AND CROSS(ZLGJ,MAZL);
STICKLINE(主力进出 OR 主进主轨,65,0,4,1),colorwhite;
精准买卖:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND MMS>MML AND CROSS(ABV,M2);
短线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND CROSS(MMS,MML) AND ABV>REF(ABV,1);
中线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND ABV>REF(ABV,1) AND MMS>MML AND CROSS(MMM,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);
主进主买:=ABV>M2 AND ZLGJ>MAZL AND CROSS(MMS,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);
短中精:=精准买卖 OR 短线买点 OR 中线买点 OR 主进主买;
主力买卖:IF(短中精,60,0),COLORFF00FF,POINTDOT;
STICKLINE(主力买卖,60,0,4,1),COLORFF00FF;
主力轨迹:IF(ABV>M2 AND MMS>MML AND CROSS(ZLGJ,MAZL) AND ZLGJ>REF(ZLGJ,1) AND MAZL>REF(MAZL,1),55,0),COLORFFCC66,POINTDOT;
STICKLINE(主力轨迹,55,0,4,1),COLORFFCC66;
拉升在即:IF(S<X AND Y<X AND MMS>MML AND ABV>M1 AND CROSS(S,Y),50,0),coloryellow,POINTDOT;
STICKLINE(拉升在即,50,0,4,1),coloryellow;
底部构成:IF(V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND VOL>REF(VOL,1) AND ABV>M2 AND ZLGJ>MAZL,45,0),COLOR00FF00,POINTDOT;
STICKLINE(底部构成,45,0,4,1),COLOR00FF00;
ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;
HSL:=100*VOL/CAPITAL;
冲击波:IF(CROSS(ROC,16) AND HSL>3.5,40,0),COLOR0099FF,POINTDOT;
STICKLINE(冲击波,40,0,4,1),COLOR0099FF;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出天知1: 3*SMA((CLOSE-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1)-2*SMA(SMA((CLOSE-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1),3,1)
STICKLINE(1日前的天知1 >天知1, 天知1,1日前的天知1,8,1),COLORCYAN
STICKLINE(1日前的天知1<天知1, 天知1,1日前的天知1,8,1), 画红色
ABV赋值:MA(SUM(IF(CLOSE>1日前的CLOSE,成交量,IF(CLOSE<1日前的CLOSE,-成交量,0)),0)/25000,2)
M1赋值:ABV的12日指数移动平均
M2赋值:ABV的26日指数移动平均
MTM赋值:CLOSE-1日前的CLOSE
MMS赋值:((100)*(MTM的6日指数移动平均,6)))/(EMA(EMA(MTM的绝对值,6),6))
MMM赋值:((100)*(MTM的12日指数移动平均,12)))/(EMA(EMA(MTM的绝对值,12),12))
MML赋值:((100)*(MTM的26日指数移动平均,26)))/(EMA(EMA(MTM的绝对值,26),26))
MTGJ赋值:C-1日前的C
ZLGJ赋值:100*MTGJ的9日指数移动平均,9)/EMA(EMA(MTGJ的绝对值,9),9)
MAZL赋值:ZLGJ的5日简单移动平均
A赋值:((成交量)/(CAPITAL))*(100)
S赋值:((A的30日简单移动平均)/(INDEXA的10日简单移动平均))*(INDEXA的60日简单移动平均)
Y赋值:((A的120日简单移动平均)/(INDEXA的10日简单移动平均))*(INDEXA的60日简单移动平均)
X赋值:1
V1赋值:(最高价+开盘价+最低价+(2)*(CLOSE))/(5)
V2赋值:1日前的V1
V3赋值:V1-V2和0较大值
V4赋值:V1-V2的绝对值
V3的10日[1日权重]移动平均
V4的10日[1日权重]移动平均
V8赋值:COUNT(((V5)/(V6)<0.2),5)
V9赋值:COUNT((10日内V1最低值=V1),10)
输出主力进出:IF((MMS>1日前的MMS AND ZLGJ>1日前的ZLGJ AND ABV上穿M2 AND ABV>1日前的ABV AND M1>1日前的M1 AND M2>1日前的M2),65,0),画白色,POINTDOT
主进主轨赋值:ABV>M2 AND ABV上穿M1 AND ZLGJ上穿MAZL
当满足条件主力进出 OR 主进主轨时,在65和0之间画柱状线
精准买卖赋值:V8>=1 AND V9>=1 AND CLOSE>开盘价 AND 1日前的CLOSE>1日前的开盘价 AND (成交量>1日前的成交量) AND MMS>MML AND ABV上穿M2
短线买点赋值:V8>=1 AND V9>=1 AND CLOSE>开盘价 AND 1日前的CLOSE>1日前的开盘价 AND (成交量>1日前的成交量) AND MMS上穿MML AND ABV>1日前的ABV
中线买点赋值:V8>=1 AND V9>=1 AND CLOSE>开盘价 AND 1日前的CLOSE>1日前的开盘价 AND (成交量>1日前的成交量) AND ABV>1日前的ABV AND MMS>MML AND MMM上穿MML AND MMS>1日前的MMS AND MMM>1日前的MMM AND MML>1日前的MML
主进主买赋值:ABV>M2 AND ZLGJ>MAZL AND MMS上穿MML AND MMS>1日前的MMS AND MMM>1日前的MMM AND MML>1日前的MML
短中精赋值:精准买卖 OR 短线买点 OR 中线买点 OR 主进主买
如果短中精返回60否则返回0
当满足条件主力买卖时,在60和0之间画柱状线
输出主力轨迹:IF(ABV>M2 AND MMS>MML AND ZLGJ上穿MAZL AND ZLGJ>1日前的ZLGJ AND MAZL>1日前的MAZL,55,0),COLORFFCC66,POINTDOT
当满足条件主力轨迹时,在55和0之间画柱状线
输出拉升在即:IF(SMML AND ABV>M1 AND S上穿Y,50,0),COLORYEL最低价,POINTDOT
当满足条件拉升在即时,在50和0之间画柱状线
输出底部构成:IF(V8>=1 AND V9>=1 AND CLOSE>开盘价 AND 1日前的CLOSE>1日前的开盘价 AND 成交量>1日前的成交量 AND ABV>M2 AND ZLGJ>MAZL,45,0),COLOR00FF00,POINTDOT
当满足条件底部构成时,在45和0之间画柱状线
ROC赋值:(CLOSE-12日前的CLOSE)/12日前的CLOSE*100
HSL:=100*成交量/CAPITAL
输出冲击波:IF(ROC上穿16 AND HSL>3.5,40,0),COLOR0099FF,POINTDOT
当满足条件冲击波时,在40和0之间画柱状线