妖股突破 通达信主图指标 源码




SSX1:=IF(DATE<999999999,1,1);

主趋势线:EMA(EMA(CLOSE,10),10)*SSX1,COLORRED,LINETHICK3;

SSX2:=IF(DATETODAY(DATE)<999999999,1,DRAWNULL);

SSX3:=主趋势线>REF(主趋势线,1)*SSX1;

IF(SSX3-1,主趋势线,DRAWNULL)*SSX1,COLORGREEN,LINETHICK3;

SSX4:=EMA(CLOSE,5)>EMA(CLOSE,20)*SSX2;

SSX5:=EMA(CLOSE,5)<EMA(CLOSE,20)*SSX2;

SSX6:=EMA(CLOSE,5)>EMA(CLOSE,10)*SSX2;

SSX7:=EMA(CLOSE,5)<EMA(CLOSE,10)*SSX1;

SSX8:=CLOSE<OPEN;

STICKLINE(SSX4,HIGH,LOW,0,0),COLORRED;

STICKLINE(SSX4,OPEN,CLOSE,3,1),COLORRED;

STICKLINE(SSX4 AND SSX8,OPEN,CLOSE,3,0),COLORRED;

STICKLINE(SSX5,HIGH,LOW,0,0),COLORGREEN;

STICKLINE(SSX5,OPEN,CLOSE,3,1),COLORGREEN;

STICKLINE(SSX5 AND SSX8,OPEN,CLOSE,3,0),COLORGREEN;

STICKLINE(SSX5 AND SSX6,HIGH,LOW,0,1),COLORWHITE;

STICKLINE(SSX5 AND SSX6,OPEN,CLOSE,3,1),COLORWHITE;

STICKLINE(SSX5 AND SSX6 AND SSX8,OPEN,CLOSE,3,0),COLORWHITE;

STICKLINE(SSX4 AND SSX7,HIGH,LOW,0,0),COLORWHITE;

STICKLINE(SSX4 AND SSX7,OPEN,CLOSE,3,1),COLORWHITE;

STICKLINE(SSX4 AND SSX7 AND SSX8,OPEN,CLOSE,3,0),COLORWHITE;

Z1:=STRCAT(HYBLOCK,' ');

Z2:=STRCAT(Z1,DYBLOCK);

Z3:=STRCAT(Z2,' ');

BK:=IF(INBLOCK('科创板'),0.2,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,4,0),COLORC080FF;

