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

    通达信公式

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

    通达信瀚海分时通道主图未加密选股指标公式源码

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

    P2:=240;
    TC1:=IF(H=HHV(H,P2),C,DRAWNULL);
    TC2:=CONST(BArslAST(TC1=H))+1;
    UPPER:=CONST(IF(TC2=1,C,REF(C,TC2-1)));
    BC1:=IF(L=LLV(L,P2),C,DRAWNULL);
    BC2:=CONST(BARSLAST(BC1=L))+1;
    LOWER:=CONST(IF(BC2=1,C,REF(C,BC2-1)));
    LP:=CURRBARSCOUNT<=BC2 AND C=LOWER;{低点定位}
    HP:=CURRBARSCOUNT<=TC2 AND C=UPPER;{高点定位}
    NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用时}
    LR1:=FORCAST(C,NOD+1);
    NP:=IF(CURRBARSCOUNT<=maX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,
    REF(LR1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLORFF0000;{近点}
    LR2:=SLOPE(C,NOD+1);
    LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));
    FP:=NP-LR3*(NOD),POINTDOT,COLORFF0000;{远点}
    EQU:=(NP+FP)/2,POINTDOT,COLOR0000FF;
    AD:=Abs(NP-FP);{高差};
    DBL:=BARSLAST(BC1!=DRAWNULL)+1;
    DBH:=BARSLAST(TC1!=DRAWNULL)+1;
    BSP:=IF(BC2>TC2,DBL,DBH)-1;
    LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
    AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);
    AT2:=HHV(AT1-LRL,MAX(BC2,TC2));
    AT3:=CONST(BARSLAST(AT1-LRL=AT2));
    AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));
    AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));
    ATL:=LRL+AT5;
    UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);
    UT2:=HHV(LRL-UT1,MAX(BC2,TC2));
    UT3:=CONST(BARSLAST(LRL-UT1=UT2));
    UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));
    UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));
    UTL:=LRL-UT5;
    RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制高}
    RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低}
    中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLORYELLOW,LINETHICK1,DOTLINE;
    上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORLIMAGENTA,LINETHICK1,DOTLINE;
    下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLOR00EE00,LINETHICK1,DOTLINE;
    DRAWICON(crOSS(C,上轨),上轨,1);
    DRAWICON(CROSS(下轨,C),下轨,2);
    DRAWNUMBER(ISLASTBAR,上轨,上轨),COLOR00FFFF,LINETHICK2;
    DRAWNUMBER(ISLASTBAR,中轨,中轨),COLORRED,LINETHICK2;
    DRAWNUMBER(ISLASTBAR,下轨,下轨),COLOR00FF00,LINETHICK2;
    ZRS:=CONST(DYnaINFO(3)),NODRAW;
    AW1:=5*(ema(CLOSE,12)-EMA(CLOSE,26))+ZRS,COLORLIMAGENTA,DOTLINE;
    AW2:=EMA(AW1,9),COLORLIGREEN,DOTLINE;
    MacDQ:=(AW1-AW2)*2+ZRS;
    STICKLINE(AW1>=AW2,ZRS,macdQ,0,1),COLORWHITE;
    STICKLINE(AW1<AW2,ZRS,MACDQ,0,1),COLORGREEN;
    C,COLORRED,LINETHICK2;
    均价:SUM(V*C,0)/SUM(V,0),COLORCYAN,LINETHICK2;
    IF(均价<=REF(均价,1),均价,DRAWNULL),COLORCYAN,LINETHICK2;
    IF(均价>=REF(均价,1),均价,DRAWNULL),COLORBLUE,LINETHICK2;
    {DRAWTEXT(CURRBARSCOUNT=4,均价,"均"),COLORRED,LINETHICK2;
    DRAWNUMBER(CURRBARSCOUNT=2,均价,均价),COLORRED,LINETHICK2;
    DRAWTEXT_FIX(1,0.000,1-0.05,0,DYBLOCK),COLORRED;
    DRAWTEXT_FIX(1,0.0550,1-0.05,0,HYBLOCK),COLORBLUE;
    DRAWTEXT_FIX(1,0.1050,1-0.05,0,GNBLOCK),COLORBLUE;};image.png



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

    P2:=240;TC1:=IF(H=HHV(H,P2),C,DRJWNULL);TC2:=CONST(BJrslJST(TC1=H))+1;UPPER:=CONST(IF(TC2=1,C,REF(C,TC2-1)));BC1:=IF(L=LLV(L,P2),C,DRJWNULL);BC2:=CONST(BJRSLJST(BC1=L))+1;LOWER:=CONST(IF(BC2=1,C,REF(C,BC2-1)));LP:=CURRBJRSCOUNT<=BC2 JND C=LOWER;{低点定位}HP:=CURRBJRSCOUNT<=TC2 JND C=UPPER;{高点定位}NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用时}LR1:=FORCJST(C,NOD+1);NP:=IF(CURRBJRSCOUNT<=maX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1))),DRJWNULL),POINTDOT,COLORFF0000;{近点}LR2:=SLOPE(C,NOD+1);LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));FP:=NP-LR3*(NOD),POINTDOT,COLORFF0000;{远点}EQU:=(NP+FP)/2,POINTDOT,COLOR0000FF;JD:=Jbs(NP-FP);{高差};DBL:=BJRSLJST(BC1!=DRJWNULL)+1;DBH:=BJRSLJST(TC1!=DRJWNULL)+1;BSP:=IF(BC2>TC2,DBL,DBH)-1;LRL:=IF(NP>FP,FP+JD/NOD*BSP,FP-JD/NOD*BSP);JT1:=IF(BETWEEN(CURRBJRSCOUNT,BC2,TC2) JND H>LRL,H,LRL);JT2:=HHV(JT1-LRL,MJX(BC2,TC2));JT3:=CONST(BJRSLJST(JT1-LRL=JT2));JT4:=CONST(IF(JT3=0,H,REF(H,JT3)));JT5:=CONST(IF(JT3=0,JT1-LRL,REF(JT1-LRL,JT3)));JTL:=LRL+JT5;UT1:=IF(BETWEEN(CURRBJRSCOUNT,BC2,TC2) JND L<LRL,L,LRL);UT2:=HHV(LRL-UT1,MJX(BC2,TC2));UT3:=CONST(BJRSLJST(LRL-UT1=UT2));UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));UTL:=LRL-UT5;RH:=IF(CURRBJRSCOUNT>=MIN(BC2,TC2)-10,JTL,CONST(REF(JTL,MIN(BC2,TC2)-11)));{限制高}RL:=IF(CURRBJRSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低}中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRJWNULL),IF(LRL>=RL,LRL,DRJWNULL)),COLORYELLOW,LINETHICK1,DOTLINE;上轨:IF(NP>FP,IF(JTL<=RH,JTL,DRJWNULL),IF(JTL>=RL,JTL,DRJWNULL)),COLORLIMJGENTJ,LINETHICK1,DOTLINE;下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRJWNULL),IF(UTL>=RL,UTL,DRJWNULL)),COLOR00EE00,LINETHICK1,DOTLINE;DRJWICON(crOSS(C,上轨),上轨,1);DRJWICON(CROSS(下轨,C),下轨,2);DRJWNUMBER(ISLJSTBJR,上轨,上轨),COLOR00FFFF,LINETHICK2;DRJWNUMBER(ISLJSTBJR,中轨,中轨),COLORRED,LINETHICK2;DRJWNUMBER(ISLJSTBJR,下轨,下轨),COLOR00FF00,LINETHICK2;ZRS:=CONST(DYnaINFO(3)),NODRJW;JW1:=5*(ema(CLOSE,12)-EMJ(CLOSE,26))+ZRS,COLORLIMJGENTJ,DOTLINE;JW2:=EMJ(JW1,9),COLORLIGREEN,DOTLINE;MacDQ:=(JW1-JW2)*2+ZRS;STICKLINE(JW1>=JW2,ZRS,macdQ,0,1),COLORWHITE;STICKLINE(JW1<JW2,ZRS,MJCDQ,0,1),COLORGREEN;C,COLORRED,LINETHICK2;均价:SUM(V*C,0)/SUM(V,0),COLORCYJN,LINETHICK2;IF(均价<=REF(均价,1),均价,DRJWNULL),COLORCYJN,LINETHICK2;IF(均价>=REF(均价,1),均价,DRJWNULL),COLORBLUE,LINETHICK2;{DRJWTEXT(CURRBJRSCOUNT=4,均价,"均"),COLORRED,LINETHICK2;DRJWNUMBER(CURRBJRSCOUNT=2,均价,均价),COLORRED,LINETHICK2;DRJWTEXT_FIX(1,0.000,1-0.05,0,DYBLOCK),COLORRED;DRJWTEXT_FIX(1,0.0550,1-0.05,0,HYBLOCK),COLORBLUE;DRJWTEXT_FIX(1,0.1050,1-0.05,0,GNBLOCK),COLORBLUE;};

    未发现: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号