通达信主力潜伏吃货指标公式
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),COLOR7F00FF,LINETHICK2;
超大主力吐: IF(V4<=0,V4,0),COLOR66FF00,LINETHICK1;
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;
主力吃货线:8,COLORFF80FF,LINETHICK2,CROSSDOT;
DH:=REF(HHV(H,10),2);
DC:=REF(HHV(MAX(C,O),10),2);
XGDH:CROSS(C,DH) AND CROSS(超大主力吃,8);
XGDC:CROSS(C,DC) AND CROSS(超大主力吃,8);
STICKLINE(XGDH OR XGDC,0,8,2,0),COLOR3131FF;
倍量吃货:(XGDH OR XGDC) AND V/REF(V,1)>1.95,COLORYELLOW;
STICKLINE(倍量吃货,0,-8,5,0),COLORYELLOW;
{庄家出现}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
J1:=REVERSE(J);
AA:=REF(MA(C,1),10)>REF(MA(C,60),10);
买点:CROSS(J,J1) AND AA;
STICKLINE(买点,0,30,6,0),COLORBLUE;
STICKLINE(买点,30,60,4,0),COLORWHITE;
STICKLINE(买点,60,80,2,0),COLORYELLOW;
DRAWTEXT(买点,70,'庄家出现'),COLORRED;
{主力进出场}
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),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLORRED;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORGREEN;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
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),COLORFF00FF,NODRAW;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0),COLORFF00FF;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0 ),COLOR550055;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.6,0 ),COLOR770077;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.1,0 ),COLOR990099;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,1.5,0 ),COLORBB00BB;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,0.9,0 ),COLORDD00DD;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,0.3,0 ),COLORFF00FF;
主力出场:IF(VAR15<REF(VAR15,1),VAR15,0),COLORYELLOW,NODRAW;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,3,0 ),COLORYELLOW;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,3,0),COLOR005555;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,2.6,0),COLOR007777;
STICKLINE(VAR15<REF(VAR5,1),0,VAR15,2.1,0),COLOR009999;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,1.5,0),COLOR00BBBB;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,0.9,0),COLOR00DDDD;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,0.3,0),COLOR00FFFF;
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;
{主力潜伏}
N1:=8;
MTM:=C-REF(C,1);
ZLGJ:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORYELLOW;{N1=9}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
主力潜伏:COUNT(MACD<0,10)=10,COLORCYAN;
STICKLINE(主力潜伏,0,MACD*(-0.1),2.8,0),LINETHICK6,,COLORCYAN;
DRAWICON(主力潜伏,MACD*(-0.18),28);
DRAWICON(主力潜伏,MACD*(-0.1),26);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:8
M赋值:13
P赋值:60
S赋值:3
V1赋值:(C*2+H+L)/4*10
V2赋值:V1的13日指数移动平均-V1的34日指数移动平均
V3赋值:V2的5日指数移动平均
输出{股票指标网}
V4:2*(V2-V3)*5.5
如果V4>=0返回V4否则返回0
如果V4<=0返回V4否则返回0
V5赋值:(8日内INDEXH最高值-INDEXC)/(8日内INDEXH最高值-8日内INDEXL最低值)*8
V5的18日[1日权重]移动平均
V7赋值:(INDEXC-8日内INDEXL最低值)/(8日内INDEXH最高值-8日内INDEXL最低值)*10
V8赋值:(INDEXC*2+INDEXH+INDEXL)/4
V9赋值:V8的13日指数移动平均-V8的34日指数移动平均
VA赋值:V9的3日指数移动平均
VB赋值:(V9-VA)/2
输出
主力吃货线:8,COLORFF80FF,LINETHICK2,CROSSDOT
DH赋值:REF(10日内H最高值,2)
DC赋值:REF(10日内C和O较大值最高值,2)
输出
XGDH:C上穿DH AND 超大主力吃上穿8
输出
XGDC:C上穿DC AND 超大主力吃上穿8
当满足条件XGDH OR XGDC时,在0和8之间画柱状线
输出
倍量吃货:(XGDH OR XGDC) AND V/1日前的V>1.95,画黄色
当满足条件倍量吃货时,在0和-8之间画柱状线
{庄家出现}
RSV赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D
J1:=J的相反数
AA赋值:REF(C的1日简单移动平均,10)>REF(C的60日简单移动平均,10)
输出
买点:J上穿J1 AND AA
当满足条件买点时,在0和30之间画柱状线
当满足条件买点时,在30和60之间画柱状线
当满足条件买点时,在60和80之间画柱状线
当满足条件买点时,在70和'庄家出现'位置书写文字
{主力进出场}
VAR1:=REF((最低价+OPEN+收盘价+最高价)/4,1)
VAR2:=SMA(最低价-VAR1的绝对值,13,1)/SMA(最低价-VAR1和0较大值,10,1)
VAR3:=VAR2的10日指数移动平均
VAR4:=33日内最低价最低值
如果最低价<=VAR4返回VAR3否则返回0
输出
主力进场:IF(VAR5>1日前的VAR5,VAR5,0),画红色,NODRAW
STICKLINE(VAR5>1日前的VAR5,0,VAR5,3,0 ),画红色
STICKLINE(VAR5>1日前的VAR5,0,VAR5,3,0 ),COLOR000055
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.6,0 ),COLOR000077
STICKLINE(VAR5>1日前的VAR5,0,VAR5,2.1,0 ),COLOR000099
STICKLINE(VAR5>1日前的VAR5,0,VAR5,1.5,0 ),COLOR0000BB
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.9,0 ),COLOR0000DD
STICKLINE(VAR5>1日前的VAR5,0,VAR5,0.3,0 ),COLOR0000FF
输出
洗盘:IF(VAR5<1日前的VAR5,VAR5,0),COLORGREEN,NODRAW
STICKLINE(VAR5<1日前的VAR5,0,VAR5,3,0),COLORGREEN
STICKLINE(VAR5<1日前的VAR5,0,VAR5,3,0),COLOR005500
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.6,0),COLOR007700
STICKLINE(VAR5<1日前的VAR5,0,VAR5,2.1,0),COLOR009900
STICKLINE(VAR5<1日前的VAR5,0,VAR5,1.5,0),COLOR00BB00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.9,0),COLOR00DD00
STICKLINE(VAR5<1日前的VAR5,0,VAR5,0.3,0),COLOR00FF00
VAR12:=SMA(VAR1-H的绝对值,13,1)/SMA(VAR1-H和0较大值,10,1)
VAR13:=VAR12的10日指数移动平均
VAR14:=33日内H最高值
如果H>=VAR14返回VAR13否则返回0
输出
冲顶:IF(VAR15>1日前的VAR15,VAR15,0),COLORFF00FF,NODRAW
STICKLINE(VAR15>1日前的VAR15,0,VAR15,3,0),COLORFF00FF
STICKLINE(VAR15>1日前的VAR15,0,VAR15,3,0 ),COLOR550055
STICKLINE(VAR15>1日前的VAR15,0,VAR15,2.6,0 ),COLOR770077
STICKLINE(VAR15>1日前的VAR15,0,VAR15,2.1,0 ),COLOR990099
STICKLINE(VAR15>1日前的VAR15,0,VAR15,1.5,0 ),COLORBB00BB
STICKLINE(VAR15>1日前的VAR15,0,VAR15,0.9,0 ),COLORDD00DD
STICKLINE(VAR15>1日前的VAR15,0,VAR15,0.3,0 ),COLORFF00FF
输出
主力出场:IF(VAR15<1日前的VAR15,VAR15,0),画黄色,NODRAW
STICKLINE(VAR15<1日前的VAR15,0,VAR15,3,0 ),画黄色
STICKLINE(VAR15<1日前的VAR15,0,VAR15,3,0),COLOR005555
STICKLINE(VAR15<1日前的VAR15,0,VAR15,2.6,0),COLOR007777
STICKLINE(VAR15<1日前的VAR5,0,VAR15,2.1,0),COLOR009999
STICKLINE(VAR15<1日前的VAR15,0,VAR15,1.5,0),COLOR00BBBB
STICKLINE(VAR15<1日前的VAR15,0,VAR15,0.9,0),COLOR00DDDD
STICKLINE(VAR15<1日前的VAR15,0,VAR15,0.3,0),COLOR00FFFF
A1赋值:2日前的收盘价
A2赋值:SMA(收盘价-A1和0较大值,7,1)/SMA(收盘价-A1的绝对值,7,1)*100
如果A2<19返回19否则返回0
{主力潜伏}
N1:=8
MTM:=C-1日前的C
输出
ZLGJ:100*MTM的N1日指数移动平均,N1)/EMA(EMA(MTM的绝对值,N1),N1),画黄色
{N1=9}
DIFF:=收盘价的12日指数移动平均-收盘价的26日指数移动平均
DEA:=DIFF的9日指数移动平均
MACD:=2*(DIFF-DEA)
输出
主力潜伏:统计10日满足MACD<0的天数=10,COLORCYAN
STICKLINE(主力潜伏,0,MACD*(-0.1),2.8,0),LINETHICK6,,COLORCYAN
DRAWICON(主力潜伏,MACD*(-0.18),28)
DRAWICON(主力潜伏,MACD*(-0.1),26)