最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信主题投资主图

    正文概述    2024-04-14 15:03:37  

    M1(2 500 5)
    M2(2 500 13)
    M2( 2 500 55)
     

    {突破指示}
    AA:=CLOSE/REF(C,1)>=1.09;
    STICKLINE(AA,O,C,3,0),COLORYELLOW;
    STICKLINE(AA,L,H,0,0),COLORYELLOW;
    QH:=REF(H,2);
    QL:=REF(L,2);
    QO:=REF(O,2);
    QC:=REF(C,2);
    ZO:=REF(O,1);
    ZC:=REF(C,1);
    JYZHK:= ABS(QO-QC)/QO<0.02 AND ZO/ZC>1.02 AND ABS(O-C)/O<0.02 AND C>MA(C,30);
    JYZHV:=V JYZH:=JYZHK AND JYZHV;
    DRAWTEXT(JYZH,LOW/1.01,'★'),COLORRED;


    MA5:MA(CLOSE,5);
    MA10:MA(CLOSE,10);
    MA20:MA(CLOSE,20);
    MA60:MA(CLOSE,60);
    MA120:MA(CLOSE,120),COLORFF972F;
    金叉:=CROSS(MA5,MA10);
    DRAWTEXT(金叉,MA10*0.99,'←金叉买'),COLORYELLOW;
    二金叉:=CROSS(MA10,MA20);
    DRAWTEXT(二金叉,MA20*0.98,'←二金叉加仓'),COLOR1880FF;
    HH:=CONST(HHV(H,160));
    LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}
    HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04));
    HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08));
    HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12));
    HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16));
    HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20));
    HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24));

     

     

    DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;
    DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
    DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
    DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.00,0.06,0,'主题投资:')COLOR0000FF;
    DRAWTEXT_FIX(1,0.07,0.06,0,EXTERNSTR(0,1))COLOR0000FF;
    {股本市值}
    总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
    流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');
    全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
    市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
    上市天数:=STRCAT(' 上市天数: ',CON2STR(FINANCE(42),0));
    {上市日期:=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(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));
    {风险系数}
    X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
    X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替};
    X3:=FINANCE(23)/FINANCE(10)*3.3;
    X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}
    X5:=FINANCE(20)/FINANCE(15)*0.999;
    Z值:=X1+X2+X3+X4+X5;
    预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'));
    财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));
    优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));{理论上越大越好但不同行业有不同标准};
    现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));{缺长期负债或负债总额,理论上越大越好但不同行业有不同标准};
    财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比));
    {}
    DRAWTEXT_FIX(ISLASTBAR,0.00,0.12,0,股本市值),COLORGREEN;
    DRAWTEXT_FIX(ISLASTBAR,0.00,0.18,0,当前业绩),COLORGREEN;
    DRAWTEXT_FIX(ISLASTBAR,0.00,0.24,0,财务系数),COLORGREEN;

     

     

     


    C2:=REF(C,1);
    非ST涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
    涨停:=非ST涨停;
    STICKLINE(涨停,OPEN,CLOSE,2,0),COLOR00FFFF;
    STICKLINE(涨停,H,L,0,0),COLOR00FFFF;
    非ST跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
    跌停:=非ST跌停;
    STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
    STICKLINE(跌停,H,L,0,1),COLORGREEN;
    半涨1:=IF((C-C2)*100/C2>=(5-0.01*100/C2),1,0);
    半涨2:=IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);
    JRS:=半涨1 AND 半涨2 AND FINANCE(33)>0;
    STICKLINE(JRS,OPEN,CLOSE,2,0),COLOR0066FF;

    NUMBER:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1);


    N:=10;
    T1:=CONST(HHVBARS(V,N));
    T0:IF(CURRBARSCOUNT<=N+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),LINETHICK3,COLOR0000FF;
    IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT;
    DRAWTEXT(ISLASTBAR,T0,' 量能平台');
    DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;
    DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
    DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
    DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.00,0.06,0,'主题投资:')COLOR0000FF;
    DRAWTEXT_FIX(1,0.07,0.06,0,EXTERNSTR(0,1))COLOR0000FF;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信主题投资主图 加入收藏