如何使用Microsoft Chart Control绘制TEMA指标 [英] How to plot TEMA indicator with Microsoft Chart Control

查看:154
本文介绍了如何使用Microsoft Chart Control绘制TEMA指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了两个系列:Series1(CandeleStick)和Series2(Line).我添加了积分和FinancialFormula:

I've added two series: Series1 (CandeleStick), Series2 (Line). I've added points and the FinancialFormula:

 public Form1() {
            InitializeComponent();
            chart1.Series[0].Points.Add(24.00, 25.00, 25.00, 24.875);
            chart1.Series[0].Points.Add(23.625, 25.125, 24.00, 24.875);
            chart1.Series[0].Points.Add(26.25, 28.25, 26.75, 27.00);
            chart1.Series[0].Points.Add(26.50, 27.875, 26.875, 27.25);
            chart1.Series[0].Points.Add(26.375, 27.50, 27.375, 26.75);
            chart1.Series[0].Points.Add(25.75, 26.875, 26.75, 26.00);
            chart1.Series[0].Points.Add(25.75, 26.75, 26.125, 26.25);
            chart1.Series[0].Points.Add(25.75, 26.375, 26.375, 25.875);
            chart1.Series[0].Points.Add(24.875, 26.125, 26.00, 25.375);
            chart1.Series[0].Points.Add(25.125, 26.00, 25.625, 25.75);
            chart1.Series[0].Points.Add(25.875, 26.625, 26.125, 26.375);
            chart1.Series[0].Points.Add(26.25, 27.375, 26.25, 27.25);
            chart1.Series[0].Points.Add(26.875, 27.25, 27.125, 26.875);
            chart1.Series[0].Points.Add(26.375, 27.125, 27.00, 27.125);
            chart1.Series[0].Points.Add(26.75, 27.875, 26.875, 27.75);
            chart1.Series[0].Points.Add(26.75, 28.375, 27.50, 27.00);
            chart1.Series[0].Points.Add(26.875, 28.125, 27.00, 28.00);
            chart1.Series[0].Points.Add(26.25, 27.875, 27.75, 27.625);
            chart1.Series[0].Points.Add(27.50, 28.75, 27.75, 28.00);
            chart1.Series[0].Points.Add(25.75, 28.25, 28.00, 27.25);
            chart1.Series[0].Points.Add(26.375, 27.50, 27.50, 26.875);
            chart1.Series[0].Points.Add(25.75, 27.50, 26.375, 26.25);
            chart1.Series[0].Points.Add(24.75, 27.00, 26.50, 25.25);
            chart1.DataManipulator.IsStartFromFirst = true;
            chart1.DataManipulator.FinancialFormula(FinancialFormula.TripleExponentialMovingAverage, "5", "Series1:Y4", "Series2:Y");
        }

但是我无法获得预期的结果.刚好在零水平线上.我在做什么错了?

But I can't get the expected result. Just line on zero level. What I'm doing wrong?

推荐答案

您的数据实际上已经存在.您需要调整轴范围的MinimumMaximum以及每个系列使用的轴:AxisYAxisY2.

Your data is actually there. You need to adjust Minimum and Maximum for your axis scale and also the axis used for each series: AxisY or AxisY2.

编辑:为了进行测试,如果您只是重复自己的价格模式:

EDIT: For the sake of testing, if you just repeat your own price pattern:

这篇关于如何使用Microsoft Chart Control绘制TEMA指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