缠论选股一二三买点 通达信选股/副图指标 贴图

2018-11-12 10:41:00来源:本站整理浏览:5616

根据黑马决策的缠论指标写的

缠论选股一二三买点 通达信选股/副图指标 贴图

缠论选股一二三买点 通达信选股/副图指标 贴图 点击下载缠论选股一二三买点 通达信选股/副图指标 贴图 



顶底分型:=1;
MACHINETIME1:=IF(MACHINETIME>0,MACHINETIME,TDXDLL5(92,H,L,C)*10000);

{满足以上条件在左上角显示内容}
VAR1:=TDXDLL5(1,H,L,C);
VAR2:=TDXDLL5(2,H,L,笔类型);
VAR3:=TDXDLL5(3,H,L,笔类型);
VAR4:=TDXDLL5(4,H,L,C);
ZSKSLAST:=TDXDLL5(8,H,L,C);
ZSJSLAST:=TDXDLL5(7,H,L,C);
ZSZD:=TDXDLL5(9,H,L,C);
ZSZG:=TDXDLL5(10,H,L,C);
ZSZZ:=TDXDLL5(11,H,L,0);
BILAST:=TDXDLL5(13,H,L,C);
DUANLAST:=TDXDLL5(12,H,L,C);

VAR22:=TDXDLL5(22,H,L,1);
VAR23:=TDXDLL5(23,H,L,1);
VAR24:=TDXDLL5(24,H,L,1);
VAR25:=TDXDLL5(25,H,L,1);
ZSLXZSJSLAST:=TDXDLL5(26,H,L,1);
ZSLXZSKSLAST:=TDXDLL5(27,H,L,1);
ZSLXZSZD:=TDXDLL5(28,H,L,1);
ZSLXZSZG:=TDXDLL5(29,H,L,1);
VAR30:=TDXDLL5(30,H,L,1);


