通达信【股多多——妖股起涨】套装指标 把握妖股起涨点或当天抓涨停 源码

{MACD三合一副源码如下}

N:=3;

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

KX:=BARSSINCE(CLOSE);

HHN:=CONST(HHV(DIFF,KX));

HLN:=CONST(LLV(DEA,KX));

RC1:=CONST((HHN+HLN)/2);

SS:=((HHN-HLN)/200);

MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;

MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;

MACD中轴:=0+-(-100*SS+RC1);

DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;

DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;

MACD修正1:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;

MACD修正2:= EMA(MACD修正1,3);

MACD超跌:=CONST(LLV(MACD修正1,KX));

MACD超跌线:=IF(MACD超跌<MACD底部,MACD超跌,MACD底部);

顶部:=MACD顶部+-MACD超跌线;

天际:=顶部*0.809;

中轴:=MACD中轴+-MACD超跌线;

海面:=顶部*0.191;

底部:=MACD底部;

DIF55:=(EMA(CLOSE,55)-EMA(CLOSE,119))*0.55;

DEA55:=(EMA(DIF55,41));

DRAWBAND(DEA55,RGB(0,255,0),DIF55,RGB(255,0,255));

DIF60:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);

DEA60:=EMA(DIF60,9/2);

DRAWBAND(DEA60,RGB(0,255,255),DIF60,RGB(255,255,0));

AA:=REF(DIF60,N)=HHV(DIF60,2*N+1);

BB:= (AA,N+1);

CC:=FILTER(BB,N) AND DIF60=HHV(DIF60,N+1);

A11:=BARSLAST(REF(CC,1));

顶背离:=REF(CLOSE,A11+1)<CLOSE AND REF(DIF60,A11+1)>DIF60 AND CC;

MACD多头:DIFF修正+-MACD超跌线,COLOR339999;
{MACD三合一副图源码如下}

空头:DEA修正+-MACD超跌线,COLOR00FF00;

量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;

超前DEA:=(EMA(MACD多头,7));

超前MACD:=2*(MACD多头-超前DEA)+中轴;

MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,130,244{0,179,0}));

MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));

MACD空头重画:DRAWBAND(空头,RGB(0,224,224),空头,RGB(0,224,224));

MACD红柱1:STICKLINE(量能柱>=中轴,量能柱,中轴,1.5,0),COLOR2E0022{COLOR000077};

MACD红柱2:STICKLINE(量能柱>=中轴,量能柱,中轴,1.1,0),COLOR372635{COLOR809A3C}{COLOR000088};

MACD红柱3:STICKLINE(量能柱>=中轴,量能柱,中轴,0.6,0),COLORFF00FF{COLOR000099};

MACD红柱4:STICKLINE(量能柱>=中轴,量能柱,中轴,0.15,0),COLORFF00FF{COLOR0000AA};

MACD兰柱1:STICKLINE(量能柱<=中轴,量能柱,中轴,1.5,0),COLOR2E0022{COLOR808040}{COLORAA6633};

MACD兰柱2:STICKLINE(量能柱<=中轴,量能柱,中轴,1.1,0),COLOR372635{COLOR809A3C}{COLORBB7744};

MACD兰柱3:STICKLINE(量能柱<=中轴,量能柱,中轴,0.6,0),COLORGREEN{COLORCC8855};

MACD兰柱4:STICKLINE(量能柱<=中轴,量能柱,中轴,0.15,0),COLORGREEN{COLORDD9966};



{妖股起涨主图源码如下}

MA5:MA(CLOSE,5),COLORFFFFFF,LINETHICK1;
MA10:MA(CLOSE,10);
MA54:MA(CLOSE,54);
ABC8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
ABC9:=FILTER(ABC8,10);
ABC10:=BARSLAST(ABC9);
ABC11:=REF(HIGH,ABC10+2);
ABC12:=REF(HIGH,ABC10+1);
ABC13:=REF(HIGH,ABC10);
ABC14:=MAX(ABC11,ABC12);
ABC15:=MAX(ABC14,ABC13);
ABC16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
ABC17:=ABC10< 150;
ABC18:=(OPEN-ABC15)/ABC15*100< 30;
ABC19:=(CLOSE-LLV(LOW,ABC10))/LLV(LOW,ABC10)*100< 50;
ABC20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;
ABC21:=VOL/MA(VOL,5)< 3.5;
ABC22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;
ABC25:=ABC16 AND ABC17 AND ABC18 AND ABC19 AND ABC20 AND ABC21 AND ABC22;
暴利:=FILTER(ABC25,15);
ACB1:=(((CLOSE-MA54)/MA54)< 0.1);
ACB2:=(((CLOSE-MA10)/MA10)< 0.3);
偏离率:=(((ACB1=1) AND (ACB2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=(暴利 OR 妖股突破);
AAC:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
AACA:=C/(REF(CLOSE,1))>1.05 AND (C/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 C/REF(C,1)>1.095 AND FLIGA AND AACA;
DRAWICON(妖股起涨,L*1.002,18);
STICKLINE(妖股起涨,OPEN,CLOSE,2,0),COLORMAGENTA;



未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图