通达信改良的中期方向线参考副图指标 综合多个指标抓启涨黑马 源码 附图

EXP12:=EMA(CLOSE,12);

EXP50:=EMA(CLOSE,50);

中期方向线DIR:EXP12-EXP50,NODRAW;

TDXSTEP235:DRAWBAND(中期方向线DIR,RGB(190,0,0),0,RGB(0,160,0));

MB:=EXPMA(中期方向线DIR,20);

超买线UPPER:MB+1.96*STD(中期方向线DIR,20),COLORYELLOW;

超卖线LOWER:MB-1.96*STD(中期方向线DIR,20),COLORCYAN;
中期方向线:(超买线UPPER-超卖线LOWER)<0.3 AND 中期方向线DIR>REF(中期方向线DIR,1);


中期方向收囗:CLOSE>REF(CLOSE,1)&&UPNDAY(中期方向线DIR,1)&&REF(UPNDAY(超卖线LOWER,4),1)&&中期方向线DIR>REF(中期方向线DIR,1)&&REF(DOWNNDAY(超买线UPPER,4),1)&&UPNDAY(超买线UPPER,1);
STICKLINE(中期方向收囗,2.5,3.5,0.1,0),COLOR00FF99;
STICKLINE(中期方向收囗,2.8,2.5,4,0),COLORFF00FF;
STICKLINE(中期方向收囗,2.5,2,1.5,0),COLOR00FF99;

DRAWTEXT(中期方向收囗,2.3,' 中期收囗'),COLORYELLOW ;


N:=20;
MID:=MA(C,N);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
BOLL:=REF(MID,1);
M:=1.15;
布林带收窄:UPPER/LOWER<M AND CROSS(C,BOLL) AND C>MA(C,5);
STICKLINE(布林带收窄,1,0.5,2,0),COLORGREEN;
DRAWTEXT(布林带收窄,0.7,' 布林带收窄'),COLORAAAAAA ;

分析家公式网:=EMA(EMA(C,1),5);
NEDC:=EMA(HHV(分析家公式网,5),1);
NEDDD:=EMA(HHV(NEDC,21),1);
VDDD1:=EMA(HHV(NEDDD,21),2);
VDDD2:=EMA(HHV(VDDD1,21),3) ;
VDDD3:=EMA(HHV(VDDD2,21),4);
VDDD4:=EMA(HHV(VDDD3,21),5);
VDDD5:=EMA(HHV(VDDD4,21),6) ;
VDDD6:=MA(CLOSE,60);
VDDD9:=BACKSET(VDDD6< REF(VDDD6,1),2);
CROSS(NEDC>MAX6(VDDD1,VDDD2,VDDD3,VDDD4,VDDD5,VDDD6),0.5)&& VDDD1>VDDD2&&VDDD2>VDDD3&&VDDD3>VDDD4&&VDDD4>VDDD5&&VDDD5>VDDD6;
AHC1J:=CLOSE*VOL;
AHC2J:=EMA((EXPMA(AHC1J,3)/EXPMA(VOL,3)+EXPMA(AHC1J,6)/EXPMA(VOL,6)+ EXPMA(AHC1J,12)/EXPMA(VOL,12)+EXPMA(AHC1J,24)/EXPMA(VOL,24))/4,13);
SGJ:=1.06*AHC2J;
DDJ:=1.13*AHC2J;
ZTJ:=REF(C,1)*1.06-C< 0.01 AND C;
妖股预警:CROSS(C,DDJ) AND ZTJ;
STICKLINE(妖股预警,0,1,2,0),COLORGREEN;
DRAWTEXT(妖股预警,0.5,' 妖股预警'),COLORYELLOW ;


B1:=MA(C,1);
B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1);
SMA2:=MA(B2,3);
绿色变红色:CROSS(B2>SMA2,0.1);
STICKLINE(绿色变红色,1.5,2,2,0),COLORRED ;
STICKLINE(绿色变红色,1,1.5,2,0),COLOR00FF99;
DRAWTEXT(绿色变红色,1.7,' 绿色变红色'),COLORYELLOW ;

VARR1:=V;
VARR2:=VARR1>MA(V,89);
VARR3:=EXPMA(C,5);
VARR4:=EXPMA(C,29);
VARR5:=VARR3>VARR4;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),56,1)/SMA(ABS(CLOSE-LC),56,1)*100;
VARR6:=RSI1>RSI2 AND VARR5 AND VARR2;
VASS1:=HHV(H,30);
VASS2:=LLV(L,30);
VASS3:=REF((VASS1/VASS2-1)*100<=30,1);

