通达信坐等抬轿副图指标 买入就是主升浪 胜率达95% 压箱底指标 源码附图

H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8,COLORGREEN;
支撑:=L1+P1*0.5/8,COLORRED;
中线:=(支撑+阻力)/2,COLORWHITE,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);

趋势线:=EMA(V11,3),LINETHICK1,COLORMAGENTA;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备买入:=STICKLINE(趋势线<11,趋势线,11,2,0),COLORYELLOW;
AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线;
BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线;
BB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
BB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
BB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
BB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
BB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
买入:STICKLINE(BB=1 AND C<中线,11,31,2,0),COLORRED;
DRAWICON(BB=1 AND C<中线,55,1);
DRAWTEXT(BB=1 AND C<中线,60,''),COLORYELLOW;
DRAWTEXT(BB0,25,'←重仓买'),COLORCYAN;
{分时买+起飞=71.5%;
分时买+上升三法=88%}


DRAWTEXT(AA,14,'←关注'),COLORLIRED;
STICKLINE(AA,11,31,2,0),COLORYELLOW;
准备卖出:STICKLINE(趋势线>89,趋势线,89,2,0),COLORMAGENTA;
CC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中线;
DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线;
DD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);
DD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
DD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
DD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
DD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
卖出:STICKLINE(DD=1 AND C>中线,70,50,2,0),COLORGREEN;
DRAWICON(DD=1 AND C>中线,45,2);
DRAWTEXT(DD0,40,'←卖'),COLORWHITE;
DRAWTEXT (CC,74,'←加速涨'),COLORMAGENTA;



ZT:=C/REF(C,1)>=1.095 AND C/REF(C,1)<1.13 AND H=C AND C>=O;
TNJ1:=ZT AND REF(ZT,1) AND REF(NOT(ZT),2);
N:=BARSLAST(TNJ1);
YIBAN:=REF((C-O)*0.5,N+1)+REF(C,N+2);
XG1:=N<=25 AND N>=4 AND EVERY(C>=YIBAN,N);
XG2:=REF(C<O AND C<REF(C,1),N-1) AND REF(C<O AND C<REF(C,1),N-2)
AND REF(C<O AND C<REF(C,1),N-3) AND V>REF(V,1)*2;
XGA:=XG1 AND XG2;
二板捉妖:=REF(XGA,1) AND C>REF(C,1);

STICKLINE(XGA,40,52,0,0),COLORCYAN;
STICKLINE(XGA,20,40,2,0),COLORYELLOW;
STICKLINE(XGA,0,20,2,0),COLORRED;
DRAWTEXT(XGA,20,' ←二板捉妖'),COLORCYAN;


BQ0:=FILTER((((C/REF(C,1))>1.048) AND (C=HIGH)) AND (BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12))),28);
BQ1:=IF(C>REF(C,1),88,0);
BQ2:=IF((((C/REF(C,1))>1.05) AND ((HIGH/C)<1.01)) AND (BQ1>0),91,0);
BQ3:=FILTER(BQ2>90,45);
BQ4:=LLV(LOW,4)=LLV(LOW,10);
BQ5:=(((C/REF(C,1))>1.06) AND (HIGH=C)) AND (LOW<C);
BQ6:=((C/LLV(LOW,4))<1.15) AND ((C/LLV(LOW,4))>1.05);
BQ7:=BQ5 AND (BQ6 OR BQ4);
BQ8:=(LN(C/REF(C,1)))/LN(1.1);
BQ9:=IF(BQ8>=1.2,0,(ABS((BQ8*AMOUNT)/10000))*5);
BQ10:=SMA(IF(BQ8>0,BQ9,0),5,1);
BQ11:=EMA(SMA(IF(BQ8<=0,BQ9,0),5,1),2);
BQ12:=SMA(BQ10,20,1)/SMA(BQ11,20,1);
BQ13:=IF(BQ12>=1,1,BQ12);
BQ14:=((BQ10*BQ13)-BQ11)/10000;
BQ15:=((C-MA(C,20))/MA(C,20))*100;
BQ16:=10;
BQ17:=EMA(C,9)-EMA(C,26);
BQ18:=EMA(BQ17,12);
BQ19:=((((CROSS(BQ15,BQ16) AND (BQ14>0.5)) AND (BQ18>-0.25)) AND (BQ18>REF(BQ18,1))) AND BQ3) AND BQ7;
BQ20:=C/REF(C,1)<1.07 AND HIGH>C;
BQ21:=REF(HIGH,BARSLAST(VOL=HHV(VOL,120)));
BQ涨停:=((((((NOT(REF(BQ21,1)=BQ21)) AND BQ20) AND BQ0) AND BQ3) AND BQ7) OR BQ19) AND (NOT(DYNAINFO(4)=0));