VIP:=1;
SHORT:=12;LONG:=26;MID1:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID1);
MACD:=(DIF-DEA)*2,COLORSTICK;
笔尾日:=BARSLAST(ZSJSLAST=1);
中枢UP:=REF(ZSZG,笔尾日),COLORGREEN;
中枢MID:=ZSZZ,COLORWHITE,NODRAW;
中枢DN:=REF(ZSZD,笔尾日),COLORGREEN;
笔涨日:=BARSLAST(VAR2=-1),NODRAW;
笔跌日:=BARSLAST(VAR2=1),NODRAW;
有效红柱:=IF(笔涨日<笔跌日 AND MACD>0,MACD,0);
有效绿柱:=IF(笔涨日>笔跌日 AND MACD<0,MACD,0);
红面积:=SUM(有效红柱,笔涨日),NODRAW;
绿面积:=SUM(有效绿柱,笔跌日),NODRAW;
LAST底:=IF(VAR2=-1,REF(L,REF(笔涨日,1)+1),DRAWNULL),NODRAW;
LAST顶:=IF(VAR2=1,REF(H,REF(笔跌日,1)+1),DRAWNULL),NODRAW;
创新低:=VAR2=-1 AND L<LAST底,NODRAW;
创新高:=VAR2=1 AND H>LAST顶,NODRAW;
创新低日:=BARSLAST(创新低=1),NODRAW;
创新高日:=BARSLAST(创新高=1),NODRAW;
LD底背:=L<REF(L,REF(创新低日,1)+1) AND 创新低,COLORMAGENTA,NODRAW;
X底背:=L<REF(L,REF(创新低日,1)+1) AND DIF>REF(DIF,REF(创新低日,1)+1) AND 创新低,COLORMAGENTA,NODRAW;
Z底背:=L<REF(L,REF(创新低日,1)+1) AND MACD>REF(MACD,REF(创新低日,1)+1) AND 创新低,COLORMAGENTA,NODRAW;
M底背:=L<REF(L,REF(创新低日,1)+1) AND 绿面积>REF(绿面积,REF(创新低日,1)+1) AND 创新低,COLORMAGENTA,NODRAW;
大底背:=X底背 OR Z底背 OR M底背;
LD顶背:=H>REF(H,REF(创新高日,1)+1) AND 创新高,COLORCYAN,NODRAW;
X顶背:=H>REF(H,REF(创新高日,1)+1) AND DIF<REF(DIF,REF(创新高日,1)+1) AND 创新高,COLORCYAN,NODRAW;
Z顶背:=H>REF(H,REF(创新高日,1)+1) AND MACD<REF(MACD,REF(创新高日,1)+1) AND 创新高,COLORCYAN,NODRAW;
M顶背:=H>REF(H,REF(创新高日,1)+1) AND 红面积<REF(红面积,REF(创新高日,1)+1) AND 创新高,COLORCYAN,NODRAW;
大顶背:=X顶背 OR Z顶背 OR M顶背;
X小底背:=大底背=0 AND L<REF(L,REF(笔涨日,1)+1) AND DIF>REF(DIF,REF(笔涨日,1)+1) AND 创新低,COLORMAGENTA,NODRAW;
Z小底背:=大底背=0 AND L<REF(L,REF(笔涨日,1)+1) AND MACD>REF(MACD,REF(笔涨日,1)+1) AND 创新低,COLORMAGENTA,NODRAW;
M小底背:=大底背=0 AND L<REF(L,REF(笔涨日,1)+1) AND 绿面积>REF(绿面积,REF(笔涨日,1)+1) AND 创新低,COLORMAGENTA,NODRAW;
X小顶背:=大顶背=0 AND H>REF(H,REF(笔跌日,1)+1) AND DIF<REF(DIF,REF(笔跌日,1)+1) AND 创新高,COLORCYAN,NODRAW;
Z小顶背:=大顶背=0 AND H>REF(H,REF(笔跌日,1)+1) AND MACD<REF(MACD,REF(笔跌日,1)+1) AND 创新高,COLORCYAN,NODRAW;
M小顶背:=大顶背=0 AND H>REF(H,REF(笔跌日,1)+1) AND 红面积<REF(红面积,REF(笔跌日,1)+1) AND 创新高,COLORCYAN,NODRAW;
大底背数:=X底背+Z底背+M底背,COLORMAGENTA,NODRAW;
大顶背数:=X顶背+Z顶背+M顶背,COLORCYAN,NODRAW;
小底背数:=X小底背+Z小底背+M小底背,COLORMAGENTA,NODRAW;
小顶背数:=X小顶背+Z小顶背+M小顶背,COLORCYAN,NODRAW;

三买:VAR2=-1 AND L>中枢UP AND SUM(VAR2=-1 AND L>中枢UP,笔尾日)=1,COLORMAGENTA;
三卖:=VAR2=1 AND H<中枢DN AND SUM(VAR2=1 AND H<中枢DN,笔尾日)=1,COLORCYAN;
三卖日:=BARSLAST(三卖),NODRAW;
三买日:=BARSLAST(三买),NODRAW;

一买:三卖日<三买日 AND 创新低 AND 大底背数>0,COLORWHITE;
二买:三卖日<三买日 AND VAR2=-1 AND L>LAST底 AND REF(创新低日,1)=REF(笔涨日,1),COLORRED;

STICKLINE(一买,0,100,1,0),LINETHICK5,COLORWHITE;
STICKLINE(二买,0,100,1,0),LINETHICK5,COLORRED;
STICKLINE(三买,0,100,1,0),LINETHICK5,COLORMAGENTA;
一卖:=三卖日>三买日 AND 创新高 AND 大顶背数>0,COLORCYAN;
二卖:=三卖日>三买日 AND VAR2=1 AND H<LAST顶 AND REF(创新高日,1)=REF(笔跌日,1),COLORCYAN;
 


 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式