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

    通达信公式

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

    通达信换手率战法副图附图未加密选股指标公式源码

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

    正能量:vol,VOLSTICK,COLORWHITE;
    负能量:-VOL,VOLSTICK,COLORGREEN;

    年换手:SUM(VOL,YEAR)*100/CAPITAL,NODRAW;
    月换手:SUM(VOL,MONTH)*100/CAPITAL,NODRAW;
    周换手:SUM(VOL,WEEKDAY)*100/CAPITAL,NODRAW;
    日换手:IF((SETCODE==0||SETCODE==1),100*VOL,VOL)/(FInaNCE(7)/100),NODRAW;
    多头换手:SUM(acTINVOL,1)*100/CAPITAL,NODRAW,COLORBLUE;
    空头换手:SUM(ACTOUTVOL,1)*100/CAPITAL,NODRAW,COLORCYAN;


    五十换手:SUM(VOL,50)*100/CAPITAL,NODRAW;
    百日换手:SUM(VOL,100)*100/CAPITAL,NODRAW;


    {年月日星期}
    DA:=YEAR AND MONTH AND DAY;
    AA1:=STRCAT(CON2STR(YEAR,0),'年');
    AA2:=STRCAT(CON2STR(MONTH,0),'月');
    AA3:=STRCAT(CON2STR(DAY,0),'日');
    AA4:=STRCAT('【',IF(WEEKDAY=1,'星期一',IF(WEEKDAY=2,'星期二',
    IF(WEEKDAY=3,'星期三',IF(WEEKDAY=4,'星期四',IF
    (WEEKDAY=5,'星期五',IF(WEEKDAY=6,'星期六','星期日')))))));
    AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'】');
    DRAWTEXT_FIX(DA,0.88,0.991,0,AA),COLORRED;


    SAT:=(DVOL/DCLOSE)/(HHV(DVOL,20)/HHV(DCLOSE,20));
    当期量能饱和:=(IF(SAT>1,1,SAT)*100);
    DRAWTEXT_FIX(1,0.991,0.001,1,STRCAT(STRCAT('当期量能饱和: ',CON2STR(当期量能饱和,2)),'%')),COLORWHITE;


    DRAWTEXT_FIX(ISLASTBAR=1,0.0100,0,0,STKNAME), COLOR0000FF;
    DRAWTEXT_FIX(ISLASTBAR=1,0.0880,0,0,CODE),COLORRED;

    ASDF:=STRCAT(STRCAT('当前获利盘比例: ',CON2STR(WINNER(CLOSE)*100,2)),'%');
    DRAWTEXT_FIX(ISLASTBAR,0.300,0.010,0,ASDF),COLORRED;
    {ASDF1:=STRCAT(STRCAT('昨日获利盘比例: ',CON2STR(WINNER(REF(CLOSE,1))*100,2)),'%');}
    {DRAWTEXT_FIX(ISLASTBAR,0.700,0.010,0,ASDF1),COLORBLUE;}

    LC:=REF(CLOSE,1);
    Wrsi:=Sma(MAX(CLOSE-LC,0),5,1)/SMA(Abs(CLOSE-LC),5,1)*100;
    wr10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
    活跃:=(WRSI-WR10);
    活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));
    DRAWTEXT_FIX(1,0.707,0.01,1,STRCAT(STRCAT('活跃度比: ',CON2STR(活跃度比,2)),'%')),COLORGREEN;

    毛利比率:=(HHV(H,0)-LLV(L,0))/LLV(L,0)*100*0.44,NODRAW,COLORBLUE;
    DRAWTEXT_FIX(1,0.82800,0.01,1,STRCAT(STRCAT('毛利比率: ',CON2STR(毛利比率,2)),'%')),COLORBLUE;

    A111:=FINANCE(42);
    A211:=DATETODAY(CONST(DATE));
    A311:=A211-A111;
    XDATE:=DAYTODATE(A311)+19000000;
    上市日期:=STRCAT(' 上市日期: ',CON2STR(XDATE,0));
    DRAWTEXT_FIX(ISLASTBAR,0.45,0,0,上市日期),COLORLIMAGENTA;
    SSTS1:=STRCAT('上市',CON2STR(FINANCE(42),0));
    SSTS2:=STRCAT(SSTS1,'天');
    {DRAWTEXT_FIX(CURRBARSCOUNT=1,0.618,0.0,0,SSTS2),COLORGREEN;}
    SSTS3:=STRCAT('累计交易:',CON2STR(TOTALBARSCOUNT,0));
    SSTS4:=STRCAT(SSTS3,'周期');
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.168,0.001,0,SSTS4),COLORMAGENTA;

    {涨停统计}
    W11:=ema(C,1);
    涨停:=W11/REF(W11,1)>=1.095;
    ZTCS:=COUNT(涨停,BARSSINCE(涨停)+1);

    NTZZT1:=STRCAT('  距今',CON2STR(CONST(BArslAST(涨停)),0));
    NTZZT2:=STRCAT(NTZZT1,'天有涨停');
    GZT1:=STRCAT('  共涨停',CON2STR(ZTCS,0));GZT2:=STRCAT(GZT1,'次');
    ZTTJ1:=STRCAT(SSTS2,GZT2);
    ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);ZTTJ:=STRCAT('【涨停统计】',ZTTJ2);
    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.618,0.99,0,ZTTJ),COLORGREEN;


    Z1:=STRCAT(HYBLOCK,' ');
    Z2:=STRCAT(Z1,FGBLOCK);
    Z3:=STRCAT(Z2,DYBLOCK);
    Z4:=STRCAT(Z3,' ');
    HSL11:=V/CAPITAL*100;
    DRAWNUMBER(CURRBARSCOUNT=1 AND HSL11,L,HSL11),COLOR00FFFF;
    DRAWTEXT_FIX(ISLASTBAR,0.00,0.991,0,STRCAT(Z4,GNBLOCK)),COLORCYAN;
    DRAWTEXT_FIX(1,0.500,0.991,0,STRCAT('【自定板块】:',ZDBLOCK)),COLORBLUE;

    image.png



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

    正能量:vol,VOLSTICK,COLORWHITE;负能量:-VOL,VOLSTICK,COLORGREEN;年换手:SUM(VOL,YEMR)*100/CMPITML,NODRMW;月换手:SUM(VOL,MONTH)*100/CMPITML,NODRMW;周换手:SUM(VOL,WEEKDMY)*100/CMPITML,NODRMW;日换手:IF((SETCODE==0||SETCODE==1),100*VOL,VOL)/(FInaNCE(7)/100),NODRMW;多头换手:SUM(acTINVOL,1)*100/CMPITML,NODRMW,COLORBLUE;空头换手:SUM(MCTOUTVOL,1)*100/CMPITML,NODRMW,COLORCYMN;五十换手:SUM(VOL,50)*100/CMPITML,NODRMW;百日换手:SUM(VOL,100)*100/CMPITML,NODRMW;{年月日星期}DM:=YEMR MND MONTH MND DMY;MM1:=STRCMT(CON2STR(YEMR,0),'年');MM2:=STRCMT(CON2STR(MONTH,0),'月');MM3:=STRCMT(CON2STR(DMY,0),'日');MM4:=STRCMT('【',IF(WEEKDMY=1,'星期一',IF(WEEKDMY=2,'星期二',IF(WEEKDMY=3,'星期三',IF(WEEKDMY=4,'星期四',IF(WEEKDMY=5,'星期五',IF(WEEKDMY=6,'星期六','星期日')))))));MM:=STRCMT(STRCMT(STRCMT(MM1,MM2),STRCMT(MM3,MM4)),'】');DRMWTEXT_FIX(DM,0.88,0.991,0,MM),COLORRED;SMT:=(DVOL/DCLOSE)/(HHV(DVOL,20)/HHV(DCLOSE,20));当期量能饱和:=(IF(SMT>1,1,SMT)*100);DRMWTEXT_FIX(1,0.991,0.001,1,STRCMT(STRCMT('当期量能饱和: ',CON2STR(当期量能饱和,2)),'%')),COLORWHITE;DRMWTEXT_FIX(ISLMSTBMR=1,0.0100,0,0,STKNMME), COLOR0000FF;DRMWTEXT_FIX(ISLMSTBMR=1,0.0880,0,0,CODE),COLORRED;MSDF:=STRCMT(STRCMT('当前获利盘比例: ',CON2STR(WINNER(CLOSE)*100,2)),'%');DRMWTEXT_FIX(ISLMSTBMR,0.300,0.010,0,MSDF),COLORRED;{MSDF1:=STRCMT(STRCMT('昨日获利盘比例: ',CON2STR(WINNER(REF(CLOSE,1))*100,2)),'%');}{DRMWTEXT_FIX(ISLMSTBMR,0.700,0.010,0,MSDF1),COLORBLUE;}LC:=REF(CLOSE,1);Wrsi:=Sma(MMX(CLOSE-LC,0),5,1)/SMM(Mbs(CLOSE-LC),5,1)*100;wr10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃:=(WRSI-WR10);活跃度比:=IF(活跃>=0,(活跃+100)/2,100-MBS((活跃-100)/2));DRMWTEXT_FIX(1,0.707,0.01,1,STRCMT(STRCMT('活跃度比: ',CON2STR(活跃度比,2)),'%')),COLORGREEN;毛利比率:=(HHV(H,0)-LLV(L,0))/LLV(L,0)*100*0.44,NODRMW,COLORBLUE;DRMWTEXT_FIX(1,0.82800,0.01,1,STRCMT(STRCMT('毛利比率: ',CON2STR(毛利比率,2)),'%')),COLORBLUE;M111:=FINMNCE(42);M211:=DMTETODMY(CONST(DMTE));M311:=M211-M111;XDMTE:=DMYTODMTE(M311)+19000000;上市日期:=STRCMT(' 上市日期: ',CON2STR(XDMTE,0));DRMWTEXT_FIX(ISLMSTBMR,0.45,0,0,上市日期),COLORLIMMGENTM;SSTS1:=STRCMT('上市',CON2STR(FINMNCE(42),0));SSTS2:=STRCMT(SSTS1,'天');{DRMWTEXT_FIX(CURRBMRSCOUNT=1,0.618,0.0,0,SSTS2),COLORGREEN;}SSTS3:=STRCMT('累计交易:',CON2STR(TOTMLBMRSCOUNT,0));SSTS4:=STRCMT(SSTS3,'周期');DRMWTEXT_FIX(CURRBMRSCOUNT=1,0.168,0.001,0,SSTS4),COLORMMGENTM;{涨停统计}W11:=ema(C,1);涨停:=W11/REF(W11,1)>=1.095;ZTCS:=COUNT(涨停,BMRSSINCE(涨停)+1);NTZZT1:=STRCMT('  距今',CON2STR(CONST(BMrslMST(涨停)),0));NTZZT2:=STRCMT(NTZZT1,'天有涨停');GZT1:=STRCMT('  共涨停',CON2STR(ZTCS,0));GZT2:=STRCMT(GZT1,'次');ZTTJ1:=STRCMT(SSTS2,GZT2);ZTTJ2:=STRCMT(ZTTJ1,NTZZT2);ZTTJ:=STRCMT('【涨停统计】',ZTTJ2);DRMWTEXT_FIX(CURRBMRSCOUNT=1,0.618,0.99,0,ZTTJ),COLORGREEN;Z1:=STRCMT(HYBLOCK,' ');Z2:=STRCMT(Z1,FGBLOCK);Z3:=STRCMT(Z2,DYBLOCK);Z4:=STRCMT(Z3,' ');HSL11:=V/CMPITML*100; DRMWNUMBER(CURRBMRSCOUNT=1 MND HSL11,L,HSL11),COLOR00FFFF;DRMWTEXT_FIX(ISLMSTBMR,0.00,0.991,0,STRCMT(Z4,GNBLOCK)),COLORCYMN;DRMWTEXT_FIX(1,0.500,0.991,0,STRCMT('【自定板块】:',ZDBLOCK)),COLORBLUE;

    警惕!警惕!警惕!该公式包含未来函数: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号