A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
游资:=EMA(A2,200)*1.1;
条件:=(C-REF(C,1))/REF(C,1)*100>5;
妖股:CROSS(C,游资) AND REF(C*1.068,1)<C AND VARR6 AND VASS3,NODRAW;
STICKLINE(IF(妖股,120,0),2,3,2,0), COLORMAGENTA;
DRAWTEXT(妖股,2.5,' 妖股'),COLORYELLOW ;

TJ:=DYNAINFO(3)>0
AND HHV(HIGH,10)/LLV(LOW,10)<1.35
AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)
AND CLOSE>OPEN
AND CLOSE>=HHV(HIGH,10);

突破:=TJ;
TJ1:=TJ;
放量突破:TJ1 ;
STICKLINE(放量突破,3,4,2,0),COLORYELLOW;
DRAWTEXT(放量突破,3.5,' 放量突破'),COLORRED;


X_1:=DATE<1221231;
X_2:=EMA(CLOSE,13);
X_3:=EMA(CLOSE,25);
X_4:=LN(X_2/X_3);
X_5:=LN(X_3/EMA(CLOSE,55));
X_6:=LN(EMA(CLOSE,55)/EMA(CLOSE,120));
X_7:=(X_4+X_5+X_6)*100/3;
X_8:=EMA(VOL*(CLOSE-REF(CLOSE,1)),2);
NOTEXT阀值:=0;
X_9:=IF(X_1,EMA(X_7,5),0);
DM12:=IF(X_1,EMA(X_7,12),0);
NOTEXT:=IF(X_9>DM12,DM12,DRAWNULL);
动能:=(X_9-DM12)*3;
NOTEXT1:=动能;
X_10:=IF(CLOSE<REF(CLOSE,1),VOL,0);
量价支点:=CLOSE/REF(CLOSE,1)>=1.04 AND VOL>REF(HHV(VOL,5),1) AND VOL>REF(HHV(X_10,10),1)*1.2;
X_11:=BARSSINCEN(量价支点,10)=0 AND X_9>DM12 AND DM12<10;
X_12:=EMA(HHV(HIGH,500),21);
X_13:=EMA(HHV(HIGH,250),21);
X_14:=EMA(HHV(HIGH,90),21);
X_15:=EMA(LLV(LOW,500),21);
X_16:=EMA(LLV(LOW,250),21);
X_17:=EMA(LLV(LOW,90),21);
X_18:=EMA((X_15*0.96+X_16*0.96+X_17*0.96+X_12*0.558+X_13*0.558+X_14*0.558)/6,21);
X_19:=EMA((X_15*1.25+X_16*1.23+X_17*1.2+X_12*0.55+X_13*0.55+X_14*0.65)/6,21);
X_20:=EMA((X_15*1.3+X_16*1.3+X_17*1.3+X_12*0.68+X_13*0.68+X_14*0.68)/6,21);
X_21:=EMA((X_18*3+X_19*2+X_20)/6*1.738,21);
X_22:=REF(LOW,1);
X_23:=SMA(ABS(LOW-X_22),3,1)/SMA(MAX(LOW-X_22,0),3,1)*100;
X_24:=EMA(IF(CLOSE*1.35<=X_21,X_23*10,X_23/10),3);
X_25:=LLV(LOW,30);
X_26:=HHV(X_24,30);
X_27:=IF(MA(CLOSE,58),1,0);
X_28:=EMA(IF(LOW<=X_25,(X_24+X_26*2)/2,0),3)/618*X_27;
X_29:=HHV(X_28,60);
X_30:=X_29>50 AND X_11 AND X_9>DM12 AND DM12<2 AND EXIST(DM12<0,10);
X_31:=CLOSE/REF(CLOSE,1)*100-100;
X_32:=STD(X_31,24);
X_33:=EMA(STD(X_31,60),12);
X_34:=EMA(X_32,12);
X_35:=X_34<X_33;
X_36:=COUNT(DM12>0,100)<1;
X_37:=EXIST(X_36,60) AND COUNT(DM12>0,50)>25;
X_38:=HHV(HIGH,60);
X_39:=LLV(LOW,BARSLAST(HIGH=X_38));
X_40:=COUNT(X_9<DM12,30)>10;
X_41:=EXIST(X_37,30) AND X_40 AND X_9>0 AND X_39>X_38*0.65;
X_42:=X_9>REF(X_9,1) AND X_9>(-0.5);
龙抬头:BARSSINCEN(量价支点,5)=0 AND EXIST(X_41,20) AND X_42,NODRAW,COLORRED;

