如何使用 Microsoft Chart Control 绘制 TEMA 指标

How to plot TEMA indicator with Microsoft Chart Control

我添加了两个系列:Series1 (CandeleStick)、Series2 (Line)。我已经添加了积分和 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");
        }

但是我得不到预期的结果。就在零水平线上。我做错了什么?

你的数据确实存在。您需要调整轴刻度的 MinimumMaximum 以及每个系列使用的轴:AxisYAxisY2.

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