您的位置 首页 组合选股

通达信主力突破主图指标公式


{指标介绍:
1.暗红色区块是主升持股区域(操作或持股);蓝色区块是反弹区域(观望或做反弹);深蓝色区域是持币区域(持币);
2.减仓和预警卖是减仓信号,当两信号共振时更有效,要清仓;
3.主图中的其他信号可以作为辅助使用;
4.原则上k线站上(突破)上箱顶黄线时准备介入;(主升段肯定是在黄线上的)
5.主图白线不破黄线就是强势(暗红色块区);只做白线在红绿线(二线合一)上方的行情;} DRAWGBK(CLOSE>0,RGB(0,108,108),RGB(88,0,0),0,5,0);
所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('【行业】',HYBLOCK),STRCAT('【地域】',DYBLOCK)),STRCAT('【概念】',GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,所属板块),COLORLIRED;
DRAWTEXT_FIX(1,0.5,0.04,0,FGBLOCK),COLORWHITE;
X_1:=EMA(CLOSE,3);
X_2:=EMA(CLOSE,26);
X_3:=X_1-X_2;
牵牛线:EMA(EMA(EMA(CLOSE,3),3),3)+X_3,COLORWHITE;
寻牛线:MA(MA(LOW,3),3),COLORMAGENTA;
上箱顶1:=HHV(寻牛线,60);
DRAWBAND(牵牛线,RGB(85,0,0),上箱顶1,RGB(45,0,140));
DRAWBAND(寻牛线,RGB(0,65,45),上箱顶1,RGB(0,65,155));{廷进波段彩色区块}
上箱顶:HHV(MA(MA(LOW,3),3),60)LINETHICK3,COLORYELLOW;
下箱底:LLV(寻牛线,20)LINETHICK3,COLORFFBB00;
短牵牛:=EMA(CLOSE,6)-EMA(CLOSE,13);
长牵牛:=EMA(短牵牛,20);
MB1:=HHV(短牵牛,20);
MB2:=LLV(短牵牛,20);
箱顶:=REF(MB1,1);
箱底:=REF(MB2,1);
{2020.8.23之后涨跌停显示}
前5天:=BARSCOUNT(C)>5;{上市大于五天,前五天不限制幅度}
ZC:=REF(C,1);
ZF:=(H-ZC+0.01)/ZC*100;
DF:=(ZC-L+0.01)/ZC*100;
涨5:=ZF>=5 AND 前5天 AND C=H;
跌5:=DF>=5 AND 前5天 AND C=L;
涨10:=ZF>=10 AND 前5天 AND C=H;
跌10:=DF>=10 AND 前5天 AND C=L;
涨20:=ZF>=20 AND 前5天 AND C=H;
跌20:=DF>=20 AND 前5天 AND C=L;
涨停板:=IF(INBLOCK('科创板'),涨20,IF(INBLOCK('创业板') AND DATE>1200823,涨20,IF(INBLOCK('ST板块'),涨5,涨10)));
跌停板:=IF(INBLOCK('科创板'),跌20,IF(INBLOCK('创业板') AND DATE>1200823,跌20,IF(INBLOCK('ST板块'),跌5,跌10)));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(涨停板,OPEN,CLOSE,2.6,0),COLOR0000E5;
STICKLINE(涨停板,OPEN,CLOSE,2.4,0),COLOR335555;
STICKLINE(涨停板,OPEN,CLOSE,1.8,0),COLOR338888;
STICKLINE(涨停板,OPEN,CLOSE,1.2,0),COLOR33AAAA;
STICKLINE(涨停板,OPEN,CLOSE,0.6,0),COLOR33CCCC;
STICKLINE(涨停板,OPEN,CLOSE,0.1,0),COLOR33EEEE;
STICKLINE(跌停板,C,O,2.5,0),COLOR009900;
STICKLINE(跌停板,C,O,1.5,0),COLOR00BB00;
STICKLINE(跌停板,C,O,0.8,0),COLOR00DD00;
STICKLINE(跌停板,C,O,0.1,0),COLOR00FF00;{涨跌停k线}
{3个卖出信号}
X_7:=MA(CLOSE,1);
X_8:=SMA(SMA(SMA(X_7,2,1),2,1),2,1),NODRAW;
X_9:=MA(X_8,3),NODRAW;
{必须卖信号}
操作:=MA((L+H+C)/3,5);
起飞加速线:HHV(操作,60)DOTLINE,COLORLIRED;
DIFF1:=EMA(CLOSE,6)-EMA(CLOSE,13) COLORWHITE,LINETHICK2;
DEA1:=EMA(DIFF1,5) COLORYELLOW,LINETHICK1;
macd1:=(DIFF1-DEA1)*2;
必须卖:=MACD1<0 AND crOSS(DEA1,DIFF1) AND CROSS(起飞加速线,C) AND 起飞加速线=REF(起飞加速线,1);
DRAWTEXT(必须卖,H,'★必须卖'),COLORGREEN;
{预警卖}
VAR06:=REF(CLOSE,1);
VAR07:=SMA(MAX(CLOSE-VAR06,0),6,1)/SMA(Abs(CLOSE-VAR06),6,1)*100;
预警卖:=CROSS(84,VAR07) AND 起飞加速线=REF(起飞加速线,1) AND C<REF(L,1);
预警卖1:=CROSS(X_9,X_8) AND C<起飞加速线 AND C<REF(L,1);
DRAWTEXT(CROSS(84,VAR07) AND 起飞加速线=REF(起飞加速线,1) AND C<REF(L,1),H*1.02,' 预警卖'),COLORGREEN;
DRAWICON(CROSS(84,VAR07) AND 起飞加速线=REF(起飞加速线,1) AND C<REF(L,1),H*1.02,43);
DRAWTEXT(CROSS(X_9,X_8) AND C<起飞加速线 AND C<REF(L,1),H*1.02,' 预警卖'),COLORGREEN;
DRAWICON(CROSS(X_9,X_8) AND C<起飞加速线 AND C<REF(L,1),L*0.99,43);
{逃顶}
多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1);
天线:=78.89;
{STICKLINE(CROSS(天线,多方趋势) AND C<起飞加速线 AND CROSS(X_9,X_8),H*1.015,H*1.00,5,0),COLORLIBLUE;}{K线上的标记}
DRAWTEXT(CROSS(天线,多方趋势) AND C<起飞加速线 AND CROSS(X_9,X_8),H*1.06,'↙⊙逃顶'),COLORLIBLUE;
{绿彩带死叉信号}
减仓:=X_8<REF(X_8,1) AND X_9>REF(X_9,1);
DRAWTEXT(减仓 AND C<O,H*1.04,'↙减仓'),COLORCYAN;
{减仓+预警卖共振K}
STICKLINE(减仓 AND (预警卖 OR 预警卖1),C,O,2.5,0),COLORFF2200;
STICKLINE(减仓 AND (预警卖 OR 预警卖1),C,O,1.5,0),COLORFF4400;
STICKLINE(减仓 AND (预警卖 OR 预警卖1),C,O,0.8,0),COLORFF6600;
STICKLINE(减仓 AND (预警卖 OR 预警卖1),C,O,0.1,0),COLORFF8800;
STICKLINE(减仓 AND (预警卖 OR 预警卖1),C,O,0.5,0),COLORFFAA00;
{量能}
总金额:=AMOUNT,volSTICK;
启动量能:=MA(总金额,250),DOTLINE,LINETHICK1,COLORGREEN;
量比:=V/REF(MA(V,5),1),COLORBROWN,NODRAW;
几倍:=1.9;
HJ_2:=总金额/REF(MA(总金额,5),1)>3;
倍量:=总金额>=REF(总金额,1)*几倍 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
倍缩:=REF(总金额,1)>= 总金额*几倍,COLORMAGENTA,NODRAW;
倍数:=总金额/REF(总金额,1),COLORYELLOW,NODRAW;
梯量:=COUNT(总金额>REF(总金额,1),3)=3 AND COUNT(C>O,3)=3,NODRAW,COLOR824173;
{趋势先机--红白趋势线}
VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,7);
VAR2E:=(VAR2A+VAR2C)/2/1.1;
红趋势线:=EMA(VAR2E,3)LINETHICK3,COLORRED;
白趋势线:=EMA(红趋势线,5)LINETHICK3,COLORWHITE;
XX:=CROSS(红趋势线,白趋势线);{金叉}
{中途上车信号}
GJ:=((cciI.CCI#WEEK)/10)+40;
wr:=REF(C,5);
ZFU:=((C/WR)-1)*100;
WRG:=((GJ/REF(GJ,1))-1)*100;
ZSH:=((C/REF(C,10))-1)*100;
ZES:=((C/REF(C,20))-1)*100;
SG:=((GJ/REF(GJ,6))-1)*100;
ESG:=((GJ/REF(GJ,16))-1)*100;
LEN:=(ESG-ZES)+30;
MEN:=(SG-ZSH)+30;
SEN:=(WRG-ZFU)+30;
TEN:=LEN+MEN+SEN;
ENCH:=TEN>90 AND HHV(REF(TEN,1),14)<=TEN;
LJGJ:=(LEN>80 OR MEN>80 OR SEN>80) AND LEN>30 AND MEN>30 AND SEN>30;
TENMAVOL:=HHV(REF(TEN,1),15);
TENMDAY:=BARSLAST(TENMAVOL);
ZNTP:=TEN>TENMAVOL AND CLOSE>REF(CLOSE,TENMDAY+1);
中途上车:=LJGJ AND ENCH AND ZNTP,COLOR006BFF;
IF(寻牛线>=REF(上箱顶,1),寻牛线,DRAWNULL),COLORRED,LINETHICK3; {红线(双线合一)--强势上涨区间}
IF(寻牛线<=REF(上箱顶,1),寻牛线,DRAWNULL),COLORGREEN,LINETHICK3;{绿线(双线合一)--下跌震荡区间}
IF(牵牛线>=REF(下箱底,1),牵牛线,DRAWNULL),COLORWHITE;{细白线线--盘整/反弹区间};
IF(牵牛线>=REF(上箱顶,1),牵牛线,DRAWNULL),COLORWHITE,LINETHICK2;{粗白线--强势拉升区间};
IF(牵牛线<=REF(下箱底,1),牵牛线,DRAWNULL)DOTLINE,COLORWHITE;{虚白线--弱势下跌区间};
STICKLINE(CROSS(牵牛线,上箱顶) AND CROSS(C,上箱顶),OPEN,CLOSE,2,0),COLOR66EEEE;
STICKLINE(CROSS(牵牛线,上箱顶) AND CROSS(C,上箱顶),OPEN,CLOSE,1,0),COLORMAGENTA;
STICKLINE(CROSS(牵牛线,上箱顶) AND CROSS(C,上箱顶),OPEN,CLOSE,0,1),COLOR8B8BFF;{上穿黄线三色K}
DRAWTEXT(CROSS(牵牛线,下箱底),下箱底,'↖抄底反弹'),COLORRED;{抄底反弹买点};
反弹共振1:=CROSS(短牵牛,箱顶) AND CROSS(牵牛线,下箱底);
反弹共振2:=CROSS(短牵牛,箱底) AND CROSS(牵牛线,下箱底);
反弹共振3:=CROSS(牵牛线,下箱底) AND 中途上车;
反弹共振4:=XX AND CROSS(短牵牛,箱底);
反弹共振5:=中途上车 AND CROSS(短牵牛,长牵牛);
反弹:=反弹共振1 OR 反弹共振2 OR 反弹共振3 OR 反弹共振4 OR 反弹共振5;
STICKLINE(反弹,C,O,2.8,0),COLOR555555;
STICKLINE(反弹,C,O,2,0),COLOR888888;
STICKLINE(反弹,C,O,1.5,0),COLORAAAAAA;
STICKLINE(反弹,C,O,1,0),COLORCCCCCC;
STICKLINE(反弹,C,O,0.5,0),COLOREEEEEE;{反弹共振K}
DRAWTEXT(反弹,L*1.003,'★反弹共振'),COLORWHITE;
主升共振1:=CROSS(牵牛线,上箱顶) AND CROSS(短牵牛,箱顶) AND 箱顶>=REF(箱顶,1) AND 倍量;
主升共振2:=CROSS(C,上箱顶) AND CROSS(短牵牛,箱底)AND 倍量;
主升共振3:=CROSS(短牵牛,箱顶) AND 箱顶>=REF(箱顶,1) AND 寻牛线=上箱顶 AND 红趋势线<93 AND 倍量;
主升共振4:=中途上车 AND CROSS(牵牛线,上箱顶) AND CROSS(C,上箱顶)AND 倍量;
主升共振5:=CROSS(C,起飞加速线) AND CROSS(短牵牛,长牵牛)AND 倍量;
主升共振6:=XX AND CROSS(牵牛线,上箱顶) AND CROSS(C,上箱顶)AND 倍量;
主升共振7:=CROSS(短牵牛,箱顶) AND C>上箱顶 AND 倍量;
主升:=主升共振1 OR 主升共振2 OR 主升共振3 OR 主升共振4 OR 主升共振5 OR 主升共振6 OR 主升共振7;
STICKLINE(主升,H,L,0,0),COLORFF00FF;
STICKLINE(主升,C,O,3,0),COLOR990099;
STICKLINE(主升,C,O,2,0),COLORBB00BB;
STICKLINE(主升,C,O,1,0),COLORDD00DD;
STICKLINE(主升,C,O,0.3,0),COLORFF00FF;
DRAWTEXT(主升,H*1.003,'★主升共振'),COLORMAGENTA;
DRAWTEXT(主升 AND 中途上车,LOW*0.92,'★千载难逢'),COLORYELLOW;{千载难逢信号}
{今明涨跌停价格}
TM:=1200823;
今涨停:IF(DATE<TM,ZTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),ZTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORRED;
今跌停:IF(DATE<TM,DTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),DTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORGREEN;
明涨停:IF(DATE<TM,C*IF(CODELIKE('688'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)),C*(IF(CODELIKE('688') OR CODELIKE('300'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)))),NODRAW,COLORMAGENTA;
明跌停:IF(DATE<TM,C*IF(CODELIKE('688'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)),C*(IF(CODELIKE('688') OR CODELIKE('300'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)))),NODRAW,COLORFFFF00;
DRAWRECTREL(10,20,90,115,RGB(50,15,005));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.03,0.0, '今天涨停价:'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.07,0.03,0,'元'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.05,0.03,0,今涨停),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.08,0.0, '明天涨停价:'),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.07,0.08,0,'元'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.05,0.08,0,明涨停),COLORRED;
{暴力妖股信号}
HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BARSLAST(HJ_9);
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
HJ_17:=HJ_10<150;
HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
HJ_21:=VOL/MA(VOL,5)<3.5;
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;
暴利:=FILTER(HJ_25,15);
MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
PL1:=(((CLOSE-MA54)/MA54)<0.1);
PL2:=(((CLOSE-MA10)/MA10)<0.3);
偏离率:=(((PL1=1) AND (PL2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=暴利 OR 妖股突破;
VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);
FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
妖股:=XDF AND 涨停板 AND FLIGA AND VARAA,NODRAW;
DRAWICON(妖股,LOW*0.99,7);
DRAWTEXT(妖股,LOW*0.97,' 暴力妖股'),COLORYELLOW;{暴力妖股信号};

通达信主力突破主图指标公式

本文来自网络,不代表公式指标立场,转载请注明出处:https://www.gszb.top/106881.html

为您推荐

联系我们

联系我们

在线咨询: QQ交谈

邮箱: admin@gszb.top

关注微信
微信扫一扫关注我们

微信扫一扫关注公众号

加入QQ群
   
微信扫一扫关注我们

QQ扫一扫加入公式群

返回顶部