通达信妖股起爆副图 自用竞价捉妖股连板 —年年翻几倍 有未来 源码

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
XX_2:=REF(CLOSE,1);
XX_3:=IF((CLOSE-XX_2)*100/XX_2>=5-0.01*100/XX_2,1,0);
MACD:=(DIF-DEA)*2;
红天数:=IF(MACD>0,BARSLAST(CROSS(MACD,0)),DRAWNULL);
绿天数:=IF(MACD<0,BARSLAST(CROSS(0,MACD)),DRAWNULL);
中线:0,COLORYELLOW;
VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);
VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
QG:=DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORGREEN,DOTLINE;
NOTEXT前高A:DRAWLINE(VA2,MACD,ISLASTBAR,REF(MACD,BARSLAST(VA2)),1),COLORWHITE,DOTLINE;
VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);
VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);
QD:=DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1),COLORYELLOW,DOTLINE;
红柱:BARSSINCEN(红天数=0,5)=0 AND REF(绿天数,3)>0 AND HIGH/REF(EMA(CLOSE,5),1)>0 AND C/REF(C,1)>1,COLORRED,NODRAW;
黄柱:BARSSINCEN(MACD>QG,8)=0 AND HIGH/REF(EMA(CLOSE,5),1)>0 AND C/REF(C,1)>1,COLORYELLOW,NODRAW;
XG:红柱 AND 黄柱 AND C/REF(C,1)>1.018,COLORWHITE,NODRAW;
DRAWICON(红柱,中线-0.01,1);
DRAWICON(黄柱,中线-0.01,9);
基准:=CONST(SUM(VA2,0));
前高:=基准=SUM(VA2,0) AND VA2;
前高1:=基准-1=SUM(VA2,0) AND VA2;
前高2:=基准-2=SUM(VA2,0) AND VA2;
前高3:=基准-3=SUM(VA2,0) AND VA2;
前高4:=基准-4=SUM(VA2,0) AND VA2;
距离G1:=BARSLAST(前高1);
距离G2:=BARSLAST(前高2);
距离G3:=BARSLAST(前高3);
距离G4:=BARSLAST(前高4);
基准2:=CONST(SUM(VA4,0));
前低:=基准2=SUM(VA4,0) AND VA4;
前低1:=基准2-1=SUM(VA4,0) AND VA4;
前低2:=基准2-2=SUM(VA4,0) AND VA4;
前低3:=基准2-3=SUM(VA4,0) AND VA4;
前低4:=基准2-4=SUM(VA4,0) AND VA4;
距离D1:=BARSLAST(前低1);
距离D2:=BARSLAST(前低2);
距离D3:=BARSLAST(前低3);
距离D4:=BARSLAST(前低4);
DRAWLINE(前高1,MACD,前高 AND MACD>=REF(MACD,距离G1),MACD,0),COLORYELLOW;
DRAWLINE(前高1,MACD,前高 AND MACD<REF(MACD,距离G1),MACD,0),COLORGREEN;
DRAWLINE(前高2,MACD,前高1 AND MACD>=REF(MACD,距离G2),MACD,0),COLORYELLOW;
DRAWLINE(前高2,MACD,前高1 AND MACD<REF(MACD,距离G2),MACD,0),COLORGREEN;
DRAWLINE(前高3,MACD,前高2 AND MACD>=REF(MACD,距离G3),MACD,0),COLORYELLOW;
DRAWLINE(前高3,MACD,前高2 AND MACD<REF(MACD,距离G3),MACD,0),COLORGREEN;
DRAWLINE(前高4,MACD,前高3 AND MACD>=REF(MACD,距离G4),MACD,0),COLORYELLOW;
DRAWLINE(前高4,MACD,前高3 AND MACD<REF(MACD,距离G4),MACD,0),COLORGREEN;
DRAWLINE(前低1,MACD,前低 AND MACD>=REF(MACD,距离D1),MACD,0),COLORYELLOW;
DRAWLINE(前低1,MACD,前低 AND MACD<REF(MACD,距离D1),MACD,0),COLORGREEN;
DRAWLINE(前低2,MACD,前低1 AND MACD>=REF(MACD,距离D2),MACD,0),COLORYELLOW;
DRAWLINE(前低2,MACD,前低1 AND MACD<REF(MACD,距离D2),MACD,0),COLORGREEN;
DRAWLINE(前低3,MACD,前低2 AND MACD>=REF(MACD,距离D3),MACD,0),COLORYELLOW;
DRAWLINE(前低3,MACD,前低2 AND MACD<REF(MACD,距离D3),MACD,0),COLORGREEN;
DRAWLINE(前低4,MACD,前低3 AND MACD>=REF(MACD,距离D4),MACD,0),COLORYELLOW;
DRAWLINE(前低4,MACD,前低3 AND MACD<REF(MACD,距离D4),MACD,0),COLORGREEN;
STICKLINE(MACD>0,MACD,0,2.5,1),COLORRED;
STICKLINE(MACD<0,MACD,0,2.5,1),COLORCYAN;
STICKLINE(MACD>QG,MACD,QG,1,0),COLORYELLOW;
STICKLINE(MACD<0 AND MACD<QD AND QD<0,MACD,QD,1,0),COLORBLUE;
X_1:=(-(HHV(EMA(CLOSE,5),14)-CLOSE))/CLOSE*5000;
X_2:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_3:=(20*X_2+19*REF(X_2,1)+18*REF(X_2,2)+17*REF(X_2,3)+16*REF(X_2,4)+15*REF(X_2,5)+14*REF(X_2,6)+13*REF(X_2,7)+12*REF(X_2,8)+11*REF(X_2,9)+10*REF(X_2,10)+9*REF(X_2,11)+8*REF(X_2,12)+7*REF(X_2,13)+6*REF(X_2,14)+5*REF(X_2,15)+4*REF(X_2,16)+3*REF(X_2,17)+2*REF(X_2,18)+REF(X_2,20))/210;
X_4:=MA(X_3,6);
X_5:=(X_3-X_4)*1.2;
X_6:=(CLOSE*2+HIGH+LOW)/4*10;
X_7:=EMA(X_6,6)-EMA(X_6,55);
X_8:=EMA(X_7,6);
X_9:=(X_7-X_8)*0.06;
X_10:=X_5+X_9;
X_11:=X_10>0;
X_12:=MA(CLOSE,3);
X_13:=MA(CLOSE,13);
X_14:=MA(CLOSE,34);
X_15:=X_12>=X_13 AND X_14>=REF(X_14,1);
X_16:=EMA(CLOSE,12);
X_17:=EMA(CLOSE,50);
X_18:=X_16-X_17>0;
X_19:=CLOSE/REF(CLOSE,1)-1;
X_20:=IF(X_15,2,0)+IF(X_11,2,0)+IF(X_18,2,0)+X_19;
X_21:=X_20/10+X_1/1000;
X_22:=IF(X_21>=0.5,X_21,0.5);
X_23:=X_22>REF(X_22,1) AND CROSS(X_22,0.8);
STICKLINE(X_22>=0.8 AND CLOSE>REF(CLOSE,1),0,IF(MACD>0,0-MACD,MACD),2,0),COLORMAGENTA; { COLORRED};



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

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

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