指标代码

F10 十档 增加亏损比例计算

作者:天量见天价,地量见地价发布时间:2019年12月23日

{第一列最左边}

{1}DRAWTEXT_FIX(ISLASTBAR ,0.01,0,0,STKNAME),COLORYELLOW;{名字}

{2}DRAWTEXT_FIX(ISLASTBAR ,0.01,0.06,0,CODE),COLORYELLOW;{代码}

{3}DRAWTEXT_FIX(ISLASTBAR ,0.01,0.12,0,HYBLOCK),COLORYELLOW;{所属行业}

{4}DRAWTEXT_FIX(ISLASTBAR ,0.01,0.18,0,DYBLOCK),COLORYELLOW;{所属地区}

{5}人均产值:=STRCAT(STRCAT('人均产值:     ',CON2STR(FINANCE(30)/FINANCE(56)/10000,0)),' 万');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.24,0,人均产值),COLORYELLOW;

{6}员工人数:=STRCAT(STRCAT('员工人数:     ',CON2STR((FINANCE(56)/10000),4)),' 万人');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.30,0,员工人数),COLORYELLOW;

{7}行业番倍:=STRCAT(STRCAT('行业番倍:     ',CON2STR(HYSYL*3,1)),' 年');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.36,0,行业番倍),COLORYELLOW,;

{8}利润回本:=STRCAT(STRCAT('利润回本:     ',CON2STR((FINANCE(1)*C)/FINANCE(30),0)),' 年');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.42,0,利润回本),COLORLIRED;

{9}经营现金流:=STRCAT(STRCAT('经营现金流:  ',CON2STR(FINANCE(25)/FINANCE(1),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.48,0,经营现金流),COLOR008080;

{10}总现金流量:=STRCAT(STRCAT('总现金流量:  ',CON2STR(FINANCE(26)/FINANCE(1),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.54,0,总现金流量),COLOR008080;

{11}净利润是:=STRCAT(STRCAT('净利润是:      ',CON2STR(FINANCE(30)/FINANCE(1),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.6,0,净利润是),COLOR00FF00;

{12}负债率是:=STRCAT(STRCAT('负债率是:     ',CON2STR((FINANCE(9)),2)),' %');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.66,0,负债率是),COLORLIGREEN;

{低于40%比较合适,超过60%较大风险,负债越高风险越大,与行业,举债营业}

{13}未分利润:=STRCAT(STRCAT('未分利润:    ',CON2STR(FINANCE(32),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.72,0,未分利润),COLOR008080;

{14}总资产是:=STRCAT(STRCAT('总资产是:    ',CON2STR(FINANCE(10)/100000000,0)),' 亿元');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.78,0,总资产是),COLOR008080;

{15}流通市值:=STRCAT(STRCAT('流通市值:     ',CON2STR((FINANCE(7)/100000000)*C,1)),' 亿');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.84,0,流通市值),COLORFF80FF;

{16}总市值是:=STRCAT(STRCAT('总市值是:     ',CON2STR((FINANCE(1)/100000000)*C,0)),' 亿');

DRAWTEXT_FIX(ISLASTBAR,0.01,0.9,0,总市值是),COLORFF80FF;

{17}DRAWTEXT_FIX(ISLASTBAR ,0.01,0.96,0,ZSBLOCK),COLORYELLOW;{所属指数}


{最数第二列}

{1}前收盘价:=STRCAT(STRCAT('前收盘价:   ',CON2STR(DYNAINFO(3),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.00,0,前收盘价),COLORYELLOW;

{2}今日现价:=STRCAT(STRCAT('今日现价:   ',CON2STR(DYNAINFO(7),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.06,0,今日现价),COLORYELLOW;

{3}每股年收:=STRCAT(STRCAT('每股年收:  ',CON2STR(FINANCE(33),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.12,0,每股年收),COLORLIBLUE;

{4}每股本季:=STRCAT(STRCAT('每股本季:  ',CON2STR(FINANCE(38),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.18,0,每股本季),COLORLIBLUE;

{5}季净资产:=STRCAT(STRCAT('季净资产:  ',CON2STR(FINANCE(35),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.24,0,季净资产),COLORYELLOW;

{6}股净资产:=STRCAT(STRCAT('股净资产:  ',CON2STR(FINANCE(19)/FINANCE(1),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.3,0,股净资产),COLORYELLOW;

{7}DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN<128,0.17,0.36,0,INTPART((34200+FROMOPEN*60)/3600));

{上午的时间小时0.17代表左右相对位置,0.36距上面的距离}

DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN>128,0.17,0.36,0,INTPART((34200+FROMOPEN*60+5400)/3600));

{下午的小时,开盘大于120,}

DRAWTEXT_FIX(1,0.21,0.36,1,'时'),COLORRED;

{字:时"的位置}

DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN<120,0.22,0.36,0,60*(((34200+FROMOPEN*60)/3600)-INTPART((34200+FROMOPEN*60)/3600)));

{上午的时间分种}

DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN>120,0.22,0.36,0,60*(((34200+FROMOPEN*60+5400)/3600)-INTPART((34200+FROMOPEN*60+5400)/3600)));

DRAWTEXT_FIX(1,0.26,0.36,1,'分'),COLORRED;

{下午的分钟的分字的位置}

{8}

N0:=STRCAT(CON2STR(YEAR,0),' 年 ');

Y:=STRCAT(CON2STR(MONTH,0),' 月 ');

R:=STRCAT(CON2STR(DAY,0),' 日 ');

SJ:=STRCAT(STRCAT(N0,Y), R);

DRAWTEXT_FIX(C>0,0.17,0.42,0,SJ)COLORYELLOW;

{9}

星期:=STRCAT(STRCAT('星期:  ',CON2STR(WEEKDAY,0)),' ');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.48,0,星期),COLORYELLOW;

{10}

股东户数:=STRCAT(STRCAT('股东户数:     ',CON2STR((FINANCE(8)/10000),4)),' 万人');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.54,0,股东户数),COLORYELLOW;

{11}人均持仓:=STRCAT(STRCAT('人均持仓:    ',CON2STR(FINANCE(1)/FINANCE(8)*C/10000,2)),' 万元');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.6,0,人均持仓),COLORYELLOW;

{12}上市至今:=STRCAT(STRCAT('上市至今:     ',CON2STR(FINANCE(42)/365,1)),' 年');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.66,0,上市至今),COLORYELLOW;

{13}毛利润是:=STRCAT(STRCAT('毛利润是:      ',CON2STR(FINANCE(21)/FINANCE(20)*100,1)),' %');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.72,0,毛利润是),COLOR00FF00;

{14}分红利息:=STRCAT(STRCAT('分红利息:      ',CON2STR(FINANCE(45),2)),' %');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.78,0,分红利息),COLOR00FF00;

{15}利润同比:=STRCAT(STRCAT('利润同比:      ',CON2STR(FINANCE(43),2)),' %');

DRAWTEXT_FIX(ISLASTBAR,0.17,0.84,0,利润同比),COLORLIRED;

{16}DRAWTEXT_FIX(ISLASTBAR ,0.17,0.9,0,FGBLOCK),COLORYELLOW;{所属风格如MSCI}

{17空不填数据}


{第三列}

{1}百分之零点五:=STRCAT(STRCAT('百分之零点五:   ',CON2STR(COST(0.5),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.0,0,百分之零点五),COLORYELLOW;

{2}百分之一获利:=STRCAT(STRCAT('百分之一获利:   ',CON2STR(COST(1),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.06,0,百分之一获利),COLORYELLOW;

{3}百分之二获利:=STRCAT(STRCAT('百分之二获利:   ',CON2STR(COST(2),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.12,0,百分之二获利),COLORFF00FF;

{4}百分之三获利:=STRCAT(STRCAT('百分之三获利:   ',CON2STR(COST(3),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.18,0,百分之三获利),COLORFF00FF;

{5}百分之四获利:=STRCAT(STRCAT('百分之四获利:   ',CON2STR(COST(4),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.24,0,百分之四获利),COLORBROWN;

{6}百分之五获利:=STRCAT(STRCAT('百分之五获利:   ',CON2STR(COST(5),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.3,0,百分之五获利),COLORFF00FF;

{7}百分之六获利:=STRCAT(STRCAT('百分之六获利:   ',CON2STR(COST(6),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.36,0,百分之六获利),COLORFF00FF;

{8}百分之七获利:=STRCAT(STRCAT('百分之七获利:   ',CON2STR(COST(7),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.42,0,百分之七获利),COLORFF00FF;

{9}百分之八获利:=STRCAT(STRCAT('百分之八获利:   ',CON2STR(COST(8),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.48,0,百分之八获利),COLORFF00FF;

{10}百分之九获利:=STRCAT(STRCAT('百分之九获利:   ',CON2STR(COST(9),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.54,0,百分之九获利),COLORFF00FF;

{11}百分之十获利价:=STRCAT(STRCAT('百分之十获利价:   ',CON2STR(COST(10),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.6,0,百分之十获利价),COLORBROWN;


{12}百分之二十获利:=STRCAT(STRCAT('百分之二十获利:   ',CON2STR(COST(20),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.66,0,百分之二十获利),COLORFF00FF;

{13}百分之五十获利:=STRCAT(STRCAT('百分之五十获利:   ',CON2STR(COST(50),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.72,0,百分之五十获利),COLORBROWN;

{14}百分之八十获利:=STRCAT(STRCAT('百分之八十获利:   ',CON2STR(COST(80),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.78,0,百分之八十获利),COLORFF00FF;

{15}百分之百的获利:=STRCAT(STRCAT('百分之百的获利:   ',CON2STR(COST(99),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.34,0.84,0,百分之百的获利),COLORFF00FF;



{第四列}

开盘金额:=STRCAT(STRCAT('开盘金额:      ',CON2STR(DYNAINFO(15)/10000,2)),' 万');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.0,0,开盘金额),COLORLIMAGENTA;

{1}资金流向:=STRCAT(STRCAT('资金流向:      ',CON2STR((DYNAINFO(23)-DYNAINFO(22))*100*C/10000,0)),' 万');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.06,0,资金流向),COLORRED;

{2}主动买入:=STRCAT(STRCAT('主动买入:      ',CON2STR(DYNAINFO(23)*100*C/10000,0)),' 万');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.12,0,主动买入),COLORRED;

{3}主动卖出:=STRCAT(STRCAT('主动卖出:      ',CON2STR(DYNAINFO(22)*100*C/10000,0)),' 万');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.18,0,主动卖出),COLORRED;

{4}成交单数:=STRCAT(STRCAT('成交单数:      ',CON2STR(TRADENUM,0)),' 单');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.24,0,成交单数),COLOR00D900;

{5}大单买入:=STRCAT(STRCAT('大单买入:      ',CON2STR(LARGEINTRDVOL/100*C,0)),' 万');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.3,0,大单买入),COLORRED;

{6}大单卖出:=STRCAT(STRCAT('大单卖出:      ',CON2STR(LARGEOUTTRDVOL/100*C,0)),' 万');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.36,0,大单卖出),COLORGREEN;

{7}大单净入:=STRCAT(STRCAT('大单净入:      ',CON2STR((LARGEINTRDVOL-LARGEOUTTRDVOL)/100*C,0)),' 万');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.42,0,大单净入),COLORWHITE;

{8}每单均额:=STRCAT(STRCAT('每单均额:      ',CON2STR(AMOUNT/TRADENUM/10000,0)),' 万元');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.48,0,每单均额),COLOR00D900;

{9}买入大单:=STRCAT(STRCAT('买入大单:      ',CON2STR(LARGETRDINNUM,0)),' 单');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.54,0,买入大单),COLORRED;

{10}卖出大单:=STRCAT(STRCAT('卖出大单:      ',CON2STR(LARGETRDOUTNUM,0)),' 单');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.6,0,卖出大单),COLORGREEN;

{11}大单买差:=STRCAT(STRCAT('大单买差:      ',CON2STR((LARGETRDINNUM-LARGETRDOUTNUM),0)),' 单');

DRAWTEXT_FIX(ISLASTBAR,0.51,0.66,0,大单买差),COLORWHITE;

{16}

{12}

{13}

{14}DRAWTEXT_FIX(ISLASTBAR ,0.51,0.84,0,GNBLOCK),COLORYELLOW;{所属风格如MSCI}


{第五列}

净资产收益率:=STRCAT(STRCAT('净资产收益率: ',CON2STR(FINANCE(30)/FINANCE(19)*100*(4/FINANCE(37)),1)),'%');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.0,0,净资产收益率),COLOR00FF00;

{2}三年每股分红:=STRCAT(STRCAT('三年每股分红:  ',CON2STR(((FINANCE(31)/FINANCE(1)+FINANCE(33)))*3,1)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.06,0,三年每股分红),COLOR00FF00;

{每股年收益+每分配利润除以总股本除以之和X3,网友的算法}

{3}折现:=STRCAT(STRCAT('折现:  ',CON2STR((FINANCE(31)/FINANCE(1))+(FINANCE(22)/FINANCE(1))+(FINANCE(24)/FINANCE(1))-FINANCE(15)/FINANCE(1)+(FINANCE(26)/FINANCE(1))+(FINANCE(27)/FINANCE(1)),1)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.12,0,折现),COLOR00FF00;

{未分利润加应该收账的钱,加总现金加存货}

{3}二十年每股分红:=STRCAT(STRCAT('二十年每股分红:  ',CON2STR(FINANCE(33)*20,1)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.18,0,二十年每股分红),COLOR00FF00;

{3}十五年每股分红:=STRCAT(STRCAT('十五年每股分红:  ',CON2STR(FINANCE(33)*15,1)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.24,0,十五年每股分红),COLOR00FF00;

{3}十年每股分红:=STRCAT(STRCAT('十年每股分红:  ',CON2STR(FINANCE(33)*10,1)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.3,0,十年每股分红),COLOR00FF00;

{3}每股年化收益:=STRCAT(STRCAT('每股年化收益:  ',CON2STR(FINANCE(33)/C*100,3)),' %');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.36,0,每股年化收益),COLORWHITE;
{3}股息年化收益:=STRCAT(STRCAT('股息年化收益:  ',CON2STR(FINANCE(45)/C*10,2)),' %');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.42,0,股息年化收益),COLORWHITE;
{1}亏百分之五:=STRCAT(STRCAT('亏百分之五:   ',CON2STR(COST(10)-COST(10)*0.15,2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.48,0,亏百分之五),COLORYELLOW;
{1}亏百分之十:=STRCAT(STRCAT('亏百分之十:   ',CON2STR(COST(10)-COST(10)*0.2,2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.54,0,亏百分之十),COLORYELLOW;
{1}亏百分之⒂:=STRCAT(STRCAT('亏百分之⒂:   ',CON2STR(COST(10)-COST(10)*0.25,2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.6,0,亏百分之⒂),COLORYELLOW;
{1}亏百分之⒇:=STRCAT(STRCAT('亏百分之⒇:   ',CON2STR(COST(10)-COST(10)*0.3,2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.66,0,亏百分之⒇),COLORYELLOW;
{1}亏百分之三十:=STRCAT(STRCAT('亏百分之三十:   ',CON2STR(COST(10)-COST(10)*0.4,2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.72,0,亏百分之三十),COLORYELLOW;
{1}亏百分之四十:=STRCAT(STRCAT('亏百分之四十:   ',CON2STR(COST(10)-COST(10)*0.5,2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.68,0.78,0,亏百分之四十),COLORYELLOW;
{第六列}

{1}同行业涨:=STRCAT(STRCAT('同行业涨:      ',CON2STR(HY_INDEXADV,0)),' 家');

DRAWTEXT_FIX(ISLASTBAR,0.85,0.0,0,同行业涨),COLORRED;

同行业跌:=STRCAT(STRCAT('同行业跌:      ',CON2STR(HY_INDEXDEC,0)),' 家');

DRAWTEXT_FIX(ISLASTBAR,0.85,0.06,0,同行业跌),COLOR06FFF2;

上涨公司:=STRCAT(STRCAT('上涨公司:      ',CON2STR(DYNAINFO(60),0)),' 家');

DRAWTEXT_FIX(ISLASTBAR,0.85,0.12,0,上涨公司),COLOR0000FF;

下跌公司:=STRCAT(STRCAT('下跌公司:      ',CON2STR(DYNAINFO(61),0)),' 家');

DRAWTEXT_FIX(ISLASTBAR,0.85,0.18,0,下跌公司),COLOR00D900;

{}

上市总数:=STRCAT(STRCAT('上市总数:      ',CON2STR(DYNAINFO(61)+DYNAINFO(60),0)),' 家');

DRAWTEXT_FIX(ISLASTBAR,0.85,0.24,0,上市总数),COLOR0080FF;

{}{5}库存商品:=STRCAT(STRCAT('库存商品:  ',CON2STR(FINANCE(27)/FINANCE(1),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.85,0.3,0,库存商品),COLOR06FFF2;

{}{5}流动资产:=STRCAT(STRCAT('流动资产:  ',CON2STR(FINANCE(11)/FINANCE(1),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.85,0.36,0,流动资产),COLOR06FFF2;

{}{5}流动负债:=STRCAT(STRCAT('流动负债:  ',CON2STR(FINANCE(15)/FINANCE(1),2)),' 元');

DRAWTEXT_FIX(ISLASTBAR,0.85,0.42,0,流动负债),COLOR06FFF2;

 软件下载2 |
点击这里给我发消息 点击这里给我发消息
免责条款

    本站所刊之文字、图片、视频、软件和其它任何信息,均来源于互联网,不保证完全的准确,其目的仅供个人及朋友交流学习使用,不构成出价、要约或要约邀请,不构成任何合同或承诺的基础,不构成买卖任何投资工具或者达成任何交易的推荐,亦不构成站长或和其它关联公司等承担其它法定的或约定的责任和义务的前提,【股市有风险,投资需谨慎】,如发现本站有侵权内容请联系27995881@qq.com,本站将立刻删除。

| 今日IP[3] | 昨日IP[1] | 当前在线[1]