生命线:=MA(CLOSE,8),COLORMAGENTA LINETHICK2;
LS:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,6),2.1*FORCAST(V,6));
拉升:=FILTER(LS,14);
多方线:=MA(CLOSE,60),COLORYELLOW LINETHICK2;

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);
MA120:=MA(CLOSE,120);
{STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,2,0),COLORYELLOW;}
BAC8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
BAC9:=FILTER(BAC8,10);
BAC10:=BARSLAST(BAC9);
BAC11:=REF(HIGH,BAC10+2);
BAC12:=REF(HIGH,BAC10+1);
BAC13:=REF(HIGH,BAC10);
BAC14:=MAX(BAC11,BAC12);
BAC15:=MAX(BAC14,BAC13);
BAC16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
BAC17:=BAC10<150;
BAC18:=(OPEN-BAC15)/BAC15*100<30;
BAC19:=(CLOSE-LLV(LOW,BAC10))/LLV(LOW,BAC10)*100<50;
BAC20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
BAC21:=VOL/MA(VOL,5)<3.5;
BAC22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
BAC25:=BAC16 AND BAC17 AND BAC18 AND BAC19 AND BAC20 AND BAC21 AND BAC22;
暴利:=FILTER(BAC25,15);
PL1:=(((CLOSE-MA54)/MA54)<0.1);
PL2:=(((CLOSE-生命线)/生命线)<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 妖股突破);
CBAA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
CBAAA:=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 CBAAA,NODRAW;

工作线:=MA("KDJ.J#WEEK"(9,3,3),5);
建仓:=CROSS(工作线,5),NODRAW,COLORMAGENTA;
加仓:=CROSS(工作线,50),NODRAW,COLORYELLOW;
VAR1:=工作线,COLORRED;
持股:=IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORRED;
{股海必买}
ZZAA1:=C<O; {昨天收阴线的}
ZZAA2:=C>O AND C<REF(C,1);{假阴真阳的}
ZZBB1:=REF(ZZAA1,1) AND C>REF(O,1);
ZZBB2:=REF(ZZAA2,1) AND C>REF(C,1);
BM:=ZZBB1 OR ZZBB2;
T:=BARSLAST(妖股);
必买:=T>=1 AND T<=20 AND BM ;
HTJ1:=C/REF(C,1)*100-100;
HTJ2:=HTJ1>6;
HTJ3:=MAX(C,O)/MIN(C,O)*100-100;
HTJ4:=HTJ3<5;
HTJ5:=BARSLASTCOUNT(HTJ4);
HTJ6:=HTJ5>=2 AND HTJ5<=4;
HTJ7:=REF(HTJ6,1) AND HTJ2;
HTJ8:=REF(HTJ2,1) AND HTJ4;
HTJ9:=BARSLAST(HTJ8);
HHTJ10:=HTJ9<8;
APA:=C/REF(C,1)>1.095 AND H=O AND L=H;
上升三法:=REF(HTJ6,1) AND HTJ1>2 AND HHTJ10 AND NOT(APA);

MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30),COLORWHITE;
MA180:=MA(C,180),COLORCYAN;
MAV3:=MA(V,3);
MAV5:=MA(V,5);
MAV30:=MA(V,30);
MAV60:=MA(V,60);

CN:=BARSLAST(CROSS(MA5,MA10));
CM:=BARSLAST(CROSS(MA10,MA20));
SJKTJ0:=V<REF(V,1)*2 OR (V<REF(V,1)*3 AND C/REF(C,1)>1.094 AND H=C);
SJKTJ1:=V>REF(HHV(V,5),1) AND C/REF(C,1)>1.01 AND C>O AND MAV5>=MAV60 AND MAV3>MAV30 AND MA5>MA10 AND MA10>MA20;
SJKTJ2:=CM<=CN AND CN<=5 AND (CN-CM)<=3;
SJKXG0:=SJKTJ0 AND SJKTJ1 AND SJKTJ2;
SJKXG:=SJKXG0 AND COUNT(SJKXG0,6)<=1;

