• T0短线操作


    公式来源与财经的谈股论金节目

    WebService地址

    http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    namespace T0短线计算公式
    {
        public partial class Form1 : Form
        {
            ChinaStockWebService.ChinaStockWebServiceSoapClient _ChinaStockWebService = new ChinaStockWebService.ChinaStockWebServiceSoapClient("ChinaStockWebServiceSoap");
           
            public Form1()
            {
                InitializeComponent();
               
            }

            private void Form1_Load(object sender, EventArgs e)
            {
                T0(txtCode.Text);
            }


            private void T0(string code)
            {
                //CDP(需求值) = (H+L+2C)/4;
                //H = 昨日最高价
                //L = 昨日最低价
                //C = 昨日收盘价           
                //最高值 = CDP+H-L
                //最低值 = CDP-(H-L)
                //近高值 = CDP*2-L
                //近低值 = CDP*2-H

                string[] s = _ChinaStockWebService.getStockInfoByCode(txtCode.Text);
                decimal c = Convert.ToDecimal(s[3]);
                decimal l = Convert.ToDecimal(s[7]);
                decimal h = Convert.ToDecimal(s[8]);
                decimal cdp= (h+l+2*c)/4;

                txtMax.Text = (cdp + h - l).ToString();
                txtMin.Text = (cdp - (h - l)).ToString();
                txtLowerMax.Text = (cdp * 2 - l).ToString();
                txtLowerMin.Text = (cdp * 2 - h).ToString();
            }

            private void btnSearch_Click(object sender, EventArgs e)
            {
                T0(txtCode.Text);
            }
        }
    }

  • 相关阅读:
    DataList嵌套DataList
    Enterprise Library: Data Access Application Block类设计分析篇
    一些web开发中常用的、做成cs文件的js代码 搜刮来的
    DataList小结
    kill 某个线程
    在JBOSS下发布Web程序
    调整命令行的列数和行数 mode con: cols=100 lines=10000
    了解JavaScript类
    http
    Notepad++文本比较插件:Compare
  • 原文地址:https://www.cnblogs.com/zyizyizyi/p/2497834.html
Copyright © 2020-2023  润新知