ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Functions/MomentumDiv_Function.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class MomentumDiv_Function : Samples.BaseForm
{
private Steema.TeeChart.Styles.Line lineSeries1;
private Steema.TeeChart.Functions.MomentumDivision momentumDivision1;
private Steema.TeeChart.Styles.Line lineSeries2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.NumericUpDown numericUpDown1;
private System.Windows.Forms.CheckBox checkBox1;
private Steema.TeeChart.Tools.ColorLine colorLine1;
private Steema.TeeChart.Axis axis1;
private System.ComponentModel.IContainer components = null;
public MomentumDiv_Function()
{
// This call is required by the Windows Form Designer.
InitializeComponent();
this.lineSeries1.FillSampleValues(50);
this.lineSeries2.CheckDataSource();
// set the correct position for the blue line...
this.colorLine1.Value = this.lineSeries1.YValues.Minimum;
// function is = 100 * Value / (Previous 10th value)
this.momentumDivision1.Period = 10;
}
/// <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
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.lineSeries1 = new Steema.TeeChart.Styles.Line();
this.momentumDivision1 = new Steema.TeeChart.Functions.MomentumDivision();
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。