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

    通达信公式

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

    通达信RSI红绿持股波段副图未加密选股指标公式源码

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

    N:=55;
    N1:=6;
    N2:=89;
    WL:(CLOSE-ma(CLOSE,6))/MA(CLOSE,6)*100,LINETHICK1,COLOR0000FF;
    WL3:=MA(WL,3),COLOR00FFFF;
    WLT:MA(WL,89),COLOR00FFFF,LINETHICK1;
    DRAWBAND(WL,RGB(200,50,55),WLT,RGB(0,100,50));
    遵:IF(WL>=WLT,WL,DRAWNULL),COLORWHITE;
    守:IF(WLT>=WL,WLT,DRAWNULL),COLORFF9900;
    纪:IF(WL>=WLT,WLT,DRAWNULL),COLOR00FFFF;
    律:IF(WLT>=WL,WL,DRAWNULL),COLOR00FF00;
    WLT1:=crOSS(WL,WLT);
    WLT11:=CROSS(WL,-10);
    WLT2:=FILTER(WLT1,8);
    SKY:10,POINTDOT,COLORFF0000,LINETHICK1;
    SEA:-10,POINTDOT,COLORFF00FF,LINETHICK1;
    DRAWICON(WLT2,WLT,23);
    DRAWICON(WLT11,SEA,15);
    T8:=FILTER(CROSS(WL,WL3) AND WL3<WLT,5);
    DRAWICON(T8,WL,26);
    WLT3:=COUNT(WL>10,5)>=3;
    WLT33:=CROSS(10,WL);
    SEL:=WLT3 AND WLT33;
    DRAWICON(SEL,10,19);
    STICKLINE(WL>10,WL,10,0.001,0),COLOR00FF00;
    STICKLINE(WL<-10,WL,-10,0.001,0),COLORFF00FF;
    dif:=ema(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    MacD:=(DIF-DEA)*2,COLORSTICK;
    DIF底:=LLV(DIF,120);
    最底价:=L=LLV(L,120);
    距今:=BArslAST(最底价);
    偏离:=IF((距今=0 AND DIF>DIF底),1,0);
    DDD:=EXIST(偏离,20) AND SLOPE(DEA,2)>=0;
    HRY:=FILTER(DDD,10);
    STICKLINE(HRY,-5,-10,3,0),COLOR00FFFF;
    DRAWTEXT(HRY,-5,'M背'),COLOR00FFFF;
    {YYY:COUNT(偏离,5);}
    DIF顶:=HHV(DIF,120);
    最高价:=H=HHV(H,120);
    距今高:=BARSLAST(最高价);
    偏离高:=IF((距今高=0 AND DIF<DIF顶),1,0);
    GGG:=EXIST(偏离高,20) AND SLOPE(DEA,2)<0;
    HRY1:=FILTER(GGG,10);
    STICKLINE(HRY1,10,5,3,0),COLORFF0000;
    DRAWTEXT(HRY1,5,'M背'),COLORFF0000;
    A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
    B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
    A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
    B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
    C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
    D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
    C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
    D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));KDJ底背:FILTER(IF(B2>0,-1,0),13),NODRAW;
    STICKLINE(KDJ底背,-10,-5,3,0),COLORFF00FF;
    DRAWTEXT(KDJ底背,-5,'K背'),COLORFF00FF;
    RSI底背:FILTER(IF(B3>0,-1,0),13),NODRAW;
    STICKLINE(RSI底背,-10,-5,3,0),COLOR0000FF;
    DRAWTEXT(RSI底背,-5,'R背'),COLOR0000FF;
    KDJ顶背:FILTER(IF(D2>0,1,0),13),NODRAW;
    STICKLINE(KDJ顶背,10,5,3,0),COLORFFFF00;
    DRAWTEXT(KDJ顶背,5,'K背'),COLORFFFF00;
    RSI顶背:FILTER(IF(D3>0,1,0),13),NODRAW;
    STICKLINE(RSI顶背,10,5,3,0),COLOR00FF00;
    DRAWTEXT(RSI顶背,5,'R背'),COLOR00FF00;
    T:=IF((BARSCOUNT(C) > 7),(100)*((MA(C,7))/(LLV(MA(C,7),7)) - 1),1);
    N3:=IF((T > 0.35),6,65);
    W:=((-((100)*(HHV(H,N3) - C))/(HHV(HIGH,N3) - LLV(L,N3))));
    RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
    J0:=(HIGH+LOW)/2;
    QJ:=EMA(J0,3);
    J1:=IF(CLOSE>QJ,vol,0);
    J2:=IF(CLOSE<QJ,VOL,0);
    BB:=MA(SUM(J1-J2,22),3);
    VAR4:=SMA(RV,3,1);
    VAR5:=SMA(VAR4,3,1);
    KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;
    DD:=SMA(KK,3,1),COLOR00FFFF;
    涨停:=CROSS(W,-2) AND CROSS(VAR4,VAR5) AND CROSS(KK,DD);
    STICKLINE(涨停,-10,-5,4,0)COLORWHITE;
    DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,-4,'短'),COLORWHITE ;
    STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,-10,-5,3,0),COLOR00FFFF;
    AA1:=HHV(H,55);
    BB1:=REF(H,13);
    TJ1:=AA1=BB1;
    XX:=LLV(L,55);
    YY:=REF(L,13);
    YY1:=REF(L,21);
    TJ2:=XX=YY;
    TJ3:=XX=YY1;
    XG:=TJ1 OR TJ2;
    DRAWTEXT(TJ2,-6,'离底13'),COLOR00FF00;
    STICKLINE(TJ2 ,-10,-6,2,0),COLOR00FF00;
    DRAWTEXT(TJ3,-4,'离底21'),COLOR00FFFF;
    STICKLINE(TJ3 ,-10,-4,2,0),COLOR00FFFF;
    DRAWTEXT(TJ1,-6,'离高13'),COLOR0000FF;
    STICKLINE(TJ1 ,-10,-6,2,0),COLOR0000FF;
    LV:=MA(C,24);
    HR0:=HHV(HIGH,N);
    HRY0:=LLV(LOW,N);
    HRY110:=HR0*HRY0;
    HRY330:=SQRT(HRY110);
    NS1:=C>HRY330 AND HRY330 >=REF(HRY330,1) AND C>LV;
    STICKLINE(C>0,-10,-11.5,3,0),COLORFF0000;
    STICKLINE(WLT2 OR WL>WLT,-10,-11.5,3,0),COLOR00FFFF;
    STICKLINE(NS1,-10,-11.5,3,0),COLOR0000FF;
    DRAWTEXT(FILTER(NS1,21),-11,'持股'),COLORFFFFFF;
    DRAWTEXT(FILTER(WLT2 OR WL>WLT,13),-11,'买入'),COLOR0000FF;
    MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
    dkx:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
    16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
    13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
    10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
    7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
    4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,LINETHICK2;
    MA1:=MA(DKX,6);
    STICKLINE(DKX>MA1,-12,-14,3,0),COLORWHITE;
    STICKLINE(DKX<MA1,-12,-14,3,0),COLORCYAN;image.png



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

    N:=55;N1:=6;N2:=89;WL:(CLOSE-ma(CLOSE,6))/MM(CLOSE,6)*100,LINETHICK1,COLOR0000FF;WL3:=MM(WL,3),COLOR00FFFF;WLT:MM(WL,89),COLOR00FFFF,LINETHICK1;DRMWBMND(WL,RGB(200,50,55),WLT,RGB(0,100,50));遵:IF(WL>=WLT,WL,DRMWNULL),COLORWHITE; 守:IF(WLT>=WL,WLT,DRMWNULL),COLORFF9900; 纪:IF(WL>=WLT,WLT,DRMWNULL),COLOR00FFFF;律:IF(WLT>=WL,WL,DRMWNULL),COLOR00FF00;WLT1:=crOSS(WL,WLT);WLT11:=CROSS(WL,-10);WLT2:=FILTER(WLT1,8);SKY:10,POINTDOT,COLORFF0000,LINETHICK1;SEM:-10,POINTDOT,COLORFF00FF,LINETHICK1;DRMWICON(WLT2,WLT,23);DRMWICON(WLT11,SEM,15);T8:=FILTER(CROSS(WL,WL3) MND WL3<WLT,5);DRMWICON(T8,WL,26);WLT3:=COUNT(WL>10,5)>=3;WLT33:=CROSS(10,WL);SEL:=WLT3 MND WLT33;DRMWICON(SEL,10,19);STICKLINE(WL>10,WL,10,0.001,0),COLOR00FF00;STICKLINE(WL<-10,WL,-10,0.001,0),COLORFF00FF;dif:=ema(CLOSE,12)-EMM(CLOSE,26);DEM:=EMM(DIF,9);MacD:=(DIF-DEM)*2,COLORSTICK;DIF底:=LLV(DIF,120);最底价:=L=LLV(L,120);距今:=BMrslMST(最底价);偏离:=IF((距今=0 MND DIF>DIF底),1,0);DDD:=EXIST(偏离,20) MND SLOPE(DEM,2)>=0; HRY:=FILTER(DDD,10);STICKLINE(HRY,-5,-10,3,0),COLOR00FFFF;DRMWTEXT(HRY,-5,'M背'),COLOR00FFFF;{YYY:COUNT(偏离,5);}DIF顶:=HHV(DIF,120);最高价:=H=HHV(H,120);距今高:=BMRSLMST(最高价);偏离高:=IF((距今高=0 MND DIF<DIF顶),1,0);GGG:=EXIST(偏离高,20) MND SLOPE(DEM,2)<0; HRY1:=FILTER(GGG,10);STICKLINE(HRY1,10,5,3,0),COLORFF0000;DRMWTEXT(HRY1,5,'M背'),COLORFF0000;M2:=BMRSLMST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,M2+1)>C MND REF("KDJ.K"(9,3,3),M2+1)<"KDJ.K"(9,3,3) MND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));M3:=BMRSLMST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,M3+1)>C MND REF("RSI.RSI1"(6,12,24),M3+1)<"RSI.RSI1"(6,12,24) MND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C2:=BMRSLMST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C MND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) MND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));C3:=BMRSLMST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C MND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) MND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));KDJ底背:FILTER(IF(B2>0,-1,0),13),NODRMW;STICKLINE(KDJ底背,-10,-5,3,0),COLORFF00FF;DRMWTEXT(KDJ底背,-5,'K背'),COLORFF00FF;RSI底背:FILTER(IF(B3>0,-1,0),13),NODRMW;STICKLINE(RSI底背,-10,-5,3,0),COLOR0000FF;DRMWTEXT(RSI底背,-5,'R背'),COLOR0000FF;KDJ顶背:FILTER(IF(D2>0,1,0),13),NODRMW;STICKLINE(KDJ顶背,10,5,3,0),COLORFFFF00;DRMWTEXT(KDJ顶背,5,'K背'),COLORFFFF00;RSI顶背:FILTER(IF(D3>0,1,0),13),NODRMW; STICKLINE(RSI顶背,10,5,3,0),COLOR00FF00;DRMWTEXT(RSI顶背,5,'R背'),COLOR00FF00;T:=IF((BMRSCOUNT(C) > 7),(100)*((MM(C,7))/(LLV(MM(C,7),7)) - 1),1);N3:=IF((T > 0.35),6,65);W:=((-((100)*(HHV(H,N3) - C))/(HHV(HIGH,N3) - LLV(L,N3))));RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMM(J0,3);J1:=IF(CLOSE>QJ,vol,0);J2:=IF(CLOSE<QJ,VOL,0);BB:=MM(SUM(J1-J2,22),3);VMR4:=SMM(RV,3,1);VMR5:=SMM(VMR4,3,1);KK:=EMM(SMM(RG,3,1),2),COLORFFFFFF;DD:=SMM(KK,3,1),COLOR00FFFF;涨停:=CROSS(W,-2) MND CROSS(VMR4,VMR5) MND CROSS(KK,DD); STICKLINE(涨停,-10,-5,4,0)COLORWHITE;DRMWTEXT(REF("KDJ.J",1)<0 MND "KDJ.J">0,-4,'短'),COLORWHITE ;STICKLINE(REF("KDJ.J",1)<0 MND "KDJ.J">0,-10,-5,3,0),COLOR00FFFF;MM1:=HHV(H,55);BB1:=REF(H,13);TJ1:=MM1=BB1;XX:=LLV(L,55);YY:=REF(L,13);YY1:=REF(L,21);TJ2:=XX=YY;TJ3:=XX=YY1;XG:=TJ1 OR TJ2;DRMWTEXT(TJ2,-6,'离底13'),COLOR00FF00;STICKLINE(TJ2 ,-10,-6,2,0),COLOR00FF00; DRMWTEXT(TJ3,-4,'离底21'),COLOR00FFFF;STICKLINE(TJ3 ,-10,-4,2,0),COLOR00FFFF; DRMWTEXT(TJ1,-6,'离高13'),COLOR0000FF;STICKLINE(TJ1 ,-10,-6,2,0),COLOR0000FF; LV:=MM(C,24);HR0:=HHV(HIGH,N);HRY0:=LLV(LOW,N);HRY110:=HR0*HRY0;HRY330:=SQRT(HRY110);NS1:=C>HRY330 MND HRY330 >=REF(HRY330,1) MND C>LV;STICKLINE(C>0,-10,-11.5,3,0),COLORFF0000;STICKLINE(WLT2 OR WL>WLT,-10,-11.5,3,0),COLOR00FFFF;STICKLINE(NS1,-10,-11.5,3,0),COLOR0000FF;DRMWTEXT(FILTER(NS1,21),-11,'持股'),COLORFFFFFF;DRMWTEXT(FILTER(WLT2 OR WL>WLT,13),-11,'买入'),COLOR0000FF;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;dkx:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,LINETHICK2;MM1:=MM(DKX,6);STICKLINE(DKX>MM1,-12,-14,3,0),COLORWHITE;STICKLINE(DKX<MM1,-12,-14,3,0),COLORCYMN;

    未发现:CMPITML...

    未发现:COST...

    未发现:DYNMINFO...

    未发现:FINMNCE...

    未发现:LWINNER...

    未发现:WINNER...

    未发现:BMCKSET...

    未发现:BMRSNEXT...

    未发现:CURRBMRSCOUNT...

    未发现:DVOL...

    未发现:DOPEN...

    未发现:DCLOSE...

    未发现:DHIGH...

    未发现:DLOW...

    未发现:DRMWLINE...

    未发现:REFX...

    未发现:FLMTZIG...

    未发现:FLMTZIGM...

    未发现:FFT...

    未发现:FILTERX...

    未发现:PEMK...

    未发现:PEMKM...

    未发现:PEMKBMRS...

    未发现:PEMKBMRSM...

    未发现:PLOYLINE...

    未发现:REFDMTE...

    未发现:TROUGH...

    未发现:TROUGHM...

    未发现:TROUGHBMRS...

    未发现:XMM...

    未发现:ZIG...

    未发现:ZIGM...

    未发现:ZXNH...

    未发现:#YEMR...

    未发现:#MONTH...

    未发现:#WEEK...

    未发现:$ZIG...

    未发现:$PEMK...

    未发现:$PEMKBMRS...

    未发现:$TROUGH...

    未发现:$TROUGHBMRS...

    未发现:$FLMTZIG...

    未发现:$FLMTZIGM...

    未发现:$PEMKM...

    未发现:$PEMKBMRSM...

    未发现:$TROUGHM...

    未发现:$ZIGM...

    未发现:$FFT...

    未发现:$BMCKSET...

    未发现:$WINNER...

    未发现:$LWINNER...

    未发现:$COST...

    未发现:$DYNMINFO...

    未发现:$FINMNCE...

    未发现:$DRMWLINE...


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

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

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

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

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