当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:捕捞季节优化版,天马顶底,机构持续加仓进场

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、捕捞季节优化版,增加主力吸筹升级,加密

优化的地方是在原捕捞季节的基础上新加了主力吸筹,可以更好把握波浪。
使用方法提醒:
若在股票的下跌的过程中,没有出现吸筹,那么最好还是等等,有可能会再次下跌。
具体规律一目了然,大家自己根据自己的操作风格自己判断就好。( 顶尖财经 股民学院: http://www.58188.com )

{公式名称: 新编捕捞季节
公式描述: 
无参数
公式类型: 技术指标公式-未知
画线方法: 副图
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
 
参数精灵:无
用法注释:无
公式源码:}
X_1:=(2*CLOSE+HIGH+LOW)/3;
X_2:=EMA(X_1,3);
X_3:=EMA(X_2,3);
X_4:=EMA(X_3,3);
X_5:=(X_4-REF(X_4,1))/REF(X_4,1)*100;
STICKLINE(X_5>=0,X_5,0,2,0),COLORRED;
STICKLINE(X_5<0,X_5,0,2,0),COLORGREEN;
X_6:=AMOUNT/VOL/100;
X_7:=MA(X_6,13);
X_8:=EMA(VOL,13);
X_9:=EMA(AMOUNT,13);
X_10:=X_9/X_8/100;
X_11:=(CLOSE-X_10)/X_10*100;
X_12:=EMA(VOL/CAPITAL*100,13);
X_13:=50;
STICKLINE(X_12>6.1 AND X_11>5,2,0,2,0),COLORGREEN;
STICKLINE(X_12>3.8 AND X_11>5,1.5,0,2,0),COLORYELLOW;
STICKLINE(X_12>2.1 AND X_11>5,1,0,2,0),COLORCYAN;
STICKLINE(X_12>1.8 AND X_11>5,0.5,0,2,0),COLORBLUE;
XYS1:MA(X_5,1);
XYS2:MA(X_5,2);
X_14:=REF(LOW,1);
X_15:=SMA(ABS(LOW-X_14),3,1)/SMA(MAX(LOW-X_14,0),3,1)*10;
X_16:=EMA(IF(CLOSE*1.3,X_15*10,X_15/10),3);
X_17:=LLV(LOW,30);
X_18:=HHV(X_16,30);
X_19:=IF(MA(CLOSE,58),1,0);
X_20:=EMA(IF(LOW<=X_17,(X_16+X_18*2)/10,0),3)/618*X_19;
X_21:=IF(X_20>20,5,X_20);
吸筹:IF(X_21>(-24),X_21,0),NODRAW,COLORMAGENTA;
STICKLINE(X_21>(-24),0,X_21,1,1),COLORMAGENTA;





2、天马顶底,判断顶底趋势

天马顶底公式参考了一个非常不错的操盘手软件后制作的,能兼顾趋势和顶底的公式,可以从大方向是一眼看出股票短中长期的大体走势
公式用法:
白色曲线是短期线,波动大,会伴随黄线上下波动,强势将引导黄线向白线方向走,弱势白线会依附黄线震荡。
黄线曲线是中期线,是最经常参考的公式,所以加粗了,用以判断中期形态走势,( 顶尖财经 股民学院: http://www.58188.com )
红线曲线是长期线,从大格局讲,只做红线从底部向上走的股票
 


N:=34;
B:= 100*(CLOSE-HHV(HIGH,14))/(HHV(HIGH,14)-LLV(LOW,14));
D:= EMA(100*(CLOSE-HHV(HIGH,34))/(HHV(HIGH,34)-LLV(LOW,34)),4);
A:= MA(100*(CLOSE-HHV(HIGH,N))/(HHV(HIGH,N)-LLV(LOW,N)),19);
短期线: B+100,COLOR888888;
中期线: D+100,COLORYELLOW,LINETHICK2;
长期线: A+100,COLORRED;
见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线);
顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线 AND 短期线<长期线+4;
顶部:=FILTER(顶部区域,4);
底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ;
STICKLINE(顶部,99,103,20,1),COLORRED,LINETHICK2;
STICKLINE( 底部区域,-4,0,22,0),COLORGREEN;
低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线 AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线 OR REF( 短期线,1)<1 );
STICKLINE( 低位金叉,0,5,11,0),COLORRED;




3、机构持续加仓进场,组合多个公式信号多

