• 网站首页
  • 股票池
  • 通达信公式
  • 大智慧公式
  • 同花顺公式
  • 套装公式
  • 指标专题
  • 股票内参
  • 滚动播报

    通达信公式

    当前位置: 主页 > 通达信公式

    通达信逃顶组合K线图未加密选股指标公式源码

    来源:网络|编辑:小编|时间:2022-05-26|栏目:通达信公式

    PAA1:=maX(C,O)-MIN(C,O)<H-MAX(C,O);
    PAA2:=C<REF(C,1)*1.02 AND C>REF(C,1) AND (H-REF(H,1))/REF(C,1)<0.017 AND REF(L,1)>REF(L,2);
    PAA:=PAA1 OR PAA2;
    PAB:=REF(C,1)>REF(O,1) AND MAX(REF(C,1),REF(O,1))-MIN(REF(C,1),REF(O,1))>REF(C,2)*0.02;
    Pac:=L>(REF(H,1)+REF(L,1))/2;
    PAAA:=PAA AND PAB AND PAC;
    {PAAA今天实体长度小于上影线
    PAAB涨幅小于2%今天高点不超过昨天1.7%昨天最低价上升
    PAB昨天阳线实体幅度大于2%
    PAC今天最低价大于昨天的中间价}
    PBA:=HIGH-MAX(C,OPEN)>REF(C,1)*0.027;
    PBB:=(HIGH-MAX(C,OPEN))/REF(C,1)+(REF(H,1)-MAX(REF(C,1),REF(O,1)))/REF(C,2)>0.06;
    PBAB:=PBA OR PBB;
    PBC:=H>MAX(REF(O,1),REF(C,1));
    PBABC:=PBAB AND PBC;
    PBDA:=HIGH-MAX(C,OPEN)>REF(C,1)*0.02;
    PBDB:=(C-REF(C,1))/REF(C,1)>0.035 AND (REF(C,1)-REF(C,2))/REF(C,2)>0.035;
    PBD:=PBDA AND PBDB;
    PBBB:=PBABC OR PBD;
    {PBA长上影线2.7%
    PBB两天上影幅度之和大于3%
    PBC今天最高价大于昨天实体上线
    PBDA今天上影大于2%
    PBDB拉两根中阳线大于3.5%}
    跑:=PAAA OR PBBB;
    中阳小阴:PAAA,POINTDOT,COLORFFBB00;
    STICKLINE(中阳小阴,0,60,2,0),COLORFFBB00;
    长上影:PBBB,POINTDOT,COLORFFBB00;
    STICKLINE(PBBB,0,40,1,0),COLORRED;
    卖股不亏:IF(MA(H,13)<L*0.9,-20,0),STICK,COLORBLUE;
    {rsiG}
    LC := REF(CLOSE,1);
    VAR1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(Abs(CLOSE-LC),7,1)*100;
    VAR2:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
    VAR3:=ema(VAR2,21);
    VAR4:=EMA(EMA(EMA(VAR2,21),21),21);
    RSI1:=VAR1-50,COLORBLUE,LINETHICK2;
    RSI2:=VAR2-50,COLORWHITE,LINETHICK2;
    VAR5:=SMA(MAX(CLOSE-LC,0),21,1)/SMA(ABS(CLOSE-LC),21,1)*100;
    RSI3:=VAR5-50,COLORRED,LINETHICK2;
    V1:=MA(C,5)=HHV(MA(C,5),20);
    V2:=MA(C,5)>MA(C,20);
    V3:=COUNT(MA(C,1)>REF(C,1),3)=3;
    风险1:IF(V1 AND V2 AND V3,60,0),STICK,COLOR00FF00;
    V11:=MA(C,5)=HHV(MA(C,5),120);
    V21:=MA(C,5)>MA(C,120);
    V31:=COUNT(MA(C,1)>REF(C,1),3)=3;
    风险2:IF(V11 AND V21 AND V31,50,0),STICK,COLORFF00FF;
    短底:=STICKLINE(VAR1<-9 AND VAR1> REF(VAR1,1),VAR1-2,0,3,0),COLORCYAN;
    大底:=STICKLINE(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,0,7,0),COLORBLUE;
    买入准备:=VAR1<-9 AND VAR1> REF(VAR1,1),COLOR33CC00;
    VAR9:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
    短顶:STICKLINE(VAR9>9 AND FILTER(VAR9< REF(VAR9,1),5),20,0,7,0),COLORFF00FF;
    大顶:STICKLINE(VAR9>20 AND FILTER(VAR9< REF(VAR9,1),5),10,0,7,0),COLORFEDCBA;
    LCC:=REF(CLOSE,1);
    RSI5:=SMA(MAX(CLOSE-LCC,0),5,1)/SMA(ABS(CLOSE-LCC),5,1)*100;
    R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    A:=SMA(R,3,1);
    B:=SMA(A,3,1);
    CCC:=(B/2+40)*1.1;
    DD:=SMA(CCC,3,1);
    {【逃1】:IF(crOSS(DD,RSI5),40,0),STICK,LINETHICK1,COLOR00FF00; }
    {【逃2】:IF(CROSS(80,RSI5),20,0),STICK,LINETHICK2,COLOR00FF00;}
    逃顶1:IF((CROSS(DD,RSI5)),40,0),COLOR00FF00;
    逃顶2:IF((CROSS(80,RSI5)),20,0),COLORBLUE;
    VAR1A:=INDEXV*INDEXC;
    VAR2A:=EMA(VAR1A,5)/EMA(INDEXV,5);
    VAR3A:=(INDEXC-VAR2A)/VAR2A*100;
    VAR4A:=VAR3A<=-1.5 AND VAR3A>-100;
    VAR5A:=SUM(VAR4A>0,18)/SUM(VAR4A=0,18);
    VAR6A:=VAR5A<5 AND VAR5A>=0.25;
    VAR7A:=(LOW+HIGH+CLOSE)/3;
    VAR8A:=(VAR7A-MA(VAR7A,14))/(0.015*AVEDEV(VAR7A,14));
    VAR9A:=EMA(VAR8A,3);
    VARAA:=(HIGH+LOW+CLOSE)/3;
    VARBA:=SUM(MAX(0,HIGH-REF(VARAA,1)),26)/SUM(MAX(0,REF(VARAA,1)-LOW),26)*100;
    VARCA:=REF(MA(VARBA,3),2.2);
    VARDA:=REF(MA(VARBA,13),6.2);
    VAREA:=REF(MA(VARBA,89),36.6);
    VARFA:=CROSS(VARCA,VARBA) AND VARBA>150;
    {抄底:IF(VAR6A AND CROSS(VAR8A,VAR9A),60,0),COLORBLUE; }
    逃顶:IF(VARFA,60,0),COLORBLUE;
    V1A:=MA(C,3)=HHV(MA(C,3),7);
    V2A:=MA(C,3)>MA(C,5);
    V3A:=MA(V,5)>MA(V,10)*1.01;
    V4A:=COUNT(MA(C,1)>REF(C,1),2)=2;
    T:IF(V1A AND V2A AND V3A AND V4A,-20,0),COLORFFC7FF;
    {VAR33:=PEAKBARS(3,15,1)<10;
    VAR55:=IF(VAR33=1,2,0);
    顶A:= IF(VAR55=2,2,0);
    顶:IF(顶A>REF(顶A,1),50,0),COLORWHITE;含未来};image.png



    未来函数检测公式代码域:

    PJJ1:=maX(C,O)-MIN(C,O)<H-MJX(C,O);PJJ2:=C<REF(C,1)*1.02 JND C>REF(C,1) JND (H-REF(H,1))/REF(C,1)<0.017 JND REF(L,1)>REF(L,2);PJJ:=PJJ1 OR PJJ2;PJB:=REF(C,1)>REF(O,1) JND MJX(REF(C,1),REF(O,1))-MIN(REF(C,1),REF(O,1))>REF(C,2)*0.02;Pac:=L>(REF(H,1)+REF(L,1))/2;PJJJ:=PJJ JND PJB JND PJC;{PJJJ今天实体长度小于上影线PJJB涨幅小于2%今天高点不超过昨天1.7%昨天最低价上升PJB昨天阳线实体幅度大于2%PJC今天最低价大于昨天的中间价}PBJ:=HIGH-MJX(C,OPEN)>REF(C,1)*0.027;PBB:=(HIGH-MJX(C,OPEN))/REF(C,1)+(REF(H,1)-MJX(REF(C,1),REF(O,1)))/REF(C,2)>0.06;PBJB:=PBJ OR PBB;PBC:=H>MJX(REF(O,1),REF(C,1));PBJBC:=PBJB JND PBC;PBDJ:=HIGH-MJX(C,OPEN)>REF(C,1)*0.02;PBDB:=(C-REF(C,1))/REF(C,1)>0.035 JND (REF(C,1)-REF(C,2))/REF(C,2)>0.035;PBD:=PBDJ JND PBDB;PBBB:=PBJBC OR PBD;{PBJ长上影线2.7%PBB两天上影幅度之和大于3%PBC今天最高价大于昨天实体上线PBDJ今天上影大于2%PBDB拉两根中阳线大于3.5%}跑:=PJJJ OR PBBB;中阳小阴:PJJJ,POINTDOT,COLORFFBB00;STICKLINE(中阳小阴,0,60,2,0),COLORFFBB00;长上影:PBBB,POINTDOT,COLORFFBB00;STICKLINE(PBBB,0,40,1,0),COLORRED;卖股不亏:IF(MJ(H,13)<L*0.9,-20,0),STICK,COLORBLUE;{rsiG}LC := REF(CLOSE,1);VJR1:=SMJ(MJX(CLOSE-LC,0),7,1)/SMJ(Jbs(CLOSE-LC),7,1)*100;VJR2:=SMJ(MJX(CLOSE-LC,0),14,1)/SMJ(JBS(CLOSE-LC),14,1)*100;VJR3:=ema(VJR2,21);VJR4:=EMJ(EMJ(EMJ(VJR2,21),21),21);RSI1:=VJR1-50,COLORBLUE,LINETHICK2;RSI2:=VJR2-50,COLORWHITE,LINETHICK2;VJR5:=SMJ(MJX(CLOSE-LC,0),21,1)/SMJ(JBS(CLOSE-LC),21,1)*100;RSI3:=VJR5-50,COLORRED,LINETHICK2;V1:=MJ(C,5)=HHV(MJ(C,5),20);V2:=MJ(C,5)>MJ(C,20);V3:=COUNT(MJ(C,1)>REF(C,1),3)=3;风险1:IF(V1 JND V2 JND V3,60,0),STICK,COLOR00FF00;V11:=MJ(C,5)=HHV(MJ(C,5),120);V21:=MJ(C,5)>MJ(C,120);V31:=COUNT(MJ(C,1)>REF(C,1),3)=3;风险2:IF(V11 JND V21 JND V31,50,0),STICK,COLORFF00FF;短底:=STICKLINE(VJR1<-9 JND VJR1> REF(VJR1,1),VJR1-2,0,3,0),COLORCYJN;大底:=STICKLINE(VJR1<-20 JND FILTER(VJR1> REF(VJR1,1),5),VJR1-5,0,7,0),COLORBLUE;买入准备:=VJR1<-9 JND VJR1> REF(VJR1,1),COLOR33CC00; VJR9:=((CLOSE-MJ(CLOSE,6))/MJ(CLOSE,6)*100+(CLOSE-MJ(CLOSE,24))/MJ(CLOSE,24)*100+(CLOSE-MJ(CLOSE,32))/MJ(CLOSE,32)*100)/3;短顶:STICKLINE(VJR9>9 JND FILTER(VJR9< REF(VJR9,1),5),20,0,7,0),COLORFF00FF;大顶:STICKLINE(VJR9>20 JND FILTER(VJR9< REF(VJR9,1),5),10,0,7,0),COLORFEDCBJ;LCC:=REF(CLOSE,1);RSI5:=SMJ(MJX(CLOSE-LCC,0),5,1)/SMJ(JBS(CLOSE-LCC),5,1)*100;R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;J:=SMJ(R,3,1);B:=SMJ(J,3,1);CCC:=(B/2+40)*1.1;DD:=SMJ(CCC,3,1);{【逃1】:IF(crOSS(DD,RSI5),40,0),STICK,LINETHICK1,COLOR00FF00; }{【逃2】:IF(CROSS(80,RSI5),20,0),STICK,LINETHICK2,COLOR00FF00;}逃顶1:IF((CROSS(DD,RSI5)),40,0),COLOR00FF00;逃顶2:IF((CROSS(80,RSI5)),20,0),COLORBLUE;VJR1J:=INDEXV*INDEXC;VJR2J:=EMJ(VJR1J,5)/EMJ(INDEXV,5);VJR3J:=(INDEXC-VJR2J)/VJR2J*100;VJR4J:=VJR3J<=-1.5 JND VJR3J>-100;VJR5J:=SUM(VJR4J>0,18)/SUM(VJR4J=0,18);VJR6J:=VJR5J<5 JND VJR5J>=0.25;VJR7J:=(LOW+HIGH+CLOSE)/3;VJR8J:=(VJR7J-MJ(VJR7J,14))/(0.015*JVEDEV(VJR7J,14));VJR9J:=EMJ(VJR8J,3);VJRJJ:=(HIGH+LOW+CLOSE)/3;VJRBJ:=SUM(MJX(0,HIGH-REF(VJRJJ,1)),26)/SUM(MJX(0,REF(VJRJJ,1)-LOW),26)*100;VJRCJ:=REF(MJ(VJRBJ,3),2.2);VJRDJ:=REF(MJ(VJRBJ,13),6.2);VJREJ:=REF(MJ(VJRBJ,89),36.6);VJRFJ:=CROSS(VJRCJ,VJRBJ) JND VJRBJ>150;{抄底:IF(VJR6J JND CROSS(VJR8J,VJR9J),60,0),COLORBLUE; }逃顶:IF(VJRFJ,60,0),COLORBLUE;V1J:=MJ(C,3)=HHV(MJ(C,3),7);V2J:=MJ(C,3)>MJ(C,5);V3J:=MJ(V,5)>MJ(V,10)*1.01;V4J:=COUNT(MJ(C,1)>REF(C,1),2)=2;T:IF(V1J JND V2J JND V3J JND V4J,-20,0),COLORFFC7FF;{VJR33:=PEJKBJRS(3,15,1)<10;VJR55:=IF(VJR33=1,2,0);顶J:= IF(VJR55=2,2,0);顶:IF(顶J>REF(顶J,1),50,0),COLORWHITE;含未来};

    未发现:CJPITJL...

    未发现:COST...

    未发现:DYNJINFO...

    未发现:FINJNCE...

    未发现:LWINNER...

    未发现:WINNER...

    未发现:BJCKSET...

    未发现:BJRSNEXT...

    未发现:CURRBJRSCOUNT...

    未发现:DVOL...

    未发现:DOPEN...

    未发现:DCLOSE...

    未发现:DHIGH...

    未发现:DLOW...

    未发现:DRJWLINE...

    未发现:REFX...

    未发现:FLJTZIG...

    未发现:FLJTZIGJ...

    未发现:FFT...

    未发现:FILTERX...

    警惕!警惕!警惕!该公式包含未来函数:PEJK...

    未发现:PEJKJ...

    警惕!警惕!警惕!该公式包含未来函数:PEJKBJRS...

    未发现:PEJKBJRSJ...

    未发现:PLOYLINE...

    未发现:REFDJTE...

    未发现:TROUGH...

    未发现:TROUGHJ...

    未发现:TROUGHBJRS...

    未发现:XMJ...

    未发现:ZIG...

    未发现:ZIGJ...

    未发现:ZXNH...

    未发现:#YEJR...

    未发现:#MONTH...

    未发现:#WEEK...

    未发现:$ZIG...

    未发现:$PEJK...

    未发现:$PEJKBJRS...

    未发现:$TROUGH...

    未发现:$TROUGHBJRS...

    未发现:$FLJTZIG...

    未发现:$FLJTZIGJ...

    未发现:$PEJKJ...

    未发现:$PEJKBJRSJ...

    未发现:$TROUGHJ...

    未发现:$ZIGJ...

    未发现:$FFT...

    未发现:$BJCKSET...

    未发现:$WINNER...

    未发现:$LWINNER...

    未发现:$COST...

    未发现:$DYNJINFO...

    未发现:$FINJNCE...

    未发现:$DRJWLINE...


    免责声明 | 联系我们 | 服务协议

    重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

    如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

    联系QQ:875328188 | 邮箱:875328188@qq.com

    Copyright © 2002-2021 股票公式网 版权所有桂ICP备2022000688号