STICKLINE((C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1,O,C,4,0),COLORBLUE;

STICKLINE((C>=ZTPRICE(REF(C,1),BK) AND C=H),C,O,4,0),COLORC080FF;

STICKLINE((C<=DTPRICE(REF(C,1),BK) AND C=L),C,O,4,0),COLORBLUE;

流通市值:(FINANCE(40)/100000000),NODRAW,COLORRED;

EMA9:EMA(CLOSE,173),COLOR96FFFF;

EMA10:EMA(CLOSE,193),COLOR64FFFF;

EMA11:EMA(CLOSE,213),COLOR28FDFD;

M:=20;




TM9:=1290823;

涨停价:IF(DATE<TM9,ZTPRICE(REF(C,1),IF(FINANCE(3)=4,0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),ZTPRICE(REF(C,1),IF(FINANCE(3)>2,0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORRED;

跌停价:IF(DATE<TM9,DTPRICE(REF(C,1),IF(FINANCE(3)=4,0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),DTPRICE(REF(C,1),IF(FINANCE(3)>2,0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORGREEN;

明涨停:IF(DATE<TM9,C*IF(FINANCE(3)=4,1.2,IF(NAMEINCLUDE('S'),1.05,1.1)),C*(FINANCE(3)>2,1.2,IF(NAMEINCLUDE('S'),1.05,1.1))),NODRAW,COLORLIMAGENTA;

明跌停:IF(DATE<TM9,C*IF(FINANCE(3)=4,0.8,IF(NAMEINCLUDE('S'),0.45,0.9)),C*(FINANCE(3)>2,0.8,IF(NAMEINCLUDE('S'),0.45,0.9))),NODRAW,COLORFFFF00;

ZT7:=C>=IF(DATE<TM9,ZTPRICE(REF(C,1),IF( FINANCE(3)=4,0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),ZTPRICE(REF(C,1),IF( FINANCE(3)>2,0.2,IF(NAMEINCLUDE('S'),0.05,0.1))));

DT7:=C<=IF(DATE<TM9,DTPRICE(REF(C,1),IF( FINANCE(3)=4,0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),DTPRICE(REF(C,1),IF( FINANCE(3)>2,0.2,IF(NAMEINCLUDE('S'),0.05,0.1))));

ZT1:=H>=IF(DATE<TM9,ZTPRICE(REF(C,1),IF( FINANCE(3)=4,0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),ZTPRICE(REF(C,1),IF( FINANCE(3)>2,0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))) AND H>C;

A0:=(3*C+L+O+H)/6;

X:=(20*A0+19*REF(A0,1)+18*REF(A0,2)+17*REF(A0,3)+16*REF(A0,4)+15*REF(A0,5)+ 14*REF(A0,6)+13*REF(A0,7)+12*REF(A0,8)+11*REF(A0,9)+10*REF(A0,10)+9*REF(A0,11)+8*REF(A0,12) +7*REF(A0,13)+6*REF(A0,14)+5*REF(A0,15)+4*REF(A0,16)+3*REF(A0,17)+2*REF(A0,18)+ REF(A0,20))/210;

MTM:=C-REF(C,1);

DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);

CB2:=EMA(X,13);

卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);

DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;

买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);

DRAWTEXT(FILTER(买1=1,5),LOW*0.97,'*'),COLORRED;

VAW1:=EMA(EMA(CLOSE,13),13);

控盘:=(VAW1-REF(VAW1,1))/REF(VAW1,1)*1000;

无庄控盘:=控盘<0;

有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;

JJ:=DYNAINFO(11);

P:=21;

S:=8;

M1:=3;

财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*50;

神:=EMA(财,M1);

BTJ1:=(C-JJ)/JJ<-0.03;

BTJ11:=(C-JJ)/JJ<-0.03;

BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;

STJ1:=(C-JJ)/JJ>0.005;

STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;

STJ02:=控盘>0;

BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;

BTJ22:=控盘>REF(控盘,1) AND 控盘<0;

BTJ3:=CROSS(财,神) AND 财<-0.3;

BTJ32:=CROSS(财,神) AND 财<-0.1;

STJ31:=CROSS(神,财);

STJ32:=CROSS(神,财) AND 财>1.618;

BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);

BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);

BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);

STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);

STJ82:=FILTER(STJ02 AND STJ32,13);

STJ83:=STJ81 AND STJ82;

DRAWTEXT(STJ83,H*1.002,'↓庄出'),COLORGREEN;

DRAWICON(STJ83,H+0.003,24);

庄:= BTJ11 AND BTJ2 AND BTJ3;

有庄:=FILTER(庄,30);

DRAWTEXT(有庄,L-0.0011,'↖庄进'),COLORYELLOW;

DRAWICON(有庄,L*0.999,23);

MA5:=MA(CLOSE,5),COLORWHITE;

MA10:=MA(CLOSE,10),COLORYELLOW;

MA20:=MA(CLOSE,20),COLORRED;

MA30:=MA(CLOSE,30);

MA60:=MA(CLOSE,60),COLORBLUE;

AA1:=(C-REF(C,1))/REF(C,1)>=0.058 AND (C-REF(C,1))/REF(C,1)<0.095;

AA2:=(C-REF(C,1))/REF(C,1)>=0.098;

MA54:=MA(CLOSE,54),COLORBLUE;

多空分界:=MA(CLOSE,48);

MA120:=MA(CLOSE,120);

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);

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 妖股突破);

VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);

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 C/REF(C,1)>1.095 AND FLIGA AND VARAA,NODRAW;

DRAWICON(妖股,LOW*0.995,7);

DRAWTEXT(妖股,LOW*0.975,' 妖股'),COLORYELLOW;

AA:=((CLOSE/REF(CLOSE,1))>=1.099);

CB:=(VOL/REF(VOL,1));

关注:=IF((((CLOSE/REF(CLOSE,1))>=1.07) AND (CB<1)),1,0),LINETHICK0,NODRAW;

龙头第一买点:=IF((AA AND (CB<1)),1,0);

龙头第二买点:=IF((((CLOSE/REF(CLOSE,1))>=1.07)AND (CB<1)),1,0);

DRAWTEXT((龙头第二买点=1),(REF(LOW,1)*1.1),'↖龙头'),COLOR00FFFF;

均价线:=AMOUNT/V/100,POINTDOT;

C2:=REF(C,1);

涨停:=IF(REF(C,1)*1.1-C<0.01,1,0);

MA13:=MA(C,13),COLORGRAY;

MA21:=MA(C,21),COLORWHITE;

操盘线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORMAGENTA;

LC:=REF(CLOSE,1);

操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,COLORWHITE,LINETHICK2;

趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,COLORGRAY;

震仓线:=45,COLORMAGENTA;

震仓线2:=50,COLORGRAY;

逃命线:=80,COLORRED;

抄底线:=20,COLORGREEN;

绝底线:=5,COLORBLUE;

PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2;

PP:=操作线<震仓线 AND REF(操作线,1)>震仓线;

PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;

HH:=COUNT(涨停,13)>=1;

A:=SMA(L,4,3);

STICKLINE(A AND REF(PP,1) AND HH,A*0.9999,A*0.9979,5,0),COLORGREEN;

IF(A AND REF(PP,1) AND HH,L*0.99,DRAWNULL),COLORRED,CIRCLEDOT;

DRAWICON(A AND REF(PP,1) AND HH,L*0.98,1);

STICKLINE(A AND REF(PP3,1) AND HH,A*0.9999,A*0.9979,5,0),COLORGREEN;

IF(A AND REF(PP3,1) AND HH,L*0.99,DRAWNULL),COLORRED,CIRCLEDOT;

DRAWICON(A AND REF(PP3,1) AND HH,L*0.98,1);

HD:=COUNT(涨停,21)>=1;

A1:=SMA(H,4,3);

涨停1:=IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),(C>=ZTPRICE(REF(CLOSE,1),0.1995) AND C=H),(C>=ZTPRICE(REF(CLOSE,1),0.0995) AND C=H));

J:=AMOUNT/V/100;

Z:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORLIRED;

LC1:=REF(CLOSE,1);

CP:=SMA(MAX(CLOSE-LC1,0),2,1)/SMA(ABS(CLOSE-LC1),2,1)*100;

QX:=SMA(MAX(CLOSE-LC1,0),14,1)/SMA(ABS(CLOSE-LC1),14,1)*100;

ZC:=45;

ZC2:=50;

TM:=80;

CD:=20;

JD:=5;

PP22:=CP<ZC2 AND REF(CP,1)>ZC2;

PP1:=CP<ZC AND REF(CP,1)>ZC;

PP33:=CP<CD AND REF(CP,1)>CD;

STICKLINE(A AND REF(PP1,1) AND HH,A*0.9999,A*0.9979,5,0);

STICKLINE(A AND REF(PP33,1) AND HH,A*0.9999,A*0.9979,5,0);

龙回头:=IF((((A AND REF(PP1,1) AND HH) OR (A AND REF(PP33,1) AND HH))),1,0 );

BOLL:=MA(CLOSE,M);

UB:=BOLL+2*STD(CLOSE,M),LINETHICK1,DOTLINE;

LB:=BOLL-2*STD(CLOSE,M),DOTLINE,LINETHICK1;

DRAWTEXT_FIX(1,0.00,0.21,0,'概念版块:')COLORFFFF00;

DRAWTEXT_FIX(ISLASTBAR,0.06,0.21,0,STRCAT(Z3,GNBLOCK)),COLORFFFF00;

DRAWTEXT_FIX(FINANCE(51)<>0,0.55,0.21,0,'含可转债')COLORYELLOW;




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

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

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