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

通达信源码:金叉介入,反转追击,趋势稳盈

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

1、金叉介入,抄底类公式

{金叉介入}

N:=9;
M:=REF(N,1);
XXX:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(XXX,3,1);
D:=SMA(K,3,1);
叉1:=CROSS(K,D);
AA:=MACD.DIF;
AB:=MACD.DEA;
M1:=REF(HHV(H,150),1);
M2:=REF(LLV(L,M),1);
叉2:=CROSS(AA,AB);
金叉:=叉1 AND 叉2;
STICKLINE(金叉,0,5,4,0),COLORYELLOW;
STICKLINE(金叉,0,10,3,0),COLORYELLOW;
STICKLINE(金叉,0,19,1,0),COLORYELLOW;
STICKLINE(金叉,0,22,0,0),COLORYELLOW;
DRAWTEXT(金叉,18,'金叉介入点'),COLOR00FFFF;



2、反转追击

{公式名称: 反转追击}

VAR1:=MA(AMOUNT,5)/MA(VOL,5)/100;
VAR2:=(VAR1-MA(AMOUNT,125)/MA(VOL,125)/100)/VAR1;
VAR3:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,3);
反转追击短线:CROSS((-5),VAR3) AND VAR2<(-0.15) AND VAR2>(-0.25),NODRAW,COLORWHITE;
VAR4:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR5:=EMA(VAR4,9);
VAR6:=2*(VAR4-VAR5);
VAR7:=BARSLAST(REF(CROSS(VAR4,VAR5),1));
VAR8:=REF(CLOSE,VAR7+1)>CLOSE AND REF(VAR4,VAR7+1)<VAR4 AND CROSS(VAR4,VAR5) AND VAR5<0;
VAR9:=FILTER(VAR8>0,5);
反转追击中线:CROSS(VAR4,VAR5) AND VAR4<(-0.25),NODRAW,COLORYELLOW;
反转追击长线:VAR9,NODRAW,COLORLIMAGENTA;
STICKLINE(反转追击短线,0,1,6,0),COLORWHITE;
STICKLINE(反转追击中线,0,2,6,0),COLORYELLOW;
STICKLINE(反转追击长线,0,3,6,0),COLORRED;
NOTEXT连续信号:COUNT(反转追击短线 OR 反转追击中线 OR 反转追击长线,10)>=3,NODRAW;



3、趋势稳盈,有支撑压力线和钻石买点

{公式名称: 趋势稳盈

参数数量: 1
参数1: 年线开关, 最小: 0, 最大: 1, 缺省: 0}
 
VAR1:=IF(年线开关,1,DRAWNULL);
操盘线:EMA(SLOPE(CLOSE,22)*20+CLOSE,55),COLORYELLOW,LINETHICK2;
上升:IF(CLOSE>操盘线,操盘线,DRAWNULL),COLORRED,LINETHICK2;
下降:IF(CLOSE<操盘线,操盘线,DRAWNULL),COLORBLUE,LINETHICK2;
压力:MA(REF(HHV(CLOSE,30),1),2),DOTLINE,COLORGREEN;
支撑:MA(REF(LLV(CLOSE,30),1),2),DOTLINE,COLORRED;
支压域:(压力-支撑)/支撑*100,NODRAW;
MA5:MA(CLOSE,5),COLORCCCCCC;
MA8:MA(CLOSE,10),COLOR00BBBB;
大势线:MA(CLOSE,120),COLOR1188FF,LINETHICK2;
年线:MA(CLOSE,250)*VAR1,COLORMAGENTA,LINETHICK2;
NOTEXT主升:CROSS(CLOSE,压力) AND CLOSE/REF(CLOSE,1)*100>103 AND CLOSE>OPEN AND 支压域<15,NODRAW;
钻石底:CROSS(CLOSE,支撑) AND COUNT(REF(CLOSE<支撑,1),3)=3 AND CLOSE!=REF(CLOSE,1),NODRAW,COLORRED;
DRAWICON(钻石底,LOW*0.98,26);
{ 顶尖 财经 股票学院: http://www.58188.com }
VAR2:=(压力-支撑)/支撑;
VAR3:=CROSS(CLOSE,压力) AND CLOSE/REF(CLOSE,1)-1>0.05;
NOTEXTF放量:VOL>MA(VOL,10)*2 AND CLOSE/REF(CLOSE,1)-1>0.05,NODRAW;

上一篇:通达信源码:钱龙3号,趋势为王,MACD顶底优化版

下一篇:通达信公式下载:佛光闪现,竞价打板专用,鳄鱼嘴涨停板