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

通达信源码:黄柱买入,轻风强势,背离王

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

1、黄柱买入,成交量类

公式介绍:
本公式是量能公式,通过成交量变化,当短期量能与中期量能形成金叉时,
具体用法:( 顶尖财经 股民学院: http://www.58188.com )
出现黄色量柱,此时可通过观察K线所处位置及均线形态
,当25日线向上,5日线回踩25日线不破或金叉可果断介入,
博取短期收益。

M1:=5;
M2:=60;
N:=15;
预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL),VOLSTICK;
MAVOL1:MA(预测量,5);
MAVOL2:MA(预测量,60);
BB:=CROSS(MAVOL1,MAVOL2);
CC:=CROSS(MAVOL2,MAVOL1);
STICKLINE(BB,0,VOL,1.5,0),COLORYELLOW;
STICKLINE(CC,0,VOL,1.5,0),COLORGREEN;
地量:=预测量<=LLV(V,15);
DRAWICON(地量,MA(预测量,60),25);
DRAWICON((MA(V,4)*4+V)/5>=MA(V,60) AND MA(V,5)<MA(V,60),预测量*1.2,1);



2、轻风强势,用来捕捉强势股启动点

公式介绍:
对均线和量的分析,找到刚启动不久的强势股。
本公式比较简单,就一个指示。出现指示代表本股比较强势股。
 
说明:
1、本公式为辅助公式,在寻股时还要根椐市场情况和公司的情况做选择。不应单纯凭技术公式进场。
2、公式是对市场的过去进行分析总结,市场的未来是多变和不可测的。使用公式时应注意市场风险。
3、本公式任何人都可免费使用,无时间限制。公式加密是为了保护知识产权。
4、本公式无未来,不会漂移。( 顶尖财经 股民学院: http://www.58188.com )
5、市场有风险,投资需谨慎。

{轻风强势}
VAR1:=EMA(CLOSE,12);
VAR2:=EMA(CLOSE,26);
VAR3:=VAR1-VAR2;
VAR4:=EMA(VOL,5);
VAR5:=VAR3<0;
VAR6:=VAR3>=0;
VAR7:=BARSLASTCOUNT(VAR6);
VAR8:=RANGE(VAR7,0,10) AND UPNDAY(VAR4,3) AND UPNDAY(VAR3,3) AND COUNT(VAR5,200)<150 AND CLOSE<LLV(LOW,50)*1.5 AND COUNT(VOL>VAR4*2,3);
STICKLINE(FILTER(VAR8,20),0,1,2,0),COLORRED;
STICKLINE(FILTER(VAR8,20),0,0.618,1,0),COLORYELLOW;




3、背离王 很经典的公式

N:=3;
A1:=FORCAST(EMA(CLOSE,5),6);
A2:=FORCAST(EMA(CLOSE,8),6);
A3:=FORCAST(EMA(CLOSE,11),6);
A4:=FORCAST(EMA(CLOSE,14),6);
A5:=FORCAST(EMA(CLOSE,17),6);
B:=A1+A2+A3+A4-4*A5;
TOWERC:=EMA(B,2);
B1:FORCAST(EMA(B,3),6),POINTDOT,COLORGREEN;
B2:FORCAST(EMA(B,4),6),POINTDOT,COLORGREEN;
B3:FORCAST(EMA(B,5),6),POINTDOT,COLORGREEN;
B4:FORCAST(EMA(B,6),6),POINTDOT,COLORGREEN;
B5:FORCAST(EMA(B,7),6),POINTDOT,COLORGREEN;
B6:FORCAST(EMA(B,8),6),POINTDOT,COLORGREEN;
B7:FORCAST(EMA(B,9),6),POINTDOT,COLORGREEN;
B8:FORCAST(EMA(B,10),6),POINTDOT,COLORGREEN;
B9:FORCAST(EMA(B,11),6),POINTDOT,COLORGREEN;
B10:FORCAST(EMA(B,12),6),POINTDOT,COLORGREEN;
B11:FORCAST(EMA(B,13),6),POINTDOT,COLORGREEN;
B12:FORCAST(EMA(B,14),6),POINTDOT,COLORGREEN;
B13:=FORCAST(EMA(B,15),6),POINTDOT,COLORGREEN;
B14:FORCAST(EMA(B,16),6),POINTDOT,COLORGREEN;
B15:FORCAST(EMA(B,17),6),POINTDOT,COLORGREEN;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),N,0),COLORRED;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),N,0),COLORGREEN;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),N,0),COLORRED;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),N,0),COLORRED;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),N,0),COLORRED;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),N,0),COLORGREEN;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),N,0),COLORGREEN;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),N,0),COLORGREEN;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),N,0),COLORGREEN;
BSUM:=(B1+B2+B3+B4+B5+B6+B7+B8+B9+B10+B11+B12+B13+B14+B15)/15;
BMAX1:=MAX(MAX(B1,B2),MAX(B3,B4));
BMAX2:=MAX(MAX(B5,B6),MAX(B7,B8));
BMAX3:=MAX(MAX(B9,B10),MAX(B11,B12));
BMAX4:=MAX(MAX(B13,B14),B15);
BMAX:=MAX(MAX(BMAX1,BMAX2),MAX(BMAX3,BMAX4));
BMIN1:=MIN(MIN(B1,B2),MIN(B3,B4));
BMIN2:=MIN(MIN(B5,B6),MIN(B7,B8));
BMIN3:=MIN(MIN(B9,B10),MIN(B11,B12));
BMIN4:=MIN(MIN(B13,B14),B15);
BMIN:=MIN(MIN(BMIN1,BMIN2),MIN(BMIN3,BMIN4));
BAX:=ABS(BMAX-(TOWERC+REF(TOWERC,1))/2);
BAN:=ABS(BMIN-(TOWERC+REF(TOWERC,1))/2);
BFIN:=IF(BAX>BAN,BMAX,BMIN);
C1:=BFIN-BMAX=0 AND REF(BFIN,1)-REF(BMIN,1)=0;
C2:=BFIN-BMIN=0 AND REF(BFIN,1)-REF(BMAX,1)=0;
BFINAL:=IF(C1 OR C2,(BMAX+BMIN)/2,BFIN),NODRAW;
HC:TOWERC-REF(TOWERC,1),NODRAW;
KC:HC-REF(HC,1),NODRAW;
绿柱变大:IF(HC<=0 AND KC<=0,BFINAL,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK3;
绿柱变小:IF(HC<0 AND KC>0,BFINAL,DRAWNULL),POINTDOT,COLORMAGENTA,LINETHICK3;
红柱变大:IF(HC>0 AND KC>=0,BFINAL,DRAWNULL),POINTDOT,COLORRED,LINETHICK3;
红柱变小:IF(HC>0 AND KC<0,BFINAL,DRAWNULL),POINTDOT,COLORLIBLUE,LINETHICK3;
DRAWTEXT_FIX(ISLASTBAR AND HC<=0 AND KC<0,1,0,1,'绿柱变大 '),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR AND HC<=0 AND KC>0,1,0,1,'绿柱变小 '),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR AND HC>=0 AND KC>0,1,0,1,'红柱变大 '),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR AND HC>=0 AND KC<0,1,0,1,'红柱变小 '),COLORWHITE;
SEL:=REF(KC,4)>0 AND REF(KC,3)>0 AND REF(KC,2)<0 AND REF(KC,1)<0 AND KC<0;
BU:=REF(KC,4)<0 AND REF(KC,3)<0 AND REF(KC,2)>0 AND REF(KC,1)>0 AND KC>0;
DRAWTEXT(SEL,MAX(TOWERC,REF(TOWERC,1)),'降'),COLORWHITE;
DRAWTEXT(BU,MIN(TOWERC,REF(TOWERC,1)),'升'),COLORWHITE;

上一篇:通达信源码:NXZ-MACD,狂赚主图指标,牛起爆动

下一篇:通达信源码:潜龙突击,多空买卖趋势,短线进出筹码