看看例子如:妖股-泉峰汽车603982 这个股票
时间从2019年9月26日至2020年4月27日,这段时间连续出加仓信号,值得关注
关注精选股( 顶尖财经 股民学院: http://www.58188.com )

 {机构进场加仓}

AA:=WINNER(CLOSE+CLOSE*15/100)*100;
BB:=WINNER(CLOSE+CLOSE*0/100)*100;
CC:=AA-BB;
DD:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100;
EE:=CC<3 AND DD<0.5 AND OPEN<>LOW;
A1:=DYNAINFO(6);
A2:=IF(LOW>A1,0,IF(HIGH<A1,1,(A1-LOW+0.01)/(HIGH-LOW+0.01)));
A3:=VOL/WINNER(LOW);
A4:=REF(HHV(CLOSE,120),1);
A5:=REF(LLV(CLOSE,120),1);
A6:=100*(CLOSE-A5)/(A4-A5);
A7:=A2>0 OR A2=1;
A8:=A7 AND A3/REF(A3,3)>=3 AND A6<80;
A9:=REF(A8,1) OR REF(A8,2) OR REF(A8,3) OR REF(A8,4);
A10:=A8 AND A9;
A11:=IF(FILTER(A8,3),5,0);
A12:=IF(FILTER(A10,3) OR EE,10,0);
进场日:IF(A11,1,0),LINETHICK0;
STICKLINE(A12,100,15,5,0),COLORFF00FF;
加仓日:IF(A12,1,0),LINETHICK0;
STICKLINE(A12,100,15,5,0),COLORFF00FF;
STICKLINE(A11,50,5,5,0),COLORFF7700;
STICKLINE(A11,50,5,4.5,0),COLORFF8800;
STICKLINE(A11,50,5,4,0),COLORFF9900;
STICKLINE(A11,50,5,3.5,0),COLORFFAA00;
STICKLINE(A11,50,5,3,0),COLORFFBB00;
STICKLINE(A11,50,5,2.5,0),COLORFFCC00;
STICKLINE(A11,50,5,2,0),COLORFFDD00;
STICKLINE(A11,50,5,1,0),COLORFFEE00;
STICKLINE(A12,100,15,4.5,0),COLOR102099;
STICKLINE(A12,100,15,4,0),COLOR1020AA;
STICKLINE(A12,100,15,3.5,0),COLOR1020BB;
STICKLINE(A12,100,15,3,0),COLOR1020CC;
STICKLINE(A12,100,15,2.5,0),COLOR1020DD;
STICKLINE(A12,100,15,2,0),COLOR1020EE; 
STICKLINE(A12,100,15,1,0),COLOR1020FF; 
DRAWTEXT(A11,48,'进场'),COLORYELLOW; 
DRAWTEXT(A12,77,'加仓'),COLORWHITE;
{持仓线}
VAR1:=IF(YEAR>=2993 AND MONTH>=1,0,1);
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,30)*VAR1;
VAR6:=HHV(VAR4,30)*VAR1;
VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
VAR9:=IF(VAR8>100,100,VAR8)*VAR1;
吸筹:IF((VAR9>-150),VAR9,0),DRAWNULL,COLORMAGENTA;
STICKLINE(VAR9>-150,0,VAR9,6,1), , COLORMAGENTA;
持筹线: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100*VAR1, , COLORGREEN;
抄底: IF(CROSS(持筹线,-24),1,0), , COLORRED;
STICKLINE(CROSS(持筹线,-24),100,0,6,0), , COLORGREEN;
先知: (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100*VAR1, , COLORYELLOW;
{可能放量拉升: 0*VAR1, , COLORWHITE;}
启动:(CROSS(ZIG(3,14),REF(ZIG(3,14),1))),COLORRED,LINETHICK0;
顶部:(CROSS(REF(ZIG(3,14),1),ZIG(3,14))),COLORGREEN,LINETHICK0;
 DRAWICON(CROSS(ZIG(3,14),REF(ZIG(3,14),1)),-15,34), COLORRED;
 DRAWICON(CROSS(REF(ZIG(3,14),1),ZIG(3,14)),82,35), COLORCYAN;
{大单异动}
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
XG:=(FILTER((VAR4AA>90),45)),COLORYELLOW;
异动:XG;
STICKLINE(XG,90,0,2.5,0),COLORRED    ;
STICKLINE(XG,90,0,2,0),COLORYELLOW   ;
STICKLINE(XG,50,0,1,0),COLORMAGENTA  ;
DRAWTEXT(XG,50,'大单异动'),COLORYELLOW ;
{追板}
AZ:=IF(YEAR >= 2020,0,1);
AX:=EMA((EMA(C * V,3) / EMA(V,3) + EMA(C * V,6) / EMA(V,6) + EMA(C * V,12) / EMA(V,12) + EMA(C * V,24) / EMA(V,24)) / 4,13);
AC:=1.06 * AX * AZ;
AV:=(C - REF(C,1)) / REF(C,1) * 100;
大妖:FILTER(CROSS((EMA(C,5) * 7 + EMA(C,10) * 3) / 10,MA(H,30) * (1 + 13 / 100)),5) ;
STICKLINE(大妖,80,0,2,0),COLORRED;  
{牛妖指标}
X_1:=EMA(CLOSE,2)-EMA(CLOSE,89);
X_2:=EMA(X_1,30);
X_3:=2*(X_1-X_2)*9.8;
X_4:=POW(X_3,3)*0.1+POW(X_3,2);
X_5:=IF(X_3>0.015,X_4,0)/28;
X_6:=MA(CLOSE,5);
X_7:=MA(CLOSE,10);
X_8:=MA(CLOSE,20);
X_9:=X_8>X_7 AND X_8>X_6;
X_10:=X_9 AND CROSS(CLOSE,X_8) AND CLOSE/REF(CLOSE,1)>1.02;
牛:=X_10,DRAWNULL;
X_11:=X_9 AND CROSS(CLOSE,X_8) AND CLOSE/REF(CLOSE,1)>1.09;
妖:X_11;
STICKLINE(X_11,0,50,9,0),COLORGREEN;
STICKLINE(X_11,0,60,7,0),COLORFF0033;
STICKLINE(X_11,0,70,6,0),COLORFF0066;
STICKLINE(X_11,0,80,5,0),COLORFF0099;
STICKLINE(X_11,0,90,3,0),COLORFF00CC;
STICKLINE(X_11,0,95,1.5,0),COLOR0099FF;
STICKLINE(X_11,0,95,0.6,0),COLORRED;
{STICKLINE(X_10,0,95,0.6,0),COLORBLUE;}
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
操盘:=3*VAR300-2*VAR400;
全仓:CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;
STICKLINE(全仓,50,5,5,0),COLORYELLOW;
DRAWTEXT(全仓,25,'全仓'),COLORRED;
{起攀}
VVAR3:=(C-LLV(L,125))/(HHV(H,125)-LLV(L,125))*100;
VVAR4:=SMA(VVAR3,72,1);
VVAR5:=SMA(VVAR4,34,1);
VVAR6:=(2*C+H+L)/4;
VVAR7:=LLV(L,27);
VVAR8:=HHV(H,27);
攀登:=(EMA((VVAR6-VVAR7)/(VVAR8-VVAR7)*100,13)-15)*1.6;
金山:=EMA(0.618*REF(攀登,1)+0.382*攀登,3);
起步:IF(CROSS(攀登,金山) AND 金山<30,1,0),COLORRED;
均五升:=(MA(C,5)-REF(MA(C,5),1))>=0;
均十升:=(MA(C,10)-REF(MA(C,10),1))>=0;
中线趋势:=3*VVAR4-2*VVAR5;
中线趋势升:=(中线趋势-REF(中线趋势,1))>=0;
运动员:=IF(攀登>=金山 AND 均五升 AND 均十升 AND 中线趋势升 AND 金山<35,1,0);
起攀:IF(运动员=1 AND COUNT(运动员=1,5)=1,1,0),COLORFF9999,LINETHICK1;
DRAWICON(起步,20,23);
DRAWICON(起攀,20,30);
{火鸟出击}
AM1:=C/REF(C,1)>1.095 AND C=H;
H1:=(REF(C,1)/REF(C,2)<0.96) OR (REF(O,1)/REF(C,1)>1.05);
H2:=C/REF(C,1)>1.041 AND C>REF(O,1);
XGH1:=H1 AND H2;
XGY:=XGH1;
火鸟:COUNT(REF(AM1,3),10) AND XGY;
DRAWTEXT(火鸟,10,'★'),COLORRED;
{绝密买点}
KM1:=C/REF(C,1)>1.095 AND C=H;
DM1:=C/REF(C,1)>1.041 AND L<MA(C,5) AND C>MA(C,5) AND L<MA(C,10) AND C>MA(C,10) AND L<MA(C,20) AND C>MA(C,20) 
AND ((L<MA(C,60)AND C>MA(C,60)) OR (L<MA(C,120)AND C>MA(C,120)));
绝密:COUNT(REF(KM1,3),10) AND DM1;
DRAWTEXT(绝密,8,'★'),COLORWHITE;
{超牛}
涨跌:=REF(C,1);
涨停:=IF(((((C - 涨跌) * 100) / 涨跌) >= (10 - ((0.01 * 100) / 涨跌))),1,0);
DIF:=(EMA(C,12) - EMA(C,26));
DEA:=EMA(DIF,9);
MACD:=((DIF - DEA) * 2);
VARN2:=(CLOSE * VOL);
VARN3:=EMA((((((EMA(VAR2,3) / EMA(VOL,3)) + (EMA(VAR2,6) / EMA(VOL,6))) + (EMA(VAR2,12) / EMA(VOL,12))) + (EMA(VAR2,24) / EMA(VOL,24))) / 4),13);
VARN4:=EMA(CLOSE,9);
飞狐线:=(MA(CLOSE,25) + ((MA(CLOSE,25) * 20) / 100));
强势线:=(MA(CLOSE,25) + ((MA(CLOSE,25) * 6) / 100));
支撑线:=((((MA(CLOSE,3) + MA(CLOSE,6)) + MA(CLOSE,12)) + MA(CLOSE,24)) / 4);
压力线:=EMA((VARN4 * 1.14),5);
盈损线:=(LLV(REF(LOW,1),2) + ((HHV(REF(HIGH,1),2) - LLV(REF(LOW,1),2)) / 2));
QD:=(((C > 强势线) AND (C > 支撑线)) AND (C > 盈损线));
小妖:=((COUNT(QD,10) = 1) AND QD);
XYJJ:=BARSLAST(小妖);
JS:=CROSS(C,压力线);
妖狐:=((COUNT(JS,XYJJ) <= 1) AND JS);
HX1:=((REF(妖狐,1) AND (O > 压力线)) AND (C > 压力线));
HX2:=((REF(妖狐,1) AND CROSS(C,飞狐线)) AND (C > 压力线));
狐仙前世:=(小妖 AND 妖狐);
狐仙金身:=(HX1 OR HX2);
妖狐王:=((((REF(涨停,1) AND (O > 压力线)) AND (O > REF(H,1))) AND (REF(H,1) < REF(压力线,1))) AND (L >= 压力线));
超牛:((狐仙前世 OR 狐仙金身) OR 妖狐王);
DRAWTEXT(超牛,5,'★'),COLORYELLOW;
{看量出击}
XL_1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
XL_2:=MA(XL_1,3);
XL_3:=REF(LOW,5)<REF(XL_2,5) OR REF(LOW,4)<REF(XL_2,4) OR REF(LOW,3)<REF(XL_2,3) OR REF(LOW,2)<REF(XL_2,2) OR REF(LOW,1)<REF(XL_2,1);
XL_4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
XL_5:=XL_4>9.85 AND NOT(CLOSE=OPEN);
XL_6:=SUM(XL_5,5)<2 AND XL_5 AND CLOSE>XL_2 AND XL_3;
XL_7:=REF(CLOSE,BARSLAST(XL_6));
XL_8:=XL_5 AND LOW<XL_2*1.05;
量击:XL_6 AND XL_8;
DRAWTEXT(量击,3,'★'),COLORBLUE;
{暴雪}
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
V4:=SMA(V3,2,1);
V5:=SMA(V4,2,1);
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
慧雪:IF((V7 AND COUNT(V7,3)=1),30,0),COLORWHITE,LINETHICK2;
DRAWTEXT(慧雪,35,'慧雪'),COLORCYAN,LINETHICK2;
{金钻爆点附图}
{金钻爆点副图}
AAA:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
AAA1:=REF(EMA(AAA,3),1);
AAA2:="KDJ.J"<50 AND C>REF(C,3);
JA:=(C-MA(C,30))/MA(C,30)*100;
JA1:=CROSS(0,(C-MA(C,5))/MA(C,5)*100);
JA2:=JA<REF(JA,1);
JA3:=MA(C,10)>REF(MA(C,10),1);
JA4:=FILTER(JA1 AND JA2 AND JA3,10);
JA5:=(2*CLOSE+HIGH+LOW)/4;
JA6:=MA(EMA((JA5-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5),1);
B3:=REF(JA4,2) AND CROSS(C,EMA(CLOSE,5)) ;
B4:=JA6>REF(JA6,1) AND REF(JA6,1)<REF(JA6,2);
AB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
AB1:=IF(CLOSE>OPEN,AB*(HIGH-LOW),IF(CLOSE<OPEN,AB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
AB2:=IF(CLOSE>OPEN,AB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AB*(HIGH-LOW),VOL/2));
AB3:="KDJ.J"<20 ;
AB4:= AB1>AB2*6  AND AB3;
建仓: AB4*80 ,COLORYELLOW,LINETHICK1;
出击:(CROSS(CLOSE,AAA1) AND AAA2)*86,COLORGREEN,LINETHICK1 ;
拐点:(B3 AND B4)*95,COLORWHITE,LINETHICK1 ;
爆点:((建仓 AND 出击)  OR (建仓 AND 拐点))*96,COLORRED,LINETHICK2;
DRAWTEXT(FILTER(建仓,4),12,'建仓'),COLORYELLOW;
DRAWTEXT(FILTER(爆点,4),88,'爆点'),COLORRED;
DRAWTEXT(FILTER(出击,4),44,'出击'),COLORGREEN;
DRAWTEXT(FILTER(拐点,4),96,'拐点'),COLORWHITE;

上一篇:通达信源码:散户阶段底超跌反弹,坐地炮,K线组合

下一篇:通达信源码:主力监控,黑马大神抓大牛起爆点,卖在高点