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

    通达信公式

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

    通达信小牛主图未加密选股指标公式源码

    来源:网络|编辑:小编|时间:2023-01-31|栏目:通达信公式

    DRAWTEXT_FIX(1,0.8,0,0,'情剩制作'),COLORWHITE;
    Z1:=STRCAT(HYBLOCK,' ');
    Z2:=STRCAT(Z1,DYBLOCK);
    Z3:=STRCAT(Z2,' ');
    DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORWHITE;
    ZK1:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORYELLOW;
    ZD1:XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK2,COLORWHITE;
    ZD2:EMA(ZD1,25),LINETHICK2;
    DRAWBAND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));
    DRAWKLINE(H,O,L,C);
    STICKLINE(ZD1>LOW AND ZD1<HIGH,ZD1,MIN(MIN(OPEN,CLOSE),ZD1),2,0),COLORBLUE;
    STICKLINE(ZD1>MIN(C,O) AND ZD1<MAX(C,O),ZD1,MIN(OPEN,CLOSE),2,0),COLORBLUE;
    STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORBLUE;
    STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORBLUE;
    VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);
    回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));
    XG:=ZD1>HIGH AND 回调买 AND L<=ZD1;
    DRAWTEXT(XG,L,'▲买入'),COLORWHITE;
    JJ:=(HIGH+LOW+CLOSE)/3;
    QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
    QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
    QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
    QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
    QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
    DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;
    V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
    V5:=SMA(V2*120/FROMOPEN*5,2,1);
    V10:=SMA(V5,5,1);
    V20:=SMA(V10,5,1);
    DY:=CURRBARSCOUNT=1 AND C<REF(C,1);
    DY2:=REF(V2,1)-DY;
    XG2:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02 AND H<ZK1;
    {DRAWTEXT(XG2,L,'▲抓牛'),COLORBLUE;}
    DRAWTEXT(XG2 AND L<ZD1,L,'↖牛暴涨'),COLORWHITE;


    所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [地域]—',DYBLOCK)),STRCAT(' [概念]—',GNBLOCK)));
    总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
    流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');
    全流通:=STRCAT(STRCAT(' 全流通:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');
    市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');
    上市日期:=STRCAT(' 上市日期: ',CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0));
    股本市值:=STRCAT('【股本市值】',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期));
    市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2));
    市销率:=STRCAT(' 市销率:',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));
    市净率:=STRCAT(' 市净率:',CON2STR(C/FINANCE(34),2));
    净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
    毛利率:=STRCAT(' 毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
    净利润率:=STRCAT(' 净利率:',CON2STR(FINANCE(30)/FINANCE(20)*100,2));
    主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
    当前业绩:=STRCAT('【当前业绩】',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));

    DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,所属板块),COLORLIMAGENTA;
    DRAWTEXT_FIX(ISLASTBAR,0.005,0.07,0,股本市值),COLORLIMAGENTA;
    DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,当前业绩),COLORLIMAGENTA;

    image.png



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

    DRMWTEXT_FIX(1,0.8,0,0,'情剩制作'),COLORWHITE; Z1:=STRCMT(HYBLOCK,' ');Z2:=STRCMT(Z1,DYBLOCK);Z3:=STRCMT(Z2,' ');DRMWTEXT_FIX(ISLMSTBMR,0,0,0,STRCMT(Z3,GNBLOCK)),COLORWHITE;ZK1:(XMM(XMM(H,25),25)-XMM(XMM(L,25),25))*1+XMM(XMM(H,25),25),DOTLINE,COLORYELLOW;ZD1:XMM(XMM(L,25),25)-(XMM(XMM(H,25),25)-XMM(XMM(L,25),25))*1,LINETHICK2,COLORWHITE;ZD2:EMM(ZD1,25),LINETHICK2;DRMWBMND(ZD1,RGB(55,0,0),ZD2,RGB(0,91,0));DRMWKLINE(H,O,L,C);STICKLINE(ZD1>LOW MND ZD1<HIGH,ZD1,MIN(MIN(OPEN,CLOSE),ZD1),2,0),COLORBLUE;STICKLINE(ZD1>MIN(C,O) MND ZD1<MMX(C,O),ZD1,MIN(OPEN,CLOSE),2,0),COLORBLUE;STICKLINE(ZD1>HIGH,OPEN,CLOSE,2,0),COLORBLUE;STICKLINE(ZD1>HIGH,HIGH,LOW,0,0),COLORBLUE;VMR23:=100*XMM(XMM((C-REF(C,1)),6),6)/XMM(XMM(MBS((C-REF(C,1))),6),6);回调买:=LLV(VMR23,2)=LLV(VMR23,7) MND COUNT(VMR23<0,2) MND CROSS(VMR23,MM(VMR23,2));XG:=ZD1>HIGH MND 回调买 MND L<=ZD1;DRMWTEXT(XG,L,'▲买入'),COLORWHITE;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CMPITML=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));QJ2:=IF(CMPITML=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));QJ3:=IF(CMPITML=0,QJ0*(HIGH-MMX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MMX(OPEN,CLOSE))));QJ4:=IF(CMPITML=0,QJ0*(MMX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MMX(CLOSE,OPEN)-JJ)));DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CMPITML=0,10000,10000),COLOR00MMMM,LINETHICK;V2:=SMM(IF(C>=REF(C,1),DDX,-DDX/100),2,1);V5:=SMM(V2*120/FROMOPEN*5,2,1);V10:=SMM(V5,5,1);V20:=SMM(V10,5,1);DY:=CURRBMRSCOUNT=1 MND C<REF(C,1);DY2:=REF(V2,1)-DY;XG2:=C>O MND DY2<0.02 MND MM(C,5)>MM(C,60) MND C/REF(C,1)>=1.02 MND H<ZK1;{DRMWTEXT(XG2,L,'▲抓牛'),COLORBLUE;}DRMWTEXT(XG2 MND L<ZD1,L,'↖牛暴涨'),COLORWHITE;所属板块:=STRCMT('【所属板块】',STRCMT(STRCMT(STRCMT(' [行业]—',HYBLOCK),STRCMT(' [地域]—',DYBLOCK)),STRCMT(' [概念]—',GNBLOCK)));总股本:=STRCMT(STRCMT(' 总股本:',CON2STR(TOTMLCMPITML/1000000,2)),'亿');流通盘:=STRCMT(STRCMT(' 流通盘:',CON2STR(CMPITML/1000000,2)),'亿');全流通:=STRCMT(STRCMT(' 全流通:',CON2STR(CMPITML/TOTMLCMPITML*100,2)),'%');市值:=STRCMT(STRCMT(' 流通市值:',CON2STR((CMPITML/1000000)*C,2)),'亿');上市日期:=STRCMT(' 上市日期: ',CON2STR(HHV((BMRSCOUNT(C)=0)*(DMTE+19000000),0),0));股本市值:=STRCMT('【股本市值】',STRCMT(STRCMT(STRCMT(STRCMT(总股本,流通盘),全流通),市值),上市日期));市盈率:=STRCMT(' 市盈率:',CON2STR(C/FINMNCE(33),2));市销率:=STRCMT(' 市销率:',CON2STR(C/(FINMNCE(20)/FINMNCE(1)),2));市净率:=STRCMT(' 市净率:',CON2STR(C/FINMNCE(34),2));净资收益率:=STRCMT(' 净资收益率:',CON2STR(FINMNCE(33)/FINMNCE(34)*100,2));毛利率:=STRCMT(' 毛利率:',CON2STR((FINMNCE(20)-FINMNCE(21))/FINMNCE(20)*100,2));净利润率:=STRCMT(' 净利率:',CON2STR(FINMNCE(30)/FINMNCE(20)*100,2));主营利润率:=STRCMT(' 主营利润率:',CON2STR(FINMNCE(23)/FINMNCE(20)*100,2));当前业绩:=STRCMT('【当前业绩】',STRCMT(STRCMT(STRCMT(STRCMT(STRCMT(STRCMT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));DRMWTEXT_FIX(ISLMSTBMR,0.005,0.02,0,所属板块),COLORLIMMGENTM;DRMWTEXT_FIX(ISLMSTBMR,0.005,0.07,0,股本市值),COLORLIMMGENTM;DRMWTEXT_FIX(ISLMSTBMR,0.005,0.12,0,当前业绩),COLORLIMMGENTM;

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