STICKLINE(龙抬头,1,2,1.5,0),COLORD30094;
DRAWTEXT(龙抬头,1.5,' 龙抬头'),COLORYELLOW;

AQ1:=REF(V,1);
AQ2:=DVOL;
AQ3:=AQ2/AQ1;
LNX:=AQ3-REF(AQ3,1);
E1:=REF(C,1);
E2:=DCLOSE;
E3:=(E2-E1)/E1*100;
QMX:=E3-REF(E3,1);
龙启动:CROSS(LNX,500) AND CROSS(QMX,10)
AND O/REF(C,1)<1.07 COLORRED;

STICKLINE(龙启动,0,1,1,0),COLORFF00FF;
DRAWTEXT(龙启动,0.7,' 龙启动'), COLORWHITE;


VAR1:=C/REFX(H,4)<0.7 AND C>REF(C,1) AND
C<REFX(C,1) AND C<REFX(C,2)AND C<REFX(C,3);

极品指标:FILTER(VAR1,10);
STICKLINE(极品指标,2.8,1.8,3,0),COLORRED;
STICKLINE(极品指标,2,3.2,1.2,0),COLORGREEN ;
STICKLINE(极品指标,1.6,3.8,0.1,0),COLORFF00FF;
DRAWTEXT(极品指标,2.7,' 极 指 '),COLORGREEN ;
DRAWTEXT(极品指标,2.7,' 品 标'),COLORRED;
{优化系统}
S1:=IF(CODELIKE('300'),0,1);
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
S4:=IF(CODELIKE('688'),0,1);
去除:=S1 AND S2 AND S3 AND S4;
最高:=C<30;
最低:=C>2;
X:=最高 AND 最低 AND 去除;

{黑盘手牛股}
M1:=V/700000000;
M2:=1.1*(MAX(H,REF(C,1))/MIN(L,REF(C,1))-1);
M3:=2.5*MAX(M1,M2);
M4:=DMA(C,M3);
M5:=SMA(20*(M4/REF(M4,1)-1),2,1);
M6:=EMA(M5,2);
M7:=0.24;
M8:=C>=REF(C,1);
XX:= IF(M5>M7 AND M6>=0.005 AND M8,1,0);
XXX:=CROSS(XX,0.5) AND COUNT(XX>0.5,10)=1;
QB:="KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043 AND "MACD.MACD">0 AND "MACD.DEA">0;
LS:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
LQ:=FILTER(LS,28)*100 AND L>REF(C,1)*0.93;
XG:=QB OR LQ AND XXX;
M11:=9;
M12:=10;
B01:=C/REF(C,1)>1+0.01*M11;
B02:=EXIST(C/REF(C,1)>1+0.01*M11,M12);
B03:=C/REF(C,1)>1+0.01*M11;
MM:=IF(B01+B02+B03=3,1,0);
CC:=(H-C)/(C-O)<0.33;
DD:=(C/REF(C,1)-1)>=0.0502 AND C>REF(C,1) AND (O-L)/(C-O)>=1.48 AND L<REF(L,1) AND L<REF(L,2);
EE:=(C/REF(C,1)-1)>=0.08;
AA:=V>REF(V,1)*1.9 AND C>REF(C,1) AND C/REF(C,1)-1>=0.049 AND CC;
BB:=(C/REF(C,1)-1)>=0.0502 AND C>REF(C,1) AND V>REF(V,1) AND V>REF(V,1)*2.5 AND CC;
CCB:=EMA(2.055*EMA(EMA(H,34),34)-EMA(EMA(L,34),34),5),COLORCYAN,LINETHICK2;
YDXG:=IF(FILTER(AA OR BB OR DD OR EE AND CCB>C AND X,34),1,0) AND MM;
黑盘手:IF(XG OR YDXG AND X,1,0);

STICKLINE(黑盘手,3,2,1,0),COLORLIBLUE;
DRAWTEXT(黑盘手,2.7,' 黑盘手'),COLORCYAN;


MA10:=MA(CLOSE,10);
MA54:=MA(CLOSE,54);
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:=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.065 AND FLIGA AND VARAA;
STICKLINE(妖股跑不掉,1.5,2.5,1,0),COLORWHITE;
DRAWTEXT(妖股跑不掉,2,' 妖股跑不掉'),COLORGREEN;


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

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

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