ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Functions/MACD_Function.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Steema.TeeChart.Functions;
namespace Steema.TeeChart.Samples
{
public class MACD_Function : Steema.TeeChart.Samples.BaseForm
{
private Steema.TeeChart.Styles.Candle candle1;
private Steema.TeeChart.Axis axis1;
private Steema.TeeChart.Styles.Line line1;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.NumericUpDown numericUpDown1;
private System.Windows.Forms.NumericUpDown numericUpDown2;
private System.Windows.Forms.NumericUpDown numericUpDown3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox3;
private System.ComponentModel.IContainer components = null;
public MACD_Function()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
candle1.FillSampleValues(200);
line1.Function = new Steema.TeeChart.Functions.MACDFunction(tChart1.Chart);
line1.CheckDataSource();
numericUpDown1.Value = Convert.ToDecimal((line1.Function as Steema.TeeChart.Functions.MACDFunction).Period);
numericUpDown2.Value = Convert.ToDecimal((line1.Function as Steema.TeeChart.Functions.MACDFunction).Period2);
numericUpDown3.Value = Convert.ToDecimal((line1.Function as Steema.TeeChart.Functions.MACDFunction).Period3);
// TODO: Add any initialization after the InitializeComponent call
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。