通达信波段买点主图指标 源码

[复制链接]
查看244 | 回复0 | 2021-8-28 01:00:48 | 显示全部楼层 |阅读模式

以下是通达信波段买点主图指标 源码(无源码的请下载附件导入)

通达信波段买点主图指标 源码 贴图

DRAWGBK(C>O,RGB(10,0,0),RGB(0,0,0),1,2,1);
 DRAWKLINE(H,O,L,C);
安全:=MA(C,30),CIRCLEDOT,COLORFF00FF;
当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
龙头线:EXPMEMA(当日成本,13),LINETHICK2,COLORMAGENTA;
慢牛线:=EXPMEMA(当日成本,51),LINETHICK2,COLORMAGENTA;
 IF(龙头线<=REF(龙头线,2),龙头线,DRAWNULL),COLORGREEN,LINETHICK2;
波段高:(XMA(XMA(HIGH,30),30)-XMA(XMA(LOW,30),30))*2+XMA(XMA(HIGH,30),30),COLORWHITE,LINETHICK1;

波段低:XMA(XMA(LOW,30),30)-(XMA(XMA(HIGH,30),30)-XMA(XMA(LOW,30),30))*1.5,COLORWHITE,LINETHICK1;

俞言友情:(波段高+波段低)/2,DOTLINE,COLOR909090;

IF(波段高>=REF(波段高,1),波段高,DRAWNULL),COLORRED,LINETHICK2;

IF(波段低>=REF(波段低,1),波段低,DRAWNULL),COLORRED,LINETHICK2;

IF(波段高<=REF(波段高,1),波段高,DRAWNULL),COLOR008800,LINETHICK3;

IF(波段低<=REF(波段低,1),波段低,DRAWNULL),COLOR008800,LINETHICK3;

STICKLINE(REF(LOW,1)<波段低 AND CLOSE>波段低 AND 波段高>=REF(波段高,1) AND CLOSE>OPEN,CLOSE,OPEN,(-1),0),COLORYELLOW;

STICKLINE(REF(HIGH,1)>=波段高 AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN,CLOSE,OPEN,(-1),0),COLORFF6600;

DRAWTEXT_FIX(ISLASTBAR,0,0,0,FGBLOCK);

DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,GNBLOCK);

DRAWICON(REF(LOW,1)<波段低 AND CLOSE>波段低 AND 波段高>=REF(波段高,1) AND CLOSE>OPEN,LOW,5);

DRAWICON(REF(HIGH,1)>=波段高 AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN,HIGH,6);


 BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1));
 XA_1:=IF(DATE<=1200823,1,0);
 STICKLINE((C=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1,O,C,2.7,0),COLORFF00FF;
 STICKLINE((C=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1,O,C,2.7,0),COLOR80FF00;
 STICKLINE((C>=ZTPRICE(REF(C,1),BK) AND C=H),C,O,2.7,0),COLORFF00FF;
 STICKLINE((C<=DTPRICE(REF(C,1),BK) AND C=L),C,O,2.7,0),COLOR80FF00;
实三一:O+(C-O)*2/3,NODRAW;
实三二:O+(C-O)/3,NODRAW;
实二一:(O+C)*0.5,NODRAW;
 STICKLINE(实二一,实二一,实二一,2,0),COLORBLUE;
 {跳空高开画蓝色}
TK:=C>O AND O>=REF(MAX(C,O),1)+0.01 OR O>=REF(C,1)+0.01 ;
 STICKLINE(TK, O,(C-O)*0.01+O,4,0),COLORYELLOW;

AAA:=(3*C+H+L+O)/6;
 VAR1AA:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)
 +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
波段线:=VAR1AA,COLORWHITE,LINETHICK1;


 X_A1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
逃命顶:=X_A1>20 AND FILTER(X_A1<REF(X_A1,1),5),COLORYELLOW;
 DRAWTEXT(FILTER(逃命顶,3),MAX(C,O),'逃命顶')COLORCYAN;


2122388241.png

2122388241.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则