QJKTJ1:=V>REF(HHV(V,5),1);
QJKTJ2:=CM<=CN AND CN<=7 AND (CN-CM)<=3;
QJKXG0:=QJKTJ1 AND QJKTJ2 AND NOT(REF(SJKXG,1));
QJKXG:=QJKXG0 AND COUNT(QJKXG0,6)<=1;
VX:=BARSLAST(SJKXG OR QJKXG);
JKXGW0:=VX>=6 AND VX<32 AND V>REF(V,VX) AND V<REF(V,VX)*2 AND C>REF(C,VX);
JKXGW:=JKXGW0 AND COUNT(JKXGW0,6)<=1;

MA60:=MA(CLOSE,60),COLORGREEN;
MA250:=MA(CLOSE,250),COLORMAGENTA,LINETHICK3;
FPL1:=(((CLOSE-MA60)/MA60)<0.1);
FPL2:=(((CLOSE-MA250)/MA250) < 0.3);
偏离率B:=(((FPL1=1) AND (FPL2=1)))*0.2;
VXGA:=偏离率B=0 AND REF(偏离率B,1)=0.2 AND REF((COUNT((偏离率B=0.2),10)=10),1);


FABC1:=INTPART(SUM(V,0)/CAPITAL);
FABC2:=FABC1>REF(FABC1,1) OR BARSSINCE(CLOSE)=0;
FABC3:=BARSLAST(FABC2)+1;
FABC4:=FABC3< REF(FABC3,1);
FABC5:=IF(FABC4,REF(FABC3,1)+1,FABC3);
FABC6:=SUM(FABC4,0);
FABC7:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
FABC8:=CLOSE/(REF(CLOSE,1))>1.05 AND (HIGH/CLOSE< 1.01);
游资进场:=(FILTER(FABC8>0,34)AND DYNAINFO(4)>0)*8,COLORYELLOW;
FABC9:=5;
FLS:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,6),2.1*FORCAST(V,6));
VXG1:=FILTER(FLS,3);

FABC10:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,10))/EMA(CLOSE,10));
FABC11:=DMA(((2.15*CLOSE+LOW+HIGH)/4),FABC10);
金线王:=EMA(FABC11,5)*1;
金线王2:=EMA(FABC11,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>8;
VXG2:=CROSS(C,金线王) AND 条件;
VXGB:= VXG1 AND VXG2;
XGG1:=VXGA AND VXG2;
XGG2:=VXGA AND VXGB;
XGG:=XGG1 OR XGG2;
TJAS:=JKXGW AND REF(XGG,1);


ZT1:=C=ZTPRICE(REF(C,1),0.1) OR (NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND (H-REF(C,1))/REF(C,1)*100>=4.945;
ZT2:=C=ZTPRICE(REF(C,1),0.2);
ZTT:=ZT1 OR ZT2;

UP1:=CROSS(MA5,MA10);
UP2:=CROSS(MA10,MA20);
UP3:=CROSS(MA5,MA20);
UP4:=CROSS(MA10,MA30);

STJ1:=MA5>MA30 AND MA10>MA30 AND MA30>MA20 AND MA5<MA60 AND MA180<MA250;
STJ2:=ZTT AND REF(ZTT,1) AND REF(ZTT,2) AND REF(UP1,1) AND UP4 AND NOT(REF((ZTT),3));
DLXGA:=STJ2 AND UP2 AND UP3 ;
DLXGB:=STJ2 AND NOT(UP2) AND UP3 ;
DLXGC:=STJ2 AND NOT(UP2) AND REF(UP3,1) AND (MA5>MA180 OR MA5>MA120) AND MA180>MA250 ;
DLXGD:=STJ2 AND NOT(UP2) AND NOT(UP3) AND STJ1;
SXG1:=DLXGA OR DLXGB OR DLXGC OR DLXGD;
SXG2:=ZTT AND REF(ZTT,1) AND REF(ZTT,2) AND REF(ZTT,3) AND REF(UP3,1)
AND UP4 AND NOT(REF(UP1,2)) AND (MA120<MA180 OR MA180<MA250);
UPMA250:=ZTT AND C>MA250;
SXG3:=UPMA250 AND COUNT(UPMA250,15)=1;
突破年线:= SXG1 OR SXG2 OR SXG3;

AC:=AMOUNT/V/100;
VARAB:=EMA((((AC-EMA(AC,13))/EMA(AC,13))*(0-100)),5);
QQ:=EMA(((VARAB/10)+EMA(AC,13)),0);
行情线:=MA(AC,1);
重心:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
操盘线:=EMA(((SLOPE(C,22)*20)+C),55),COLORWHITE,LINETHICK2;
黄金线:=IF(重心>=操盘线,操盘线,DRAWNULL),COLORYELLOW,LINETHICK2;
空仓线:=IF(重心<操盘线,操盘线,DRAWNULL),COLORCYAN,LINETHICK2;
钱袋子:=C>REF(C,1) AND MA(C,3)>MA(C,5) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,10)>黄金线 AND MA(C,20)<黄金线;
BL:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
获利比例:=WINNER(C)*100,COLORLIRED;

A1:=IF(C>=MA5,1,-1);
A2:=IF(C>=MA10,1,-1);
A3:=IF(C>=MA20,1,-1);
A4:=IF(MA5>=REF(MA5,1),1,-1);
A5:=IF(MA10>=REF(MA10,1),1,-1);
A6:=IF(MA20>=REF(MA20,1),1,-1);
趋势:=(A1+A2+A3+A4+A5+A6)/6*100;
BOB1:=趋势<-98 AND C/REF(C,1)>1.0042 AND REF(C,1)<REF(C,2);
BOB2:=CROSS(趋势,0) AND C/REF(C,1)>1.0042;
主升浪:=趋势>=50;
AEA1:=(CLOSE*2+HIGH+LOW)/4*10;
AEA2:=EMA(AEA1,13)-EMA(AEA1,34);
AEA3:=EMA(AEA2,5);
AEA4:=2*(AEA2-AEA3)*5.5;

主力线:=AEA4;
必涨停:=(H-REF(C,1))/REF(C,1)*100;
强势必涨:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND 必涨停>=4.945;
涨停:=C=ZTPRICE(REF(C,1),0.1) OR 强势必涨 ;
预警指标:=HHV(VOL,10);
小牛起飞:=BARSLAST(预警指标=VOL);
强牛起飞:=CROSS(C,REF(C,小牛起飞)) AND 涨停 AND NOT(DYNAINFO(4)=0);
突破前位:=主力线>=强牛起飞;

RSV:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K:=SMA(RSV,21,1);
D:=SMA(K,5,1);
J:=3*K-2*D;
KDJUP:=J>=K AND K>=D;

主升浪B:=趋势>=50 AND REF(趋势,1)<50 AND 突破前位 AND 主力线>=REF(主力线,1) AND KDJUP AND MA5>MA10 ;
小妖:=FILTER(FLS,14);
成妖:=CROSS(C,金线王) AND 条件;
牛妖:=XGG1 OR XGG2;
起飞:=VXGB AND NOT(牛妖);
ZG1:=主升浪B AND 起飞;
ZG2:=主升浪B AND 上升三法 AND 成妖;
ZG3:=主升浪B AND 牛妖 AND 妖股;
ZG4:=主升浪B AND 上升三法 AND 小牛起飞;
ZG5:=主升浪B AND 小牛起飞;
主升浪XG:=ZG1 OR ZG2 OR ZG3 OR ZG4 OR ZG5;


霸气涨停:=BQ涨停 AND 突破年线 AND 主升浪XG AND (起飞 OR 牛妖 OR 成妖 OR 妖股);
STICKLINE(霸气涨停,50,60,0,0),COLORCYAN;
STICKLINE(霸气涨停,35,50,2,0),COLORMAGENTA;
STICKLINE(霸气涨停,25,35,2,0),COLORYELLOW;
STICKLINE(霸气涨停,0,25,2,0),COLORRED;
DRAWTEXT(霸气涨停,48,' ←霸气涨停'),COLORCYAN;
DRAWTEXT(霸气涨停,20,' ←次日开盘买'),COLORYELLOW;


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

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

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