您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信知识>>正文内容

请问这些数据怎么跟随K线大小而变化 [通达信]

  • 咨询内容:

    之前一直就有这个状况,最近认真研究财务数据,觉得有必要提出来。

     

    版主,请问这几个公式写出来的参考数值怎么会跟随K线大小而变化呢?(前面K线大一些准确率高一些,光标移动显示是没有变化的)

     

    函数都是通达信的固定财务数据,咋会这样子,有什么办法解决吗?

     


    此主题相关图片如下010.png:

     


    此主题相关图片如下011.png:


    此主题相关图片如下012.png:


    此主题相关图片如下013.png:


    此主题相关图片如下014.png:


    此主题相关图片如下015.png:


    此主题相关图片如下016.png:


    此主题相关图片如下017.png:


    此主题相关图片如下018.png:

     

     来源:C X H 9 9 .C O M )

  • 通达信技术部: 另外,还有现金流也是

     

  • 通达信客服: 你说的是专业财务函数还是关联财务函数?盘后数据是否下载完整?
    K线缩小时请求到更多的数据,如果你的公式正好需要这些数据,缩小K线的话数值自然也会发生变化;当然数据下载完整了话就没这个问题;
    可以的话公式发过来我测试下。

     

  • 网友交流:
    以下是引用修行姑娘在2017-7-25 9:58:00的发言:
    你说的是专业财务函数还是关联财务函数?盘后数据是否下载完整?
    K线缩小时请求到更多的数据,如果你的公式正好需要这些数据,缩小K线的话数值自然也会发生变化;当然数据下载完整了话就没这个问题;
    可以的话公式发过来我测试下。

    函数都有用到而且只提取财务数据,数据用不到K线上。版主你说的其它那几个情况都没有,公式如下:

    周期:=FINANCE(42);
    DRAWTEXT_FIX(1>0,0.0,0,0,'周期:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.03,0,0,周期),COLORFF8800;
    DRAWTEXT_FIX(1,0.07,0,0,'行业:'),COLOR0080FF;
    DRAWTEXT_FIX(1,0.10,0,0,HYBLOCK),COLORFF8822;
    DRAWTEXT_FIX(1,0.15,0,0,'地区:'),COLOR00FFFF;
    DRAWTEXT_FIX(1,0.18,0,0,DYBLOCK),COLORFF8822;
    {总市值}
    总值:=FINANCE(41){C*TOTALCAPITAL}/100000000;
    DRAWTEXT_FIX(1>0,0.23,0,0,'总值:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.26,0,0,总值),COLORFF8822;
    {流通市值}
    市值:=FINANCE(40){C*FINANCE(7)}/100000000;
    DRAWTEXT_FIX(1>0,0.31,0,0,'市值:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.34,0,0,市值),COLORFF8800;
    净资产:=FINANCE(34);
    DRAWTEXT_FIX(1>0,0.40,0,0,'净资产:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.44,0,0,净资产),COLORFF8822;
    市净率:=CLOSE/FINANCE(34);
    DRAWTEXT_FIX(1>0,0.48,0,0,'市净率:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.52,0,0,市净率),COLORFF8822;
    市销率:=FINANCE(1)*C/FINANCE(20);
    DRAWTEXT_FIX(1>0,0.55,0,0,'市销率:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.59,0,0,市销率),COLORFF8800;
    公积金:=FINANCE(18);
    DRAWTEXT_FIX(1>0,0.62,0,0,'公积金:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.66,0,0,公积金),COLORFF8800;
    未分配:=FINANCE(32);
    DRAWTEXT_FIX(1>0,0.69,0,0,'未分配:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.73,0,0,未分配),COLORFF8822;
    总资产:=FINANCE(10)/100000000;{亿元}
    DRAWTEXT_FIX(1>0,0.76,0.0,0,'总资产:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.80,0.0,0,总资产);
    预收:=FINVALUE(45)/100000000;
    DRAWTEXT_FIX(1>0,0.84,0,0,'预收:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.88,0,0,预收),COLORFF8822;

    股东:=FINANCE(8);
    DRAWTEXT_FIX(1>0,0.0,0.04,0,'股东:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.03,0.04,0,股东),COLORFF8800;
    {持股:=CAPITAL/FINANCE(8)/100;}
    均值:=FINANCE(40)/(FINANCE(8)*10000);
    DRAWTEXT_FIX(1>0,0.07,0.04,0,'均值:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.10,0.04,0,均值),COLORFF8822;
    现金流:=FINANCE(25)/FINANCE(7);
    DRAWTEXT_FIX(1>0,0.14,0.04,0,'现金流:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.18,0.04,0,现金流),COLORFF8800;
    负债率:=FINANCE(9);
    DRAWTEXT_FIX(1>0,0.22,0.04,0,'负债率:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.26,0.04,0,负债率),COLORFF8822;
    毛利率:=(FINANCE(20)-FINANCE(21))/FINANCE(20)*100,NODRAW;
    DRAWTEXT_FIX(1>0,0.30,0.04,0,'毛利率:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.34,0.04,0,毛利率),COLORFF8800;
    净利润率:=FINANCE(30)/FINANCE(20)*100;
    DRAWTEXT_FIX(1>0,0.38,0.04,0,'净利润率:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.43,0.04,0,净利润率),COLORFF8822;
    净收益率:=FINANCE(30)/FINANCE(19)*100,NODRAW;{FINANCE(33)/FINANCE(34)*100}
    DRAWTEXT_FIX(1>0,0.47,0.04,0,'净收益率:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.52,0.04,0,净收益率),COLORFF8800;
    净利润同比:=FINANCE(43);
    DRAWTEXT_FIX(1>0,0.56,0.04,0,'净利润同比:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.62,0.04,0,净利润同比),COLORFF8822;
    应收款:=FINANCE(22)/100000000;{亿元}
    DRAWTEXT_FIX(1>0,0.66,0.04,0,'应收款亿:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.71,0.04,0,应收款),COLORFF8800;
    投资收益:=FINANCE(24)/100000000;
    DRAWTEXT_FIX(1>0,0.75,0.04,0,'投资收益:'),COLOR00FFFF;
    DRAWNUMBER_FIX(1>0,0.8,0.04,0,投资收益);
    PE:=C/FINANCE(33);
    DRAWTEXT_FIX(1>0,0.84,0.04,0,'PE:'),COLOR007DFB;
    DRAWNUMBER_FIX(1>0,0.86,0.04,0,PE),COLORFF8800;

     

  • 网友交流:
    DRAWNUMBER_FIX这个函数引起的,这个函数的cond参数不确定具体的交易日的话,条件默认显示的是屏幕最左边一根K线的PE值;
    没必要用这个函数呀,直接输出PE不能满足需求?

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容