Example #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            chartview = new TChart();
            chartview.Frame = new RectangleF(0, 0, 320, 460);

            //���ͤ��P�������Ϫ�
            switch (chart)
            {
                case ChartType.Bar:
                    var Barstyle = new Steema.TeeChart.Styles.Bar();
                    Barstyle.FillSampleValues(samples);
                    Barstyle.ShowInLegend = false;
                    Barstyle.Marks.Visible = true;
                    chartview.Series.Add(Barstyle);
                    break;

                case ChartType.Candle:
                    var Candlestyle = new Steema.TeeChart.Styles.Candle();
                    Candlestyle.FillSampleValues(samples);
                    Candlestyle.ShowInLegend = false;
                    Candlestyle.Marks.Visible = true;
                    chartview.Series.Add(Candlestyle);
                    break;

                case ChartType.Bubble:
                    var Bubblestyle = new Steema.TeeChart.Styles.Bubble();
                    Bubblestyle.FillSampleValues(samples);
                    Bubblestyle.ShowInLegend = false;
                    Bubblestyle.Marks.Visible = true;
                    chartview.Series.Add(Bubblestyle);
                    break;

                case ChartType.Radar:
                    var Radarstyle = new Steema.TeeChart.Styles.Radar();
                    Radarstyle.FillSampleValues(samples);
                    Radarstyle.ShowInLegend = false;
                    Radarstyle.Marks.Visible = true;
                    chartview.Series.Add(Radarstyle);
                    break;

                case ChartType.Tower:
                    var Towerstyle = new Steema.TeeChart.Styles.Tower();
                    Towerstyle.FillSampleValues(samples);
                    Towerstyle.ShowInLegend = false;
                    Towerstyle.Marks.Visible = true;
                    chartview.Series.Add(Towerstyle);
                    break;
            }
            View.AddSubview(chartview);
        }
 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_OBV));
     this.candle1      = new Steema.TeeChart.Styles.Candle();
     this.axis1        = new Steema.TeeChart.Axis(this.components);
     this.volume1      = new Steema.TeeChart.Styles.Volume();
     this.axis2        = new Steema.TeeChart.Axis(this.components);
     this.obvFunction1 = new Steema.TeeChart.Functions.OBVFunction();
     this.line1        = new Steema.TeeChart.Styles.Line();
     this.axis3        = new Steema.TeeChart.Axis(this.components);
     this.chartContainer.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Text = resources.GetString("textBox1.Text");
     //
     // tChart1
     //
     //
     //
     //
     this.tChart1.Aspect.View3D  = false;
     this.tChart1.Aspect.ZOffset = 0;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.MaximumOffset = 5;
     this.tChart1.Axes.Bottom.MinimumOffset = 5;
     this.tChart1.Axes.Custom.Add(this.axis1);
     this.tChart1.Axes.Custom.Add(this.axis2);
     this.tChart1.Axes.Custom.Add(this.axis3);
     this.tChart1.Cursor = System.Windows.Forms.Cursors.Default;
     //
     //
     //
     this.tChart1.Header.Lines = new string[0];
     //
     //
     //
     //
     //
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Panel.Brush.Gradient.Direction   = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal;
     this.tChart1.Panel.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.tChart1.Panel.MarginLeft = 8;
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Series.Add(this.volume1);
     this.tChart1.Series.Add(this.line1);
     this.tChart1.Size = new System.Drawing.Size(440, 205);
     //
     // candle1
     //
     //
     //
     //
     this.candle1.Brush.Color    = System.Drawing.Color.White;
     this.candle1.CloseValues    = this.candle1.YValues;
     this.candle1.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
     this.candle1.ColorEach      = false;
     this.candle1.CustomVertAxis = this.axis1;
     this.candle1.DateValues     = this.candle1.XValues;
     //
     //
     //
     this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
     //
     //
     //
     //
     //
     //
     this.candle1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.candle1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.candle1.Marks.Callout.Distance    = 0;
     this.candle1.Marks.Callout.Draw3D      = false;
     this.candle1.Marks.Callout.Length      = 10;
     this.candle1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.candle1.Pointer.Brush.Color = System.Drawing.Color.Red;
     this.candle1.Pointer.Draw3D      = false;
     this.candle1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Title    = "Candle";
     this.candle1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom;
     //
     //
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // axis1
     //
     this.axis1.EndPosition   = 37;
     this.axis1.Horizontal    = false;
     this.axis1.MaximumOffset = 5;
     this.axis1.MinimumOffset = 5;
     this.axis1.OtherSide     = false;
     //
     // volume1
     //
     //
     //
     //
     //this.volume1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     this.volume1.ClickableLine  = false;
     this.volume1.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     this.volume1.ColorEach      = false;
     this.volume1.CustomVertAxis = this.axis2;
     //
     //
     //
     this.volume1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     //
     //
     //
     //
     //
     //
     this.volume1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.volume1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.volume1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.volume1.Marks.Callout.Distance    = 0;
     this.volume1.Marks.Callout.Draw3D      = false;
     this.volume1.Marks.Callout.Length      = 10;
     this.volume1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.volume1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.volume1.Pointer.Brush.Color = System.Drawing.Color.Green;
     this.volume1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.volume1.Title    = "Volume";
     this.volume1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom;
     //
     //
     //
     this.volume1.XValues.DataMember = "X";
     this.volume1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.volume1.YValues.DataMember = "Y";
     //
     // axis2
     //
     this.axis2.EndPosition   = 66;
     this.axis2.Horizontal    = false;
     this.axis2.OtherSide     = false;
     this.axis2.StartPosition = 40;
     //
     // obvFunction1
     //
     this.obvFunction1.Period = 1;
     this.obvFunction1.Volume = this.volume1;
     //
     // line1
     //
     //
     //
     //
     this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
     //this.line1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
     this.line1.ColorEach      = false;
     this.line1.CustomVertAxis = this.axis3;
     this.line1.DataSource     = this.candle1;
     this.line1.Function       = this.obvFunction1;
     //
     //
     //
     this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(145)))), ((int)(((byte)(46)))), ((int)(((byte)(12)))));
     //
     //
     //
     //
     //
     //
     this.line1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.line1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.line1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.line1.Marks.Callout.Distance    = 0;
     this.line1.Marks.Callout.Draw3D      = false;
     this.line1.Marks.Callout.Length      = 10;
     this.line1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.line1.Pointer.Brush.Color = System.Drawing.Color.Yellow;
     this.line1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Title    = "OBV Function";
     this.line1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Custom;
     //
     //
     //
     this.line1.XValues.DateTime = true;
     this.line1.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // axis3
     //
     this.axis3.Horizontal    = false;
     this.axis3.OtherSide     = false;
     this.axis3.StartPosition = 68;
     //
     // Function_OBV
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(440, 317);
     this.Name = "Function_OBV";
     this.chartContainer.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #3
0
 /// <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.candle1        = new Steema.TeeChart.Styles.Candle();
     this.axis1          = new Steema.TeeChart.Axis(this.tChart1.Chart);
     this.line1          = new Steema.TeeChart.Styles.Line();
     this.checkBox1      = new System.Windows.Forms.CheckBox();
     this.groupBox1      = new System.Windows.Forms.GroupBox();
     this.label3         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
     this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
     this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
     this.label1         = new System.Windows.Forms.Label();
     this.checkBox2      = new System.Windows.Forms.CheckBox();
     this.checkBox3      = new System.Windows.Forms.CheckBox();
     this.panel1.SuspendLayout();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Name = "textBox1";
     this.textBox1.Text = "The MACD function (Moving Average Convergence Divergence) ,\r\nused in financial ch" +
                          "arts. ";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBox3);
     this.panel1.Controls.Add(this.checkBox2);
     this.panel1.Controls.Add(this.groupBox1);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Name = "panel1";
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     this.tChart1.Aspect.View3D            = false;
     //
     // tChart1.Axes
     //
     this.tChart1.Axes.Custom.Add(this.axis1);
     //
     // tChart1.Axes.Left
     //
     this.tChart1.Axes.Left.EndPosition = 48;
     //
     // tChart1.Axes.Left.Title
     //
     this.tChart1.Axes.Left.Title.Caption = "Candle";
     //
     // tChart1.Axes.Left.Title.Font
     //
     //
     // tChart1.Axes.Left.Title.Font.Brush
     //
     this.tChart1.Axes.Left.Title.Font.Brush.Color = System.Drawing.Color.Navy;
     //
     // tChart1.Axes.Left.Title.Font.Shadow
     //
     //
     // tChart1.Axes.Left.Title.Font.Shadow.Brush
     //
     this.tChart1.Axes.Left.Title.Font.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(192)));
     this.tChart1.Axes.Left.Title.Font.Shadow.Height      = 0;
     this.tChart1.Axes.Left.Title.Font.Shadow.Width       = 0;
     this.tChart1.Axes.Left.Title.Lines = new string[] {
         "Candle"
     };
     this.tChart1.Cursor = System.Windows.Forms.Cursors.Default;
     //
     // tChart1.Header
     //
     this.tChart1.Header.Lines = new string[] {
         "TeeChart"
     };
     this.tChart1.Header.Visible = false;
     //
     // tChart1.Legend
     //
     this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom;
     this.tChart1.Name             = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Series.Add(this.line1);
     //
     // candle1
     //
     //
     // candle1.Brush
     //
     this.candle1.Brush.Color    = System.Drawing.Color.Red;
     this.candle1.CloseValues    = this.candle1.YValues;
     this.candle1.DateValues     = this.candle1.XValues;
     this.candle1.DownCloseColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(0)));
     //
     // candle1.Marks
     //
     //
     // candle1.Marks.Symbol
     //
     //
     // candle1.Marks.Symbol.Shadow
     //
     this.candle1.Marks.Symbol.Shadow.Height  = 1;
     this.candle1.Marks.Symbol.Shadow.Visible = true;
     this.candle1.Marks.Symbol.Shadow.Width   = 1;
     //
     // candle1.Pointer
     //
     this.candle1.Pointer.Draw3D = false;
     this.candle1.Pointer.Style  = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Style          = Steema.TeeChart.Styles.CandleStyles.CandleBar;
     this.candle1.Title          = "Source";
     this.candle1.UpCloseColor   = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255)));
     //
     // candle1.XValues
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // candle1.YValues
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // axis1
     //
     this.axis1.Horizontal    = false;
     this.axis1.OtherSide     = false;
     this.axis1.StartPosition = 52;
     //
     // axis1.Title
     //
     this.axis1.Title.Angle   = 90;
     this.axis1.Title.Caption = "MACD";
     //
     // axis1.Title.Font
     //
     //
     // axis1.Title.Font.Brush
     //
     this.axis1.Title.Font.Brush.Color = System.Drawing.Color.Green;
     this.axis1.Title.Lines            = new string[] {
         "MACD"
     };
     //
     // line1
     //
     //
     // line1.Brush
     //
     this.line1.Brush.Color    = System.Drawing.Color.Green;
     this.line1.CustomVertAxis = this.axis1;
     this.line1.DataSource     = this.candle1;
     //
     // line1.Marks
     //
     //
     // line1.Marks.Symbol
     //
     //
     // line1.Marks.Symbol.Shadow
     //
     this.line1.Marks.Symbol.Shadow.Height  = 1;
     this.line1.Marks.Symbol.Shadow.Visible = true;
     this.line1.Marks.Symbol.Shadow.Width   = 1;
     //
     // line1.Pointer
     //
     this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Title         = "MACD";
     this.line1.VertAxis      = Steema.TeeChart.Styles.VerticalAxis.Custom;
     //
     // line1.XValues
     //
     this.line1.XValues.DateTime = true;
     this.line1.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // line1.YValues
     //
     this.line1.YValues.DataMember = "Close";
     //
     // checkBox1
     //
     this.checkBox1.Checked    = true;
     this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.Location   = new System.Drawing.Point(8, 8);
     this.checkBox1.Name       = "checkBox1";
     this.checkBox1.Size       = new System.Drawing.Size(88, 24);
     this.checkBox1.TabIndex   = 0;
     this.checkBox1.Text       = "Show MACD";
     this.checkBox1.Click     += new System.EventHandler(this.checkBox1_Click);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.numericUpDown3);
     this.groupBox1.Controls.Add(this.numericUpDown2);
     this.groupBox1.Controls.Add(this.numericUpDown1);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Location = new System.Drawing.Point(94, 1);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(189, 37);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Period";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(124, 16);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(14, 12);
     this.label3.TabIndex = 4;
     this.label3.Text     = "3:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(62, 16);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(14, 12);
     this.label2.TabIndex = 3;
     this.label2.Text     = "2:";
     //
     // numericUpDown3
     //
     this.numericUpDown3.Location      = new System.Drawing.Point(138, 13);
     this.numericUpDown3.Name          = "numericUpDown3";
     this.numericUpDown3.Size          = new System.Drawing.Size(44, 20);
     this.numericUpDown3.TabIndex      = 2;
     this.numericUpDown3.ValueChanged += new System.EventHandler(this.numericUpDown3_ValueChanged);
     //
     // numericUpDown2
     //
     this.numericUpDown2.Location      = new System.Drawing.Point(77, 13);
     this.numericUpDown2.Name          = "numericUpDown2";
     this.numericUpDown2.Size          = new System.Drawing.Size(44, 20);
     this.numericUpDown2.TabIndex      = 1;
     this.numericUpDown2.ValueChanged += new System.EventHandler(this.numericUpDown2_ValueChanged);
     //
     // numericUpDown1
     //
     this.numericUpDown1.Location      = new System.Drawing.Point(15, 13);
     this.numericUpDown1.Name          = "numericUpDown1";
     this.numericUpDown1.Size          = new System.Drawing.Size(44, 20);
     this.numericUpDown1.TabIndex      = 0;
     this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(3, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(14, 12);
     this.label1.TabIndex = 2;
     this.label1.Text     = "1:";
     this.label1.Click   += new System.EventHandler(this.label1_Click);
     //
     // checkBox2
     //
     this.checkBox2.Checked    = true;
     this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox2.Location   = new System.Drawing.Point(293, 4);
     this.checkBox2.Name       = "checkBox2";
     this.checkBox2.Size       = new System.Drawing.Size(136, 16);
     this.checkBox2.TabIndex   = 2;
     this.checkBox2.Text       = "Show line MACD &Exp.";
     this.checkBox2.Click     += new System.EventHandler(this.checkBox2_Click);
     //
     // checkBox3
     //
     this.checkBox3.Checked    = true;
     this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox3.Location   = new System.Drawing.Point(293, 22);
     this.checkBox3.Name       = "checkBox3";
     this.checkBox3.Size       = new System.Drawing.Size(136, 16);
     this.checkBox3.TabIndex   = 3;
     this.checkBox3.Text       = "Show &Histogram";
     this.checkBox3.Click     += new System.EventHandler(this.checkBox3_Click);
     //
     // MACDFunction
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(440, 317);
     this.Name = "MACDFunction";
     this.panel1.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     this.ResumeLayout(false);
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //any additional setup after loading the view, typically from a nib.
            r1 = new System.Drawing.RectangleF(0, 0, (float)this.View.Bounds.Width / 2, (float)this.View.Bounds.Height / 2);
            r2 = new System.Drawing.RectangleF((float)this.View.Bounds.Width / 2, 0, (float)this.View.Bounds.Width / 2, (float)this.View.Bounds.Height / 2);
            r3 = new System.Drawing.RectangleF(0, (float)this.View.Bounds.Height / 2, (float)this.View.Bounds.Width, (float)this.View.Bounds.Height / 2);

            chart1.Frame = r1;
            chart2.Frame = r2;
            chart3.Frame = r3;

            chart1.Header.Visible = false;
            chart1.Legend.Visible = false;
            chart2.Header.Visible = false;
            chart3.Header.Visible = false;

            this.View.AddSubview(chart1);
            this.View.AddSubview(chart2);
            this.View.AddSubview(chart3);

            Steema.TeeChart.Themes.BlackIsBackTheme theme1 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart1.Chart);
            Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart2.Chart);
            Steema.TeeChart.Themes.BlackIsBackTheme theme3 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart3.Chart);


            Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart1.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette);
            Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart2.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette);
            Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart3.Chart, Steema.TeeChart.Themes.Theme.OnBlackPalette);

            // Chart 1
            chart1.Panel.Gradient.Visible = false;
            chart1.Panel.Color            = Color.Black;
            Steema.TeeChart.Styles.Donut series1 = new Steema.TeeChart.Styles.Donut();
            chart1.Aspect.View3D = false;
            series1.FillSampleValues(4);
            series1.Circled           = true;
            series1.Pen.Width         = 5;
            series1.ExplodeBiggest    = 20;
            series1.Marks.Transparent = true;
            series1.Marks.Font.Color  = Color.FromArgb(144, 255, 255, 255);
            series1.Marks.Font.Size   = 20;
            chart1.Series.Add(series1);

            // Chart 2

            chart2.Aspect.View3D = false;
            chart2.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;
            chart2.Panel.Gradient.Visible       = false;
            chart2.Panel.Color = Color.Black;
            chart2.Walls.Back.Gradient.Visible    = true;
            chart2.Walls.Back.Gradient.StartColor = Color.FromArgb(255, 0, 0, 0);
            chart2.Walls.Back.Gradient.EndColor   = Color.DarkGray;
            chart2.Axes.Bottom.Grid.Visible       = false;
            chart2.Axes.Left.Increment            = 15;
            chart2.Axes.Bottom.Labels.Font.Size   = 15;
            chart2.Legend.Alignment   = LegendAlignments.Bottom;
            chart2.Legend.Transparent = true;
            Steema.TeeChart.Styles.Line series2 = new Steema.TeeChart.Styles.Line();
            series2.Add(15);
            series2.Add(25);
            series2.Add(16);
            series2.Add(30);
            series2.Add(40);
            series2.Add(35);
            series2.Add(25);
            series2.Add(50);
            series2.Pointer.Visible     = true;
            series2.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Circle;
            series2.LinePen.Width       = 3;
            series2.Pointer.Pen.Visible = false;
            Steema.TeeChart.Styles.Area series3 = new Steema.TeeChart.Styles.Area();
            series3.Add(10);
            series3.Add(15);
            series3.Add(6);
            series3.Add(15);
            series3.Add(10);
            series3.Add(25);
            series3.Add(20);
            series3.Add(24);
            series3.AreaLinesPen.Visible        = true;
            series3.AreaLinesPen.Width          = 3;
            series3.AreaLinesPen.Color          = series3.Color;
            series3.LinePen.Visible             = true;
            series3.LinePen.Width               = 5;
            series3.AreaLines.Visible           = false;
            series3.AreaBrush.Gradient.Visible  = true;
            series3.AreaBrush.Gradient.EndColor = Color.DarkGray;
            chart2.Series.Add(series2);
            chart2.Series.Add(series3);

            // Chart 3

            chart3.Aspect.View3D  = false;
            chart3.Legend.Visible = false;
            chart3.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;
            chart3.Panel.Gradient.Visible       = false;
            chart3.Panel.Color = Color.Black;
            chart3.Walls.Back.Gradient.Visible    = true;
            chart3.Walls.Back.Gradient.StartColor = Color.Black;
            chart3.Walls.Back.Gradient.EndColor   = Color.FromArgb(255, 79, 79, 79);
            chart3.Axes.Left.Labels.Separation    = 100;
            chart3.Axes.Left.Grid.Visible         = true;
            chart3.Axes.Left.Grid.Color           = Color.FromArgb(255, 79, 79, 79);
            chart3.Axes.Bottom.Grid.Color         = Color.FromArgb(255, 79, 79, 79);
            chart3.Axes.Left.AxisPen.Visible      = false;

            Steema.TeeChart.Styles.Candle candle = new Steema.TeeChart.Styles.Candle();
            Steema.TeeChart.Styles.Volume volume = new Steema.TeeChart.Styles.Volume();

            chart3.Series.Add(candle);
            chart3.Series.Add(volume);

            candle.FillSampleValues(70);
            candle.Pen.Visible = false;

            volume.FillSampleValues(70);
            volume.Color = Color.Yellow;

            Steema.TeeChart.Axis axis = chart3.Axes.Left;

            axis.StartPosition    = 0;
            axis.EndPosition      = 72;
            axis.Labels.Font.Size = 12;

            Steema.TeeChart.Axis customAxis = new Steema.TeeChart.Axis(chart3.Chart);
            customAxis.OtherSide = true;
            chart3.Axes.Custom.Add(customAxis);

            customAxis.StartPosition     = 74;
            customAxis.EndPosition       = 100;
            customAxis.Labels.Font.Color = Color.FromArgb(255, 255, 255, 240);
            customAxis.Labels.Font.Size  = 12;
            customAxis.Grid.Visible      = false;
            customAxis.AxisPen.Visible   = false;

            volume.CustomVertAxis = customAxis;

            chart3.Legend.Alignment   = LegendAlignments.Bottom;
            chart3.Legend.Transparent = true;
            chart3.Legend.Font.Size   = 12;
            chart3.Legend.TopLeftPos  = 0;

            chart3.Axes.Bottom.Labels.Font.Size = 12;


            /* Chart 4
             *
             * chart4.Aspect.View3D = false;
             * chart4.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;
             * chart4.Panel.Gradient.Visible = false;
             * chart4.Panel.Color = UIColor.Black.CGColor;
             * chart4.Walls.Back.Transparent=true;
             * Steema.TeeChart.Styles.HorizBar series5 = new Steema.TeeChart.Styles.HorizBar();
             * series5.Add(10);
             * series5.Add(50);
             * series5.Add(30);
             * series5.Add(70);
             * //series5.BarHeightPercent=100;
             * //series5.CustomBarWidth= 80;
             * series5.ColorEach = true;
             * //series5.Pen.Width = 3;
             * //series5.Gradient.Visible = true;
             * chart4.Series.Add(series5);
             * chart4.Axes.Bottom.Visible = false;
             */
        }
Example #5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Export_PDF));
     this.button1         = new System.Windows.Forms.Button();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.candle1         = new Steema.TeeChart.Styles.Candle();
     this.line1           = new Steema.TeeChart.Styles.Line();
     this.button2         = new System.Windows.Forms.Button();
     this.chartImage1     = new Steema.TeeChart.Tools.ChartImage();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(480, 56);
     this.textBox1.Text = "Easy export to PDF format. Export filter generates all pdf page elements.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.button2);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Location = new System.Drawing.Point(0, 56);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(480, 39);
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     this.tChart1.Aspect.View3D            = false;
     //
     // tChart1.Axes
     //
     //
     // tChart1.Axes.Bottom
     //
     //
     // tChart1.Axes.Bottom.Labels
     //
     this.tChart1.Axes.Bottom.Labels.DateTimeFormat = "d.M.yyyy";
     //
     // tChart1.Axes.Bottom.Labels.Font
     //
     this.tChart1.Axes.Bottom.Labels.Font.Name = "Courier New";
     //
     // tChart1.Axes.Left
     //
     //
     // tChart1.Axes.Left.Labels
     //
     //
     // tChart1.Axes.Left.Labels.Font
     //
     this.tChart1.Axes.Left.Labels.Font.Name = "Courier New";
     this.tChart1.BackColor = System.Drawing.Color.Transparent;
     //
     // tChart1.Header
     //
     //
     // tChart1.Header.Font
     //
     this.tChart1.Header.Font.Bold = true;
     //
     // tChart1.Header.Font.Brush
     //
     this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.Red;
     this.tChart1.Header.Font.Size        = 9;
     this.tChart1.Header.Lines            = new string[] {
         "PDF Export"
     };
     //
     // tChart1.Legend
     //
     this.tChart1.Legend.Visible = false;
     this.tChart1.Location       = new System.Drawing.Point(0, 95);
     this.tChart1.Name           = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color     = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Panel.Brush.ImageMode = Steema.TeeChart.Drawing.ImageMode.Normal;
     this.tChart1.Panel.ImageMode       = Steema.TeeChart.Drawing.ImageMode.Normal;
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Series.Add(this.line1);
     this.tChart1.Size = new System.Drawing.Size(480, 254);
     this.tChart1.Tools.Add(this.chartImage1);
     this.tChart1.AfterDraw += new Steema.TeeChart.PaintChartEventHandler(this.tChart1_AfterDraw);
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button1.Location  = new System.Drawing.Point(8, 8);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(104, 23);
     this.button1.TabIndex  = 2;
     this.button1.Text      = "Save to PDF";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // candle1
     //
     //
     // candle1.Brush
     //
     this.candle1.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(192)));
     this.candle1.CloseValues = this.candle1.YValues;
     this.candle1.DateValues  = this.candle1.XValues;
     //
     // candle1.Marks
     //
     //
     // candle1.Marks.Symbol
     //
     //
     // candle1.Marks.Symbol.Shadow
     //
     this.candle1.Marks.Symbol.Shadow.Height  = 1;
     this.candle1.Marks.Symbol.Shadow.Visible = true;
     this.candle1.Marks.Symbol.Shadow.Width   = 1;
     //
     // candle1.Pointer
     //
     this.candle1.Pointer.Draw3D = false;
     this.candle1.Pointer.Style  = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Title          = "candle1";
     //
     // candle1.XValues
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // candle1.YValues
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // line1
     //
     //
     // line1.Brush
     //
     this.line1.Brush.Color   = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(0)), ((System.Byte)(192)));
     this.line1.ColorEach     = true;
     this.line1.ColorEachLine = false;
     //
     // line1.Marks
     //
     //
     // line1.Marks.Symbol
     //
     //
     // line1.Marks.Symbol.Shadow
     //
     this.line1.Marks.Symbol.Shadow.Height  = 1;
     this.line1.Marks.Symbol.Shadow.Visible = true;
     this.line1.Marks.Symbol.Shadow.Width   = 1;
     //
     // line1.Pointer
     //
     this.line1.Pointer.HorizSize = 3;
     this.line1.Pointer.Style     = Steema.TeeChart.Styles.PointerStyles.Triangle;
     this.line1.Pointer.VertSize  = 3;
     this.line1.Pointer.Visible   = true;
     this.line1.Title             = "line1";
     //
     // line1.XValues
     //
     this.line1.XValues.DataMember = "X";
     this.line1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // line1.YValues
     //
     this.line1.YValues.DataMember = "Y";
     //
     // button2
     //
     this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button2.Location  = new System.Drawing.Point(152, 8);
     this.button2.Name      = "button2";
     this.button2.Size      = new System.Drawing.Size(120, 23);
     this.button2.TabIndex  = 3;
     this.button2.Text      = "Show export dialog";
     this.button2.Click    += new System.EventHandler(this.button2_Click);
     //
     // chartImage1
     //
     this.chartImage1.Image     = ((System.Drawing.Image)(resources.GetObject("chartImage1.Image")));
     this.chartImage1.ImageMode = Steema.TeeChart.Drawing.ImageMode.Center;
     //
     // Export_PDF
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(480, 349);
     this.Name = "Export_PDF";
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Export_XML));
     this.button1         = new System.Windows.Forms.Button();
     this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
     this.button2         = new System.Windows.Forms.Button();
     this.checkBox1       = new System.Windows.Forms.CheckBox();
     this.checkBox2       = new System.Windows.Forms.CheckBox();
     this.candleSeries1   = new Steema.TeeChart.Styles.Candle();
     this.pointSeries1    = new Steema.TeeChart.Styles.Points();
     this.gridBand1       = new Steema.TeeChart.Tools.GridBand();
     this.panel1.SuspendLayout();
     this.chartContainer.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Size = new System.Drawing.Size(466, 63);
     this.textBox1.Text = "Series data can be exported to XML. It allows saving to file and copying to clipb" +
                          "oard. There are several options when exporting to XML format, such as include la" +
                          "bels, point\'s index, etc.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBox2);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.button2);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Location = new System.Drawing.Point(0, 63);
     this.panel1.Size     = new System.Drawing.Size(466, 57);
     //
     // tChart1
     //
     //
     //
     //
     this.tChart1.Aspect.View3D  = false;
     this.tChart1.Aspect.ZOffset = 0;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     this.tChart1.Axes.Bottom.MaximumOffset = 5;
     this.tChart1.Axes.Bottom.MinimumOffset = 5;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     this.tChart1.Axes.Left.MaximumOffset = 5;
     this.tChart1.Axes.Left.MinimumOffset = 5;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Right.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     this.tChart1.Axes.Right.Visible       = false;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Top.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     this.tChart1.Axes.Top.Visible       = false;
     //
     //
     //
     this.tChart1.Header.Lines = new string[] {
         "tChart1"
     };
     this.tChart1.Header.Visible = false;
     //
     //
     //
     //
     //
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.tChart1.Series.Add(this.candleSeries1);
     this.tChart1.Series.Add(this.pointSeries1);
     this.tChart1.Size = new System.Drawing.Size(466, 166);
     this.tChart1.Tools.Add(this.gridBand1);
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Back.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     //
     // chartContainer
     //
     this.chartContainer.Location = new System.Drawing.Point(0, 120);
     this.chartContainer.Size     = new System.Drawing.Size(466, 166);
     //
     // button1
     //
     this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button1.Location  = new System.Drawing.Point(7, 10);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(121, 23);
     this.button1.TabIndex  = 3;
     this.button1.Text      = "&Save to XML...";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // saveFileDialog1
     //
     this.saveFileDialog1.FileName = "doc1";
     this.saveFileDialog1.Title    = "Save Data (XML)";
     //
     // button2
     //
     this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.button2.Location  = new System.Drawing.Point(152, 10);
     this.button2.Name      = "button2";
     this.button2.Size      = new System.Drawing.Size(144, 23);
     this.button2.TabIndex  = 8;
     this.button2.Text      = "Show &export dialog...";
     this.button2.Click    += new System.EventHandler(this.button2_Click);
     //
     // checkBox1
     //
     this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox1.Location  = new System.Drawing.Point(327, 7);
     this.checkBox1.Name      = "checkBox1";
     this.checkBox1.Size      = new System.Drawing.Size(121, 21);
     this.checkBox1.TabIndex  = 9;
     this.checkBox1.Text      = "Include &labels";
     //
     // checkBox2
     //
     this.checkBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox2.Location  = new System.Drawing.Point(327, 28);
     this.checkBox2.Name      = "checkBox2";
     this.checkBox2.Size      = new System.Drawing.Size(113, 21);
     this.checkBox2.TabIndex  = 10;
     this.checkBox2.Text      = "Include &index";
     //
     // candleSeries1
     //
     //
     //
     //
     this.candleSeries1.Brush.Color = System.Drawing.Color.Red;
     this.candleSeries1.CloseValues = this.candleSeries1.YValues;
     this.candleSeries1.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
     this.candleSeries1.ColorEach   = false;
     this.candleSeries1.DateValues  = this.candleSeries1.XValues;
     //
     //
     //
     this.candleSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
     //
     //
     //
     //
     //
     //
     this.candleSeries1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.candleSeries1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.candleSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.candleSeries1.Marks.Callout.Distance    = 0;
     this.candleSeries1.Marks.Callout.Draw3D      = false;
     this.candleSeries1.Marks.Callout.Length      = 10;
     this.candleSeries1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candleSeries1.Marks.Callout.Visible     = false;
     //
     //
     //
     this.candleSeries1.Pointer.Draw3D = false;
     this.candleSeries1.Pointer.Style  = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candleSeries1.Title          = "candleSeries1";
     //
     //
     //
     this.candleSeries1.XValues.DataMember = "Date";
     this.candleSeries1.XValues.DateTime   = true;
     this.candleSeries1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.candleSeries1.YValues.DataMember = "Close";
     //
     // pointSeries1
     //
     this.pointSeries1.Color     = System.Drawing.Color.Green;
     this.pointSeries1.ColorEach = false;
     //
     //
     //
     //
     //
     //
     this.pointSeries1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.pointSeries1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.pointSeries1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.pointSeries1.Marks.Callout.Distance    = 0;
     this.pointSeries1.Marks.Callout.Draw3D      = false;
     this.pointSeries1.Marks.Callout.Length      = 0;
     this.pointSeries1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.pointSeries1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.pointSeries1.Pointer.Brush.Color = System.Drawing.Color.Green;
     this.pointSeries1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.pointSeries1.Title = "pointSeries1";
     //
     //
     //
     this.pointSeries1.XValues.DataMember = "X";
     this.pointSeries1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.pointSeries1.YValues.DataMember = "Y";
     //
     // gridBand1
     //
     this.gridBand1.Axis = this.tChart1.Axes.Left;
     //
     //
     //
     this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     //
     //
     //
     this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     // Export_XML
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(466, 286);
     this.Name = "Export_XML";
     this.panel1.ResumeLayout(false);
     this.chartContainer.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_SAR));
     this.candle1      = new Steema.TeeChart.Styles.Candle();
     this.line1        = new Steema.TeeChart.Styles.Line();
     this.sarFunction1 = new Steema.TeeChart.Functions.SARFunction();
     this.label1       = new System.Windows.Forms.Label();
     this.textBox2     = new System.Windows.Forms.TextBox();
     this.panel1.SuspendLayout();
     this.chartContainer.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Text = resources.GetString("textBox1.Text");
     //
     // panel1
     //
     this.panel1.Controls.Add(this.textBox2);
     this.panel1.Controls.Add(this.label1);
     //
     // tChart1
     //
     //
     //
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
     this.tChart1.Aspect.View3D            = false;
     this.tChart1.Aspect.ZOffset           = 0;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.MaximumOffset = 5;
     this.tChart1.Axes.Bottom.MinimumOffset = 5;
     //
     //
     //
     this.tChart1.Axes.Left.MaximumOffset = 5;
     this.tChart1.Axes.Left.MinimumOffset = 5;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Panel.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(21)))), ((int)(((byte)(60)))), ((int)(((byte)(89)))));
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.tChart1.Panel.Brush.Gradient.Sigma       = true;
     this.tChart1.Panel.Brush.Gradient.SigmaFocus  = 1F;
     this.tChart1.Panel.Brush.Gradient.SigmaScale  = 0.8F;
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Series.Add(this.line1);
     this.tChart1.Size = new System.Drawing.Size(440, 205);
     //
     // candle1
     //
     //
     //
     //
     this.candle1.Brush.Color = System.Drawing.Color.White;
     this.candle1.CloseValues = this.candle1.YValues;
     this.candle1.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(230)))), ((int)(((byte)(90)))));
     this.candle1.ColorEach   = false;
     this.candle1.DateValues  = this.candle1.XValues;
     //
     //
     //
     this.candle1.HighLowPen.Color = System.Drawing.Color.Black;
     //
     //
     //
     this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     //
     //
     //
     //
     //
     //
     this.candle1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.candle1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.candle1.Marks.Callout.Distance    = 0;
     this.candle1.Marks.Callout.Draw3D      = false;
     this.candle1.Marks.Callout.Length      = 10;
     this.candle1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Marks.Callout.Visible     = false;
     //
     //
     //
     this.candle1.Pointer.Draw3D = false;
     //
     //
     //
     this.candle1.Pointer.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.candle1.Pointer.Style     = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Title             = "Data";
     //
     //
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // line1
     //
     //
     //
     //
     this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(220)))));
     //
     //
     //
     this.line1.Gradient.Visible = true;
     this.line1.Color            = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(220)))));
     this.line1.ColorEach        = false;
     this.line1.DataSource       = this.candle1;
     this.line1.Function         = this.sarFunction1;
     //
     //
     //
     this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(153)))), ((int)(((byte)(0)))));
     //
     //
     //
     //
     //
     //
     this.line1.Marks.Brush.Visible = false;
     //
     //
     //
     this.line1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.line1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.line1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.line1.Marks.Callout.Distance    = 0;
     this.line1.Marks.Callout.Draw3D      = false;
     this.line1.Marks.Callout.Length      = 10;
     this.line1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Marks.Callout.Visible     = false;
     this.line1.Marks.Style       = Steema.TeeChart.Styles.MarksStyles.Value;
     this.line1.Marks.Transparent = true;
     this.line1.Marks.Visible     = true;
     //
     //
     //
     this.line1.Pointer.Style   = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Pointer.Visible = true;
     this.line1.Title           = "SAR";
     //
     //
     //
     this.line1.XValues.DateTime = true;
     this.line1.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.line1.YValues.DataMember = "Close";
     //
     // sarFunction1
     //
     this.sarFunction1.AccelerationFactor = 0.019999999552965164;
     this.sarFunction1.MaxStep            = 0.30000001192092896;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(12, 13);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(96, 13);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Acceleration factor";
     //
     // textBox2
     //
     this.textBox2.Location     = new System.Drawing.Point(114, 10);
     this.textBox2.Name         = "textBox2";
     this.textBox2.Size         = new System.Drawing.Size(100, 20);
     this.textBox2.TabIndex     = 1;
     this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
     //
     // Function_SAR
     //
     this.ClientSize = new System.Drawing.Size(440, 317);
     this.Name       = "Function_SAR";
     this.Load      += new System.EventHandler(this.Function_SAR_Load);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.chartContainer.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #8
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.candleSeries1 = new Steema.TeeChart.Styles.Candle();
            this.checkBox1     = new System.Windows.Forms.CheckBox();
            this.checkBox2     = new System.Windows.Forms.CheckBox();
            this.label1        = new System.Windows.Forms.Label();
            this.comboBox1     = new System.Windows.Forms.ComboBox();
            this.button1       = new System.Windows.Forms.Button();
            this.gridBand1     = new Steema.TeeChart.Tools.GridBand();
            this.panel1.SuspendLayout();
            this.SuspendLayout();
            //
            // textBox1
            //
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(466, 63);
            this.textBox1.Text = @"Candle (OHLC) series displays financial data in several ways (Candle, Bar and Stick). Candle colors are calculated based on their Open and Close values. Weekend data can be removed using a sequential index for the X value.
Configuration options include border, draw 3D, open and close colors, candle style, marks, etc. Candle charts are the base for financial functions (RSI, etc).";
            //
            // panel1
            //
            this.panel1.Controls.Add(this.button1);
            this.panel1.Controls.Add(this.comboBox1);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.checkBox2);
            this.panel1.Controls.Add(this.checkBox1);
            this.panel1.Location = new System.Drawing.Point(0, 63);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(466, 41);
            //
            // tChart1
            //
            //
            // tChart1.Aspect
            //
            this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
            this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            this.tChart1.Aspect.View3D            = false;
            //
            // tChart1.Header
            //
            this.tChart1.Header.Lines = new string[] {
                "Candle OHCL"
            };
            //
            // tChart1.Legend
            //
            this.tChart1.Legend.Visible = false;
            this.tChart1.Location       = new System.Drawing.Point(0, 104);
            this.tChart1.Name           = "tChart1";
            //
            // tChart1.Panel
            //
            //
            // tChart1.Panel.Brush
            //
            this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
            this.tChart1.Series.Add(this.candleSeries1);
            this.tChart1.Size = new System.Drawing.Size(466, 182);
            this.tChart1.Tools.Add(this.gridBand1);
            //
            // tChart1.Walls
            //
            //
            // tChart1.Walls.Bottom
            //
            //
            // tChart1.Walls.Bottom.Pen
            //
            this.tChart1.Walls.Bottom.Pen.Visible = false;
            this.tChart1.Walls.Bottom.Size        = 3;
            //
            // tChart1.Walls.Left
            //
            //
            // tChart1.Walls.Left.Pen
            //
            this.tChart1.Walls.Left.Pen.Visible = false;
            this.tChart1.Walls.Left.Size        = 3;
            //
            // candleSeries1
            //
            //
            // candleSeries1.Brush
            //
            this.candleSeries1.Brush.Color = System.Drawing.Color.Red;
            this.candleSeries1.CloseValues = this.candleSeries1.YValues;
            this.candleSeries1.DateValues  = this.candleSeries1.XValues;
            //
            // candleSeries1.Marks
            //
            //
            // candleSeries1.Marks.Symbol
            //
            //
            // candleSeries1.Marks.Symbol.Shadow
            //
            this.candleSeries1.Marks.Symbol.Shadow.Height  = 1;
            this.candleSeries1.Marks.Symbol.Shadow.Visible = true;
            this.candleSeries1.Marks.Symbol.Shadow.Width   = 1;
            //
            // candleSeries1.Pointer
            //
            this.candleSeries1.Pointer.Draw3D = false;
            this.candleSeries1.Pointer.Style  = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            this.candleSeries1.Title          = "candle1";
            //
            // candleSeries1.XValues
            //
            this.candleSeries1.XValues.DataMember = "Date";
            this.candleSeries1.XValues.DateTime   = true;
            this.candleSeries1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            //
            // candleSeries1.YValues
            //
            this.candleSeries1.YValues.DataMember = "Close";
            //
            // checkBox1
            //
            this.checkBox1.Checked         = true;
            this.checkBox1.CheckState      = System.Windows.Forms.CheckState.Checked;
            this.checkBox1.FlatStyle       = System.Windows.Forms.FlatStyle.Flat;
            this.checkBox1.Location        = new System.Drawing.Point(13, 9);
            this.checkBox1.Name            = "checkBox1";
            this.checkBox1.Size            = new System.Drawing.Size(59, 21);
            this.checkBox1.TabIndex        = 0;
            this.checkBox1.Text            = "&Border";
            this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
            //
            // checkBox2
            //
            this.checkBox2.FlatStyle       = System.Windows.Forms.FlatStyle.Flat;
            this.checkBox2.Location        = new System.Drawing.Point(73, 9);
            this.checkBox2.Name            = "checkBox2";
            this.checkBox2.Size            = new System.Drawing.Size(79, 21);
            this.checkBox2.TabIndex        = 1;
            this.checkBox2.Text            = "&Draw 3D";
            this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
            //
            // label1
            //
            this.label1.AutoSize  = true;
            this.label1.Location  = new System.Drawing.Point(168, 11);
            this.label1.Name      = "label1";
            this.label1.Size      = new System.Drawing.Size(36, 16);
            this.label1.TabIndex  = 2;
            this.label1.Text      = "&Style :";
            this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
            //
            // comboBox1
            //
            this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboBox1.Items.AddRange(new object[] {
                "Stick",
                "Bar",
                "Open-Close"
            });
            this.comboBox1.Location              = new System.Drawing.Point(208, 9);
            this.comboBox1.Name                  = "comboBox1";
            this.comboBox1.Size                  = new System.Drawing.Size(86, 21);
            this.comboBox1.TabIndex              = 3;
            this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
            //
            // button1
            //
            this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.button1.Location  = new System.Drawing.Point(327, 8);
            this.button1.Name      = "button1";
            this.button1.TabIndex  = 4;
            this.button1.Text      = "&Edit...";
            this.button1.Click    += new System.EventHandler(this.button1_Click);
            //
            // gridBand1
            //
            this.gridBand1.Axis = this.tChart1.Axes.Left;
            //
            // gridBand1.Band1
            //
            this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
            //
            // gridBand1.Band2
            //
            this.gridBand1.Band2.Color           = System.Drawing.Color.FromArgb(((System.Byte)(25)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(204)));
            this.gridBand1.Band2.ForegroundColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(244)));
            this.gridBand1.Band2.Solid           = false;
            this.gridBand1.Band2.Style           = System.Drawing.Drawing2D.HatchStyle.NarrowHorizontal;
            //
            // SeriesType_Candle
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize        = new System.Drawing.Size(466, 286);
            this.Name  = "SeriesType_Candle";
            this.Load += new System.EventHandler(this.SeriesType_Candle_Load);
            this.panel1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Example #9
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Darvas_Series));
            this.button1 = new System.Windows.Forms.Button();
            this.candle1 = new Steema.TeeChart.Styles.Candle();
            this.darvas1 = new Steema.TeeChart.Styles.Darvas();
            this.panel1.SuspendLayout();
            this.chartContainer.SuspendLayout();
            this.SuspendLayout();
            //
            // textBox1
            //
            this.textBox1.Text = resources.GetString("textBox1.Text");
            //
            // panel1
            //
            this.panel1.Controls.Add(this.button1);
            //
            // tChart1
            //
            //
            //
            //
            this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
            this.tChart1.Aspect.View3D            = false;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Right.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Top.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
            this.tChart1.Header.Lines            = new string[] {
                "Darvas Boxes example"
            };
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Panel.Brush.Gradient.EndColor             = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(21)))), ((int)(((byte)(60)))), ((int)(((byte)(89)))));
            this.tChart1.Panel.Brush.Gradient.ExtendedColorPalette = null;
            this.tChart1.Panel.Brush.Gradient.MiddleColor          = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.tChart1.Panel.Brush.Gradient.Sigma      = true;
            this.tChart1.Panel.Brush.Gradient.SigmaFocus = 1F;
            this.tChart1.Panel.Brush.Gradient.SigmaScale = 0.8F;
            this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.tChart1.Panel.Brush.Gradient.UseMiddle  = true;
            this.tChart1.Panel.Brush.Gradient.Visible    = true;
            this.tChart1.Series.Add(this.candle1);
            this.tChart1.Series.Add(this.darvas1);
            this.tChart1.Size = new System.Drawing.Size(440, 205);
            //
            //
            //
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Walls.Back.Brush.Gradient.EndColor             = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.tChart1.Walls.Back.Brush.Gradient.ExtendedColorPalette = null;
            this.tChart1.Walls.Back.Brush.Gradient.StartColor           = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234)))));
            this.tChart1.Walls.Back.Brush.Gradient.Visible = true;
            this.tChart1.Walls.Back.Brush.Visible          = true;
            this.tChart1.Walls.Back.Transparent            = false;
            this.tChart1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.tChart1_MouseMove);
            //
            // button1
            //
            this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.button1.Location  = new System.Drawing.Point(12, 6);
            this.button1.Name      = "button1";
            this.button1.Size      = new System.Drawing.Size(75, 23);
            this.button1.TabIndex  = 0;
            this.button1.Text      = "Edit...";
#if VS2005
            this.button1.UseVisualStyleBackColor = true;
#endif
            this.button1.Click += new System.EventHandler(this.button1_Click);
            //
            // candle1
            //
            //
            //
            //
            this.candle1.Brush.Color      = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(224)))), ((int)(((byte)(77)))), ((int)(((byte)(44)))));
            this.candle1.CloseValues      = this.candle1.YValues;
            this.candle1.ColorEach        = false;
            this.candle1.DateValues       = this.candle1.XValues;
            this.candle1.DefaultNullValue = 0;
            //
            //
            //
            this.candle1.HighLowPen.Color = System.Drawing.Color.Black;
            //
            //
            //
            this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(134)))), ((int)(((byte)(46)))), ((int)(((byte)(26)))));
            //
            //
            //
            //
            //
            //
            this.candle1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
            this.candle1.Marks.Callout.ArrowHeadSize = 8;
            //
            //
            //
            this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
            this.candle1.Marks.Callout.Distance    = 0;
            this.candle1.Marks.Callout.Draw3D      = false;
            this.candle1.Marks.Callout.Length      = 10;
            this.candle1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            //
            //
            //
            this.candle1.Pointer.Draw3D  = false;
            this.candle1.Pointer.Style   = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            this.candle1.Pointer.Visible = true;
            this.candle1.Title           = "candle1";
            //
            //
            //
            this.candle1.XValues.DataMember = "Date";
            this.candle1.XValues.DateTime   = true;
            this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            //
            //
            //
            this.candle1.YValues.DataMember = "Close";
            //
            // darvas1
            //
            //
            //
            //
            this.darvas1.Brush.Color      = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(244)))), ((int)(((byte)(158)))), ((int)(((byte)(54)))));
            this.darvas1.CloseValues      = this.darvas1.YValues;
            this.darvas1.ColorEach        = false;
            this.darvas1.DateValues       = this.darvas1.XValues;
            this.darvas1.DefaultNullValue = 0;
            //
            //
            //
            this.darvas1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(146)))), ((int)(((byte)(95)))), ((int)(((byte)(32)))));
            //
            //
            //
            //
            //
            //
            this.darvas1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
            this.darvas1.Marks.Callout.ArrowHeadSize = 8;
            //
            //
            //
            this.darvas1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
            this.darvas1.Marks.Callout.Distance    = 0;
            this.darvas1.Marks.Callout.Draw3D      = false;
            this.darvas1.Marks.Callout.Length      = 10;
            this.darvas1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            //
            //
            //
            this.darvas1.Pointer.Style   = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            this.darvas1.Pointer.Visible = true;
            this.darvas1.Title           = "darvas1";
            //
            //
            //
            this.darvas1.XValues.DataMember = "Date";
            this.darvas1.XValues.DateTime   = true;
            this.darvas1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            //
            //
            //
            this.darvas1.YValues.DataMember = "Close";
            //
            // Darvas_Series
            //
#if VS2005
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
#endif
            this.ClientSize = new System.Drawing.Size(440, 317);
            this.Name       = "Darvas_Series";
            this.Text       = "Darvas_Series";
            this.panel1.ResumeLayout(false);
            this.chartContainer.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Example #10
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.candle1    = new Steema.TeeChart.Styles.Candle();
     this.buttonPen1 = new Steema.TeeChart.ButtonPen();
     this.buttonPen2 = new Steema.TeeChart.ButtonPen();
     this.checkBox1  = new System.Windows.Forms.CheckBox();
     this.panel1.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(466, 63);
     this.textBox1.Text = "Financial Candle series provides a \"High Low\" pen to display lines from high to l" +
                          "ow with a different pen than candle border.\r\n\r\ncandle1.HighLowPen.Color = Color." +
                          "Blue;";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.buttonPen2);
     this.panel1.Controls.Add(this.buttonPen1);
     this.panel1.Location = new System.Drawing.Point(0, 63);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(466, 34);
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.Chart3DPercent = 10;
     //
     // tChart1.Axes
     //
     //
     // tChart1.Axes.Bottom
     //
     //
     // tChart1.Axes.Bottom.Labels
     //
     this.tChart1.Axes.Bottom.Labels.DateTimeFormat = "d.M.yyyy";
     //
     // tChart1.Axes.Bottom.Labels.Font
     //
     //
     // tChart1.Axes.Bottom.Labels.Font.Shadow
     //
     this.tChart1.Axes.Bottom.Labels.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Bottom.Labels.Shadow
     //
     this.tChart1.Axes.Bottom.Labels.Shadow.Visible = false;
     //
     // tChart1.Axes.Bottom.Title
     //
     //
     // tChart1.Axes.Bottom.Title.Font
     //
     //
     // tChart1.Axes.Bottom.Title.Font.Shadow
     //
     this.tChart1.Axes.Bottom.Title.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Bottom.Title.Shadow
     //
     this.tChart1.Axes.Bottom.Title.Shadow.Visible = false;
     //
     // tChart1.Axes.Depth
     //
     //
     // tChart1.Axes.Depth.Labels
     //
     //
     // tChart1.Axes.Depth.Labels.Font
     //
     //
     // tChart1.Axes.Depth.Labels.Font.Shadow
     //
     this.tChart1.Axes.Depth.Labels.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Depth.Labels.Shadow
     //
     this.tChart1.Axes.Depth.Labels.Shadow.Visible = false;
     //
     // tChart1.Axes.Depth.Title
     //
     //
     // tChart1.Axes.Depth.Title.Font
     //
     //
     // tChart1.Axes.Depth.Title.Font.Shadow
     //
     this.tChart1.Axes.Depth.Title.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Depth.Title.Shadow
     //
     this.tChart1.Axes.Depth.Title.Shadow.Visible = false;
     //
     // tChart1.Axes.DepthTop
     //
     //
     // tChart1.Axes.DepthTop.Labels
     //
     //
     // tChart1.Axes.DepthTop.Labels.Font
     //
     //
     // tChart1.Axes.DepthTop.Labels.Font.Shadow
     //
     this.tChart1.Axes.DepthTop.Labels.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.DepthTop.Labels.Shadow
     //
     this.tChart1.Axes.DepthTop.Labels.Shadow.Visible = false;
     //
     // tChart1.Axes.DepthTop.Title
     //
     //
     // tChart1.Axes.DepthTop.Title.Font
     //
     //
     // tChart1.Axes.DepthTop.Title.Font.Shadow
     //
     this.tChart1.Axes.DepthTop.Title.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.DepthTop.Title.Shadow
     //
     this.tChart1.Axes.DepthTop.Title.Shadow.Visible = false;
     //
     // tChart1.Axes.Left
     //
     //
     // tChart1.Axes.Left.Labels
     //
     //
     // tChart1.Axes.Left.Labels.Font
     //
     //
     // tChart1.Axes.Left.Labels.Font.Shadow
     //
     this.tChart1.Axes.Left.Labels.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Left.Labels.Shadow
     //
     this.tChart1.Axes.Left.Labels.Shadow.Visible = false;
     //
     // tChart1.Axes.Left.Title
     //
     //
     // tChart1.Axes.Left.Title.Font
     //
     //
     // tChart1.Axes.Left.Title.Font.Shadow
     //
     this.tChart1.Axes.Left.Title.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Left.Title.Shadow
     //
     this.tChart1.Axes.Left.Title.Shadow.Visible = false;
     //
     // tChart1.Axes.Right
     //
     //
     // tChart1.Axes.Right.Labels
     //
     //
     // tChart1.Axes.Right.Labels.Font
     //
     //
     // tChart1.Axes.Right.Labels.Font.Shadow
     //
     this.tChart1.Axes.Right.Labels.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Right.Labels.Shadow
     //
     this.tChart1.Axes.Right.Labels.Shadow.Visible = false;
     //
     // tChart1.Axes.Right.Title
     //
     //
     // tChart1.Axes.Right.Title.Font
     //
     //
     // tChart1.Axes.Right.Title.Font.Shadow
     //
     this.tChart1.Axes.Right.Title.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Right.Title.Shadow
     //
     this.tChart1.Axes.Right.Title.Shadow.Visible = false;
     //
     // tChart1.Axes.Top
     //
     //
     // tChart1.Axes.Top.Labels
     //
     //
     // tChart1.Axes.Top.Labels.Font
     //
     //
     // tChart1.Axes.Top.Labels.Font.Shadow
     //
     this.tChart1.Axes.Top.Labels.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Top.Labels.Shadow
     //
     this.tChart1.Axes.Top.Labels.Shadow.Visible = false;
     //
     // tChart1.Axes.Top.Title
     //
     //
     // tChart1.Axes.Top.Title.Font
     //
     //
     // tChart1.Axes.Top.Title.Font.Shadow
     //
     this.tChart1.Axes.Top.Title.Font.Shadow.Visible = false;
     //
     // tChart1.Axes.Top.Title.Shadow
     //
     this.tChart1.Axes.Top.Title.Shadow.Visible = false;
     this.tChart1.BackColor = System.Drawing.Color.Transparent;
     this.tChart1.Cursor    = System.Windows.Forms.Cursors.Default;
     //
     // tChart1.Footer
     //
     //
     // tChart1.Footer.Font
     //
     //
     // tChart1.Footer.Font.Shadow
     //
     this.tChart1.Footer.Font.Shadow.Visible = false;
     //
     // tChart1.Footer.Shadow
     //
     this.tChart1.Footer.Shadow.Visible = false;
     //
     // tChart1.Header
     //
     //
     // tChart1.Header.Font
     //
     //
     // tChart1.Header.Font.Shadow
     //
     this.tChart1.Header.Font.Shadow.Visible = false;
     this.tChart1.Header.Lines = new string[] {
         "tChart1"
     };
     //
     // tChart1.Header.Shadow
     //
     this.tChart1.Header.Shadow.Visible = false;
     this.tChart1.Header.Visible        = false;
     //
     // tChart1.Legend
     //
     this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Top;
     //
     // tChart1.Legend.Font
     //
     //
     // tChart1.Legend.Font.Shadow
     //
     this.tChart1.Legend.Font.Shadow.Visible = false;
     //
     // tChart1.Legend.Title
     //
     //
     // tChart1.Legend.Title.Font
     //
     this.tChart1.Legend.Title.Font.Bold = true;
     //
     // tChart1.Legend.Title.Font.Shadow
     //
     this.tChart1.Legend.Title.Font.Shadow.Visible = false;
     //
     // tChart1.Legend.Title.Pen
     //
     this.tChart1.Legend.Title.Pen.Visible = false;
     //
     // tChart1.Legend.Title.Shadow
     //
     this.tChart1.Legend.Title.Shadow.Visible = false;
     this.tChart1.Legend.Visible = false;
     this.tChart1.Location       = new System.Drawing.Point(0, 97);
     this.tChart1.Name           = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(236)), ((System.Byte)(233)), ((System.Byte)(216)));
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Panel.Brush.Gradient.UseMiddle   = true;
     this.tChart1.Panel.Brush.Gradient.Visible     = true;
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Gradient.EndColor    = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Panel.Gradient.StartColor  = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Panel.Gradient.UseMiddle   = true;
     this.tChart1.Panel.Gradient.Visible     = true;
     //
     // tChart1.Panel.Pen
     //
     this.tChart1.Panel.Pen.Visible = true;
     this.tChart1.Panel.Pen.Width   = 2;
     //
     // tChart1.Panel.Shadow
     //
     this.tChart1.Panel.Shadow.Visible = false;
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Size = new System.Drawing.Size(466, 189);
     //
     // tChart1.SubFooter
     //
     //
     // tChart1.SubFooter.Font
     //
     //
     // tChart1.SubFooter.Font.Shadow
     //
     this.tChart1.SubFooter.Font.Shadow.Visible = false;
     //
     // tChart1.SubFooter.Shadow
     //
     this.tChart1.SubFooter.Shadow.Visible = false;
     //
     // tChart1.SubHeader
     //
     //
     // tChart1.SubHeader.Font
     //
     //
     // tChart1.SubHeader.Font.Shadow
     //
     this.tChart1.SubHeader.Font.Shadow.Visible = false;
     //
     // tChart1.SubHeader.Shadow
     //
     this.tChart1.SubHeader.Shadow.Visible = false;
     //
     // tChart1.Walls
     //
     //
     // tChart1.Walls.Back
     //
     //
     // tChart1.Walls.Back.Shadow
     //
     this.tChart1.Walls.Back.Shadow.Visible = false;
     //
     // tChart1.Walls.Bottom
     //
     //
     // tChart1.Walls.Bottom.Brush
     //
     this.tChart1.Walls.Bottom.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     //
     // tChart1.Walls.Bottom.Shadow
     //
     this.tChart1.Walls.Bottom.Shadow.Visible = false;
     //
     // tChart1.Walls.Left
     //
     this.tChart1.Walls.Left.ApplyDark = false;
     //
     // tChart1.Walls.Left.Brush
     //
     this.tChart1.Walls.Left.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
     //
     // tChart1.Walls.Left.Shadow
     //
     this.tChart1.Walls.Left.Shadow.Visible = false;
     this.tChart1.Walls.Left.Size           = 1;
     //
     // tChart1.Walls.Right
     //
     //
     // tChart1.Walls.Right.Shadow
     //
     this.tChart1.Walls.Right.Shadow.Visible = false;
     //
     // candle1
     //
     //
     // candle1.Brush
     //
     this.candle1.Brush.Color    = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0)));
     this.candle1.CloseValues    = this.candle1.YValues;
     this.candle1.DateValues     = this.candle1.XValues;
     this.candle1.DownCloseColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0)));
     //
     // candle1.HighLowPen
     //
     this.candle1.HighLowPen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255)));
     this.candle1.HighLowPen.Width = 2;
     //
     // candle1.LinePen
     //
     this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(153)), ((System.Byte)(0)), ((System.Byte)(0)));
     //
     // candle1.Marks
     //
     //
     // candle1.Marks.Callout
     //
     this.candle1.Marks.Callout.Arrow         = this.candle1.Marks.Arrow;
     this.candle1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.candle1.Marks.Callout.ArrowHeadSize = 8;
     //
     // candle1.Marks.Callout.Brush
     //
     this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.candle1.Marks.Callout.Distance    = 0;
     this.candle1.Marks.Callout.Draw3D      = false;
     this.candle1.Marks.Callout.Length      = 10;
     this.candle1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     //
     // candle1.Marks.Font
     //
     //
     // candle1.Marks.Font.Shadow
     //
     this.candle1.Marks.Font.Shadow.Visible = false;
     //
     // candle1.Pointer
     //
     this.candle1.Pointer.Draw3D  = false;
     this.candle1.Pointer.Style   = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Pointer.Visible = true;
     this.candle1.Title           = "candle1";
     this.candle1.UpCloseColor    = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     //
     // candle1.XValues
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // candle1.YValues
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // buttonPen1
     //
     this.buttonPen1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.buttonPen1.Location  = new System.Drawing.Point(16, 8);
     this.buttonPen1.Name      = "buttonPen1";
     this.buttonPen1.Size      = new System.Drawing.Size(88, 24);
     this.buttonPen1.TabIndex  = 0;
     this.buttonPen1.Text      = "&Border...";
     //
     // buttonPen2
     //
     this.buttonPen2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.buttonPen2.Location  = new System.Drawing.Point(120, 8);
     this.buttonPen2.Name      = "buttonPen2";
     this.buttonPen2.Size      = new System.Drawing.Size(112, 24);
     this.buttonPen2.TabIndex  = 1;
     this.buttonPen2.Text      = "&High Low...";
     //
     // checkBox1
     //
     this.checkBox1.Location        = new System.Drawing.Point(248, 16);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.Size            = new System.Drawing.Size(144, 16);
     this.checkBox1.TabIndex        = 2;
     this.checkBox1.Text            = "&Default high low color";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // Candle_HighLowPen
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(466, 286);
     this.Name  = "Candle_HighLowPen";
     this.Load += new System.EventHandler(this.Candle_HighLowPen_Load);
     this.panel1.ResumeLayout(false);
 }
Example #11
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.candleSeries1 = new Steema.TeeChart.Styles.Candle();
     this.checkBox1     = new System.Windows.Forms.CheckBox();
     this.gridBand1     = new Steema.TeeChart.Tools.GridBand();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(425, 32);
     this.textBox1.Text = "Candle series provide an event to customize point styles.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Location = new System.Drawing.Point(0, 32);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(425, 32);
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     this.tChart1.Aspect.View3D            = false;
     //
     // tChart1.Header
     //
     this.tChart1.Header.Lines = new string[] {
         "Candle series - OnGetPointerStyle event example"
     };
     //
     // tChart1.Legend
     //
     //
     // tChart1.Legend.Brush
     //
     this.tChart1.Legend.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(51)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     //
     // tChart1.Legend.Gradient
     //
     this.tChart1.Legend.Brush.Gradient.Transparency = 80;
     //
     // tChart1.Legend.Gradient
     //
     this.tChart1.Legend.Gradient.Transparency = 80;
     //
     // tChart1.Legend.Shadow
     //
     //
     // tChart1.Legend.Shadow.Brush
     //
     this.tChart1.Legend.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(51)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     this.tChart1.Location = new System.Drawing.Point(0, 64);
     this.tChart1.Name     = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Series.Add(this.candleSeries1);
     this.tChart1.Size = new System.Drawing.Size(425, 206);
     this.tChart1.Tools.Add(this.gridBand1);
     //
     // candleSeries1
     //
     //
     // candleSeries1.Brush
     //
     this.candleSeries1.Brush.Color = System.Drawing.Color.Red;
     this.candleSeries1.CloseValues = this.candleSeries1.YValues;
     this.candleSeries1.DateValues  = this.candleSeries1.XValues;
     //
     // candleSeries1.Marks
     //
     //
     // candleSeries1.Marks.Symbol
     //
     //
     // candleSeries1.Marks.Symbol.Shadow
     //
     this.candleSeries1.Marks.Symbol.Shadow.Height  = 1;
     this.candleSeries1.Marks.Symbol.Shadow.Visible = true;
     this.candleSeries1.Marks.Symbol.Shadow.Width   = 1;
     //
     // candleSeries1.Pointer
     //
     //
     // candleSeries1.Pointer.Brush
     //
     this.candleSeries1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     this.candleSeries1.Pointer.Draw3D      = false;
     this.candleSeries1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candleSeries1.Title = "candle1";
     //
     // candleSeries1.XValues
     //
     this.candleSeries1.XValues.DataMember = "Date";
     this.candleSeries1.XValues.DateTime   = true;
     this.candleSeries1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // candleSeries1.YValues
     //
     this.candleSeries1.YValues.DataMember = "Close";
     this.candleSeries1.GetPointerStyle   += new Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventHandler(this.candleSeries1_GetPointerStyle);
     //
     // checkBox1
     //
     this.checkBox1.Checked         = true;
     this.checkBox1.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.FlatStyle       = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox1.Location        = new System.Drawing.Point(16, 8);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.Size            = new System.Drawing.Size(292, 19);
     this.checkBox1.TabIndex        = 0;
     this.checkBox1.Text            = "&Use the event to change Candle border colors";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // gridBand1
     //
     this.gridBand1.Axis = this.tChart1.Axes.Left;
     //
     // gridBand1.Band1
     //
     this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224)));
     //
     // gridBand1.Band2
     //
     this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     //
     // Candle_GetPointerStyle
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(425, 270);
     this.Name = "Candle_GetPointerStyle";
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #12
0
 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RSI_Function));
     this.comboBox1      = new System.Windows.Forms.ComboBox();
     this.label1         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
     this.candle1        = new Steema.TeeChart.Styles.Candle();
     this.axis1          = new Steema.TeeChart.Axis(this.components);
     this.rsiFunction1   = new Steema.TeeChart.Functions.RSIFunction();
     this.line1          = new Steema.TeeChart.Styles.Line();
     this.panel1.SuspendLayout();
     this.chartContainer.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Text = resources.GetString("textBox1.Text");
     //
     // panel1
     //
     this.panel1.Controls.Add(this.numericUpDown1);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.comboBox1);
     //
     // tChart1
     //
     //
     //
     //
     this.tChart1.Aspect.View3D  = false;
     this.tChart1.Aspect.ZOffset = 0;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.Labels.Angle          = 90;
     this.tChart1.Axes.Bottom.Labels.DateTimeFormat = "dd/MM/yyyy";
     this.tChart1.Axes.Bottom.MaximumOffset         = 5;
     this.tChart1.Axes.Bottom.MinimumOffset         = 5;
     this.tChart1.Axes.Custom.Add(this.axis1);
     //
     //
     //
     this.tChart1.Axes.Left.EndPosition   = 58;
     this.tChart1.Axes.Left.MaximumOffset = 5;
     this.tChart1.Axes.Left.MinimumOffset = 5;
     //
     //
     //
     this.tChart1.Axes.Left.Title.Caption = "Stock Sample";
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Left.Title.Font.Brush.Color = System.Drawing.Color.Red;
     this.tChart1.Axes.Left.Title.Font.Size        = 9;
     this.tChart1.Axes.Left.Title.Font.SizeFloat   = 9F;
     this.tChart1.Axes.Left.Title.Lines            = new string[] {
         "Stock Sample"
     };
     this.tChart1.Cursor = System.Windows.Forms.Cursors.Default;
     //
     //
     //
     this.tChart1.Header.Visible = false;
     //
     //
     //
     this.tChart1.Legend.Visible = false;
     //
     //
     //
     //
     //
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Panel.Brush.Gradient.Direction   = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal;
     this.tChart1.Panel.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.tChart1.Panel.MarginRight = 12;
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Series.Add(this.line1);
     this.tChart1.Size         = new System.Drawing.Size(440, 205);
     this.tChart1.AllowScroll += tChart1_AllowScroll;
     //
     // comboBox1
     //
     this.comboBox1.Items.AddRange(new object[] {
         "Open and Close",
         "Close only"
     });
     this.comboBox1.Location              = new System.Drawing.Point(84, 10);
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(121, 21);
     this.comboBox1.TabIndex              = 0;
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     this.comboBox1.Click                += new System.EventHandler(this.comboBox1_Click);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 14);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(74, 13);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Calc. Method:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(256, 14);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 15);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Period:";
     //
     // numericUpDown1
     //
     this.numericUpDown1.Location = new System.Drawing.Point(298, 12);
     this.numericUpDown1.Name     = "numericUpDown1";
     this.numericUpDown1.Size     = new System.Drawing.Size(51, 20);
     this.numericUpDown1.TabIndex = 3;
     this.numericUpDown1.Value    = new decimal(new int[] {
         10,
         0,
         0,
         0
     });
     this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
     //
     // candle1
     //
     //
     //
     //
     this.candle1.Brush.Color = System.Drawing.Color.White;
     this.candle1.CloseValues = this.candle1.YValues;
     this.candle1.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(230)))), ((int)(((byte)(90)))));
     this.candle1.ColorEach   = false;
     this.candle1.DateValues  = this.candle1.XValues;
     //
     //
     //
     this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
     //
     //
     //
     //
     //
     //
     this.candle1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.candle1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.candle1.Marks.Callout.Distance    = 0;
     this.candle1.Marks.Callout.Draw3D      = false;
     this.candle1.Marks.Callout.Length      = 10;
     this.candle1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Marks.Callout.Visible     = false;
     //
     //
     //
     this.candle1.Pointer.Draw3D = false;
     this.candle1.Pointer.Style  = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Title          = "candle1";
     //
     //
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // axis1
     //
     this.axis1.Horizontal    = false;
     this.axis1.OtherSide     = true;
     this.axis1.StartPosition = 60;
     //
     //
     //
     this.axis1.Title.Angle   = 90;
     this.axis1.Title.Caption = "R.S.I";
     //
     //
     //
     //
     //
     //
     this.axis1.Title.Font.Brush.Color = System.Drawing.Color.Green;
     this.axis1.Title.Font.Size        = 9;
     this.axis1.Title.Font.SizeFloat   = 9F;
     this.axis1.Title.Lines            = new string[] {
         "R.S.I"
     };
     this.axis1.ZPosition = 0;
     //
     // rsiFunction1
     //
     this.rsiFunction1.Period = 1;
     //
     // line1
     //
     //
     //
     //
     this.line1.Brush.Color    = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(220)))));
     this.line1.Color          = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(150)))), ((int)(((byte)(220)))));
     this.line1.ColorEach      = false;
     this.line1.CustomVertAxis = this.axis1;
     this.line1.DataSource     = this.candle1;
     this.line1.Function       = this.rsiFunction1;
     //
     //
     //
     this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32)))));
     //
     //
     //
     //
     //
     //
     this.line1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.line1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.line1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.line1.Marks.Callout.Distance    = 0;
     this.line1.Marks.Callout.Draw3D      = false;
     this.line1.Marks.Callout.Length      = 10;
     this.line1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Marks.Callout.Visible     = false;
     //
     //
     //
     this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Title         = "line1";
     this.line1.VertAxis      = Steema.TeeChart.Styles.VerticalAxis.Custom;
     //
     //
     //
     this.line1.XValues.DateTime = true;
     this.line1.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.line1.YValues.DataMember = "Close";
     //
     // RSI_Function
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(440, 317);
     this.Name  = "RSI_Function";
     this.Load += new System.EventHandler(this.RSIFunction_Load);
     this.panel1.ResumeLayout(false);
     this.chartContainer.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #13
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.fastLineSeries1 = new Steema.TeeChart.Styles.FastLine();
     this.fastLineSeries2 = new Steema.TeeChart.Styles.FastLine();
     this.volumeSeries1   = new Steema.TeeChart.Styles.Volume();
     this.candleSeries1   = new Steema.TeeChart.Styles.Candle();
     this.label1          = new System.Windows.Forms.Label();
     this.checkBox1       = new System.Windows.Forms.CheckBox();
     this.checkBox2       = new System.Windows.Forms.CheckBox();
     this.checkBox3       = new System.Windows.Forms.CheckBox();
     this.gridBand1       = new Steema.TeeChart.Tools.GridBand();
     this.gridBand2       = new Steema.TeeChart.Tools.GridBand();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.BackColor = System.Drawing.Color.AliceBlue;
     this.textBox1.Name      = "textBox1";
     this.textBox1.Size      = new System.Drawing.Size(592, 73);
     this.textBox1.Text      = "This chart contains 3 custom axes and several series associated to all axes.  The" +
                               " example shows how to restrict scroll to some axes only. Most of the code can be" +
                               " done visually at design-time.\r\n\r\nTry to scroll vertically using the right mouse" +
                               " button.";
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.Control;
     this.panel1.Controls.Add(this.checkBox3);
     this.panel1.Controls.Add(this.checkBox2);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(592, 31);
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     this.tChart1.Aspect.View3D            = false;
     //
     // tChart1.Header
     //
     this.tChart1.Header.Lines = new string[] {
         "tChart1"
     };
     this.tChart1.Header.Visible = false;
     //
     // tChart1.Legend
     //
     this.tChart1.Legend.Visible = false;
     this.tChart1.Location       = new System.Drawing.Point(0, 104);
     this.tChart1.Name           = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
     this.tChart1.Panel.Brush.Gradient.UseMiddle   = true;
     this.tChart1.Panel.Brush.Gradient.Visible     = true;
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
     this.tChart1.Panel.Gradient.StartColor  = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
     this.tChart1.Panel.Gradient.UseMiddle   = true;
     this.tChart1.Panel.Gradient.Visible     = true;
     this.tChart1.Size = new System.Drawing.Size(592, 264);
     //
     // tChart1.Walls
     //
     //
     // tChart1.Walls.Back
     //
     //
     // tChart1.Walls.Back.Pen
     //
     this.tChart1.Walls.Back.Pen.Visible = false;
     this.tChart1.Scroll += new System.EventHandler(this.tChart1_Scroll);
     //
     // fastLineSeries1
     //
     this.fastLineSeries1.Cursor = System.Windows.Forms.Cursors.Cross;
     //
     // fastLineSeries1.LinePen
     //
     this.fastLineSeries1.LinePen.Color = System.Drawing.Color.Red;
     this.fastLineSeries1.Title         = "fastLineSeries1";
     //
     // fastLineSeries1.XValues
     //
     this.fastLineSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // fastLineSeries2
     //
     this.fastLineSeries2.Cursor = System.Windows.Forms.Cursors.Cross;
     //
     // fastLineSeries2.LinePen
     //
     this.fastLineSeries2.LinePen.Color = System.Drawing.Color.Green;
     this.fastLineSeries2.Title         = "fastLineSeries2";
     //
     // fastLineSeries2.XValues
     //
     this.fastLineSeries2.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // volumeSeries1
     //
     //
     // volumeSeries1.Brush
     //
     this.volumeSeries1.Brush.Color   = System.Drawing.Color.Blue;
     this.volumeSeries1.ClickableLine = false;
     this.volumeSeries1.Cursor        = System.Windows.Forms.Cursors.Cross;
     //
     // volumeSeries1.LinePen
     //
     this.volumeSeries1.LinePen.Color = System.Drawing.Color.Blue;
     //
     // volumeSeries1.Pointer
     //
     this.volumeSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.volumeSeries1.Title         = "volumeSeries1";
     //
     // volumeSeries1.XValues
     //
     this.volumeSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // candleSeries1
     //
     //
     // candleSeries1.Brush
     //
     this.candleSeries1.Brush.Color = System.Drawing.Color.Yellow;
     this.candleSeries1.CloseValues = this.candleSeries1.YValues;
     this.candleSeries1.Cursor      = System.Windows.Forms.Cursors.Cross;
     this.candleSeries1.DateValues  = this.candleSeries1.XValues;
     //
     // candleSeries1.Pointer
     //
     this.candleSeries1.Pointer.Draw3D = false;
     this.candleSeries1.Pointer.Style  = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candleSeries1.Title          = "candleSeries1";
     //
     // candleSeries1.XValues
     //
     this.candleSeries1.XValues.DateTime = true;
     this.candleSeries1.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // label1
     //
     this.label1.AutoSize    = true;
     this.label1.Location    = new System.Drawing.Point(8, 8);
     this.label1.Name        = "label1";
     this.label1.Size        = new System.Drawing.Size(153, 16);
     this.label1.TabIndex    = 0;
     this.label1.Text        = "Enable vertical scroll on axis :";
     this.label1.UseMnemonic = false;
     //
     // checkBox1
     //
     this.checkBox1.Checked    = true;
     this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox1.Location   = new System.Drawing.Point(200, 2);
     this.checkBox1.Name       = "checkBox1";
     this.checkBox1.Size       = new System.Drawing.Size(56, 24);
     this.checkBox1.TabIndex   = 1;
     this.checkBox1.Text       = "&Red";
     //
     // checkBox2
     //
     this.checkBox2.Checked    = true;
     this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox2.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox2.Location   = new System.Drawing.Point(256, 2);
     this.checkBox2.Name       = "checkBox2";
     this.checkBox2.Size       = new System.Drawing.Size(56, 24);
     this.checkBox2.TabIndex   = 2;
     this.checkBox2.Text       = "&Blue";
     //
     // checkBox3
     //
     this.checkBox3.Checked    = true;
     this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox3.FlatStyle  = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox3.Location   = new System.Drawing.Point(320, 2);
     this.checkBox3.Name       = "checkBox3";
     this.checkBox3.Size       = new System.Drawing.Size(64, 24);
     this.checkBox3.TabIndex   = 3;
     this.checkBox3.Text       = "&Green";
     //
     // gridBand1
     //
     //
     // gridBand1.Band1
     //
     this.gridBand1.Band1.Color           = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(211)), ((System.Byte)(211)), ((System.Byte)(211)));
     this.gridBand1.Band1.ForegroundColor = System.Drawing.Color.White;
     //
     // gridBand1.Band2
     //
     this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(25)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     //
     // gridBand2
     //
     //
     // gridBand2.Band1
     //
     this.gridBand2.Band1.Color           = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(211)), ((System.Byte)(211)), ((System.Byte)(211)));
     this.gridBand2.Band1.ForegroundColor = System.Drawing.Color.White;
     //
     // gridBand2.Band2
     //
     this.gridBand2.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(25)), ((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0)));
     //
     // Axis_MultiScroll
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(592, 368);
     this.Name = "Axis_MultiScroll";
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #14
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Series_Renko));
            this.candle1        = new Steema.TeeChart.Styles.Candle();
            this.renko1         = new Steema.TeeChart.Styles.Renko();
            this.buttonColor1   = new Steema.TeeChart.ButtonColor();
            this.buttonColor2   = new Steema.TeeChart.ButtonColor();
            this.label1         = new System.Windows.Forms.Label();
            this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
            this.SuspendLayout();
            //
            // textBox1
            //
            this.textBox1.Text = resources.GetString("textBox1.Text");
            //
            // panel1
            //
            this.panel1.Controls.Add(this.numericUpDown1);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.buttonColor2);
            this.panel1.Controls.Add(this.buttonColor1);
            this.panel1.Size = new System.Drawing.Size(440, 69);
            //
            // tChart1
            //
            //
            //
            //
            this.tChart1.Aspect.ElevationFloat = 345;
            this.tChart1.Aspect.RotationFloat  = 345;
            this.tChart1.Aspect.View3D         = false;
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Bottom.Automatic = true;
            //
            //
            //
            this.tChart1.Axes.Bottom.Grid.Style     = System.Drawing.Drawing2D.DashStyle.Dash;
            this.tChart1.Axes.Bottom.Grid.ZPosition = 0;
            //
            //
            //
            this.tChart1.Axes.Bottom.Labels.DateTimeFormat = "d.M.yyyy";
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Bottom.Labels.Font.Shadow.Visible = false;
            this.tChart1.Axes.Bottom.Labels.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Bottom.Labels.Shadow.Visible = false;
            this.tChart1.Axes.Bottom.RelativePosition      = 50;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Bottom.Title.Font.Shadow.Visible = false;
            this.tChart1.Axes.Bottom.Title.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Bottom.Title.Shadow.Visible = false;
            //
            //
            //
            this.tChart1.Axes.Depth.Automatic = true;
            //
            //
            //
            this.tChart1.Axes.Depth.Grid.Style     = System.Drawing.Drawing2D.DashStyle.Dash;
            this.tChart1.Axes.Depth.Grid.ZPosition = 0;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Depth.Labels.Font.Shadow.Visible = false;
            this.tChart1.Axes.Depth.Labels.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Depth.Labels.Shadow.Visible = false;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Depth.Title.Font.Shadow.Visible = false;
            this.tChart1.Axes.Depth.Title.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Depth.Title.Shadow.Visible = false;
            //
            //
            //
            this.tChart1.Axes.DepthTop.Automatic = true;
            //
            //
            //
            this.tChart1.Axes.DepthTop.Grid.Style     = System.Drawing.Drawing2D.DashStyle.Dash;
            this.tChart1.Axes.DepthTop.Grid.ZPosition = 0;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.DepthTop.Labels.Font.Shadow.Visible = false;
            this.tChart1.Axes.DepthTop.Labels.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.DepthTop.Labels.Shadow.Visible = false;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.DepthTop.Title.Font.Shadow.Visible = false;
            this.tChart1.Axes.DepthTop.Title.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.DepthTop.Title.Shadow.Visible = false;
            //
            //
            //
            this.tChart1.Axes.Left.Automatic   = true;
            this.tChart1.Axes.Left.EndPosition = 50;
            //
            //
            //
            this.tChart1.Axes.Left.Grid.Style     = System.Drawing.Drawing2D.DashStyle.Dash;
            this.tChart1.Axes.Left.Grid.ZPosition = 0;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Left.Labels.Font.Shadow.Visible = false;
            this.tChart1.Axes.Left.Labels.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Left.Labels.Shadow.Visible = false;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Left.Title.Font.Shadow.Visible = false;
            this.tChart1.Axes.Left.Title.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Left.Title.Shadow.Visible = false;
            //
            //
            //
            this.tChart1.Axes.Right.Automatic = true;
            //
            //
            //
            this.tChart1.Axes.Right.Grid.Style     = System.Drawing.Drawing2D.DashStyle.Dash;
            this.tChart1.Axes.Right.Grid.ZPosition = 0;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Right.Labels.Font.Shadow.Visible = false;
            this.tChart1.Axes.Right.Labels.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Right.Labels.Shadow.Visible = false;
            this.tChart1.Axes.Right.StartPosition         = 50;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Right.Title.Font.Shadow.Visible = false;
            this.tChart1.Axes.Right.Title.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Right.Title.Shadow.Visible = false;
            //
            //
            //
            this.tChart1.Axes.Top.Automatic = true;
            //
            //
            //
            this.tChart1.Axes.Top.Grid.Style     = System.Drawing.Drawing2D.DashStyle.Dash;
            this.tChart1.Axes.Top.Grid.ZPosition = 0;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Top.Labels.Font.Shadow.Visible = false;
            this.tChart1.Axes.Top.Labels.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Top.Labels.Shadow.Visible = false;
            this.tChart1.Axes.Top.Labels.Visible        = false;
            this.tChart1.Axes.Top.RelativePosition      = 100;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Axes.Top.Title.Font.Shadow.Visible = false;
            this.tChart1.Axes.Top.Title.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Axes.Top.Title.Shadow.Visible = false;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Footer.Font.Shadow.Visible = false;
            this.tChart1.Footer.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Footer.Shadow.Visible = false;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.Header.Font.Shadow.Visible = false;
            this.tChart1.Header.Font.Unit           = System.Drawing.GraphicsUnit.World;
            this.tChart1.Header.Lines = new string[] {
                "TeeChart"
            };
            //
            //
            //
            this.tChart1.Header.Shadow.Visible = false;
            this.tChart1.Header.Visible        = false;
            //
            //
            //
            this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom;
            //
            //
            //
            //
            //
            //
            this.tChart1.Legend.Font.Shadow.Visible = false;
            this.tChart1.Legend.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            //
            //
            //
            this.tChart1.Legend.Title.Font.Bold = true;
            //
            //
            //
            this.tChart1.Legend.Title.Font.Shadow.Visible = false;
            this.tChart1.Legend.Title.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.Legend.Title.Pen.Visible = false;
            //
            //
            //
            this.tChart1.Legend.Title.Shadow.Visible = false;
            this.tChart1.Location = new System.Drawing.Point(0, 142);
            //
            //
            //
            //
            //
            //
            this.tChart1.Panel.Shadow.Visible = false;
            this.tChart1.Series.Add(this.candle1);
            this.tChart1.Series.Add(this.renko1);
            this.tChart1.Size = new System.Drawing.Size(440, 175);
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.SubFooter.Font.Shadow.Visible = false;
            this.tChart1.SubFooter.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.SubFooter.Shadow.Visible = false;
            //
            //
            //
            //
            //
            //
            //
            //
            //
            this.tChart1.SubHeader.Font.Shadow.Visible = false;
            this.tChart1.SubHeader.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.tChart1.SubHeader.Shadow.Visible = false;
            //
            //
            //
            //
            //
            //
            this.tChart1.Walls.Back.AutoHide = false;
            //
            //
            //
            this.tChart1.Walls.Back.Brush.Visible = false;
            //
            //
            //
            this.tChart1.Walls.Back.Shadow.Visible = false;
            //
            //
            //
            this.tChart1.Walls.Bottom.AutoHide = false;
            //
            //
            //
            this.tChart1.Walls.Bottom.Shadow.Visible = false;
            //
            //
            //
            this.tChart1.Walls.Left.AutoHide = false;
            //
            //
            //
            this.tChart1.Walls.Left.Shadow.Visible = false;
            //
            //
            //
            this.tChart1.Walls.Right.AutoHide = false;
            //
            //
            //
            this.tChart1.Walls.Right.Shadow.Visible = false;
            //
            // candle1
            //
            //
            //
            //
            this.candle1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(93)))), ((int)(((byte)(165)))), ((int)(((byte)(161)))));
            this.candle1.CloseValues = this.candle1.YValues;
            this.candle1.DateValues  = this.candle1.XValues;
            //
            //
            //
            this.candle1.HighLowPen.Color = System.Drawing.Color.Black;
            //
            //
            //
            this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(93)))), ((int)(((byte)(165)))), ((int)(((byte)(161)))));
            //
            //
            //
            //
            //
            //
            this.candle1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
            this.candle1.Marks.Callout.ArrowHeadSize = 8;
            this.candle1.Marks.Callout.Distance      = 0;
            this.candle1.Marks.Callout.Draw3D        = false;
            this.candle1.Marks.Callout.Length        = 10;
            this.candle1.Marks.Callout.Style         = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            //
            //
            //
            //
            //
            //
            this.candle1.Marks.Font.Shadow.Visible = false;
            this.candle1.Marks.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.candle1.Pointer.Draw3D  = false;
            this.candle1.Pointer.Style   = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            this.candle1.Pointer.Visible = true;
            this.candle1.Title           = "Trading data";
            //
            //
            //
            this.candle1.XValues.DataMember = "Date";
            this.candle1.XValues.DateTime   = true;
            this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            //
            //
            //
            this.candle1.YValues.DataMember = "Close";
            //
            // renko1
            //
            //
            //
            //
            this.renko1.Brush.Color = System.Drawing.Color.White;
            this.renko1.HorizAxis   = Steema.TeeChart.Styles.HorizontalAxis.Top;
            //
            //
            //
            this.renko1.LinePen.Color = System.Drawing.Color.White;
            //
            //
            //
            //
            //
            //
            this.renko1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
            this.renko1.Marks.Callout.ArrowHeadSize = 8;
            this.renko1.Marks.Callout.Distance      = 0;
            this.renko1.Marks.Callout.Draw3D        = false;
            this.renko1.Marks.Callout.Length        = 10;
            this.renko1.Marks.Callout.Style         = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            //
            //
            //
            //
            //
            //
            this.renko1.Marks.Font.Shadow.Visible = false;
            this.renko1.Marks.Font.Unit           = System.Drawing.GraphicsUnit.World;
            //
            //
            //
            this.renko1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
            this.renko1.Title         = "Renko (close values)";
            this.renko1.VertAxis      = Steema.TeeChart.Styles.VerticalAxis.Right;
            //
            //
            //
            this.renko1.XValues.DataMember = "X";
            this.renko1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
            //
            //
            //
            this.renko1.YValues.DataMember = "Y";
            //
            // buttonColor1
            //
            this.buttonColor1.Color    = System.Drawing.Color.Empty;
            this.buttonColor1.Location = new System.Drawing.Point(12, 6);
            this.buttonColor1.Name     = "buttonColor1";
            this.buttonColor1.Size     = new System.Drawing.Size(105, 23);
            this.buttonColor1.TabIndex = 0;
            this.buttonColor1.Text     = "Up swing";
#if VS2005
            this.buttonColor1.UseVisualStyleBackColor = true;
#endif
            this.buttonColor1.Click += new System.EventHandler(this.buttonColor1_Click);
            //
            // buttonColor2
            //
            this.buttonColor2.Color    = System.Drawing.Color.Empty;
            this.buttonColor2.Location = new System.Drawing.Point(12, 35);
            this.buttonColor2.Name     = "buttonColor2";
            this.buttonColor2.Size     = new System.Drawing.Size(105, 23);
            this.buttonColor2.TabIndex = 1;
            this.buttonColor2.Text     = "Down swing";
#if VS2005
            this.buttonColor2.UseVisualStyleBackColor = true;
#endif
            this.buttonColor2.Click += new System.EventHandler(this.buttonColor2_Click);
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(143, 11);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(46, 13);
            this.label1.TabIndex = 2;
            this.label1.Text     = "Box size";
            //
            // numericUpDown1
            //
            this.numericUpDown1.Location = new System.Drawing.Point(195, 9);
            this.numericUpDown1.Maximum  = new decimal(new int[] {
                50,
                0,
                0,
                0
            });
            this.numericUpDown1.Minimum = new decimal(new int[] {
                1,
                0,
                0,
                0
            });
            this.numericUpDown1.Name     = "numericUpDown1";
            this.numericUpDown1.Size     = new System.Drawing.Size(64, 20);
            this.numericUpDown1.TabIndex = 3;
            this.numericUpDown1.Value    = new decimal(new int[] {
                5,
                0,
                0,
                0
            });
            this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
            //
            // Series_Renko
            //
            this.ClientSize = new System.Drawing.Size(440, 317);
            this.Name       = "Series_Renko";
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.candleSeries1 = new Steema.TeeChart.Styles.Candle();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(466, 63);
     this.textBox1.Text = @"When using Candle series with intraday data (default), the bottom axis automatically shows time labels.  But, when adding Candle points that have ""weekends"", it's necessary some code to display day / month labels correctly, without showing the weekend days.";
     //
     // panel1
     //
     this.panel1.Location = new System.Drawing.Point(0, 63);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(466, 34);
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     this.tChart1.Aspect.View3D            = false;
     //
     // tChart1.Axes
     //
     //
     // tChart1.Axes.Bottom
     //
     //
     // tChart1.Axes.Bottom.Labels
     //
     this.tChart1.Axes.Bottom.Labels.DateTimeFormat = "d.M.yyyy";
     //
     // tChart1.Header
     //
     this.tChart1.Header.Lines = new string[] {
         "tChart1"
     };
     this.tChart1.Header.Visible = false;
     //
     // tChart1.Legend
     //
     this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Top;
     this.tChart1.Legend.Visible   = false;
     this.tChart1.Location         = new System.Drawing.Point(0, 97);
     this.tChart1.Name             = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Brush.Gradient.EndColor   = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(220)), ((System.Byte)(220)), ((System.Byte)(226)));
     this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Panel.Brush.Gradient.Visible    = true;
     //
     // tChart1.Panel.Gradient
     //
     this.tChart1.Panel.Gradient.EndColor   = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(220)), ((System.Byte)(220)), ((System.Byte)(226)));
     this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Panel.Gradient.Visible    = true;
     this.tChart1.Series.Add(this.candleSeries1);
     this.tChart1.Size = new System.Drawing.Size(466, 189);
     //
     // Candle_NoWeekends
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(466, 286);
     this.Name = "Candle_NoWeekends";
     this.ResumeLayout(false);
 }
Example #16
0
 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_ExpMovAve));
     this.candle1        = new Steema.TeeChart.Styles.Candle();
     this.expMovAverage1 = new Steema.TeeChart.Functions.ExpMovAverage();
     this.line1          = new Steema.TeeChart.Styles.Line();
     this.label1         = new System.Windows.Forms.Label();
     this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
     this.label2         = new System.Windows.Forms.Label();
     this.comboBox1      = new System.Windows.Forms.ComboBox();
     this.checkBox1      = new System.Windows.Forms.CheckBox();
     this.timer1         = new System.Windows.Forms.Timer(this.components);
     this.panel1.SuspendLayout();
     this.chartContainer.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Size = new System.Drawing.Size(560, 40);
     this.textBox1.Text = "Exponential Moving Average function.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.comboBox1);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.numericUpDown1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Location = new System.Drawing.Point(0, 40);
     this.panel1.Size     = new System.Drawing.Size(560, 40);
     //
     // tChart1
     //
     //
     //
     //
     this.tChart1.Aspect.View3D  = false;
     this.tChart1.Aspect.ZOffset = 0;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.MaximumOffset = 5;
     this.tChart1.Axes.Bottom.MinimumOffset = 5;
     //
     //
     //
     this.tChart1.Axes.Left.MaximumOffset = 5;
     this.tChart1.Axes.Left.MinimumOffset = 5;
     //
     //
     //
     this.tChart1.Header.Lines = new string[] {
         "tChart1"
     };
     this.tChart1.Header.Visible = false;
     //
     //
     //
     //
     //
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Series.Add(this.line1);
     this.tChart1.Size = new System.Drawing.Size(560, 285);
     //
     // chartContainer
     //
     this.chartContainer.Location = new System.Drawing.Point(0, 80);
     this.chartContainer.Size     = new System.Drawing.Size(560, 285);
     //
     // candle1
     //
     //
     //
     //
     this.candle1.Brush.Color = System.Drawing.Color.Red;
     this.candle1.CloseValues = this.candle1.YValues;
     this.candle1.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
     this.candle1.ColorEach   = false;
     this.candle1.DateValues  = this.candle1.XValues;
     //
     //
     //
     this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
     //
     //
     //
     //
     //
     //
     this.candle1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.candle1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.candle1.Marks.Callout.Distance    = 0;
     this.candle1.Marks.Callout.Draw3D      = false;
     this.candle1.Marks.Callout.Length      = 10;
     this.candle1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Marks.Callout.Visible     = false;
     //
     //
     //
     this.candle1.Pointer.Draw3D = false;
     this.candle1.Pointer.Style  = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Title          = "candle1";
     //
     //
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // expMovAverage1
     //
     this.expMovAverage1.Period = 14;
     //
     // line1
     //
     //
     //
     //
     this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     this.line1.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     this.line1.ColorEach   = false;
     this.line1.Function    = this.expMovAverage1;
     //
     //
     //
     this.line1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(146)))), ((int)(((byte)(94)))), ((int)(((byte)(32)))));
     //
     //
     //
     //
     //
     //
     this.line1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.line1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.line1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.line1.Marks.Callout.Distance    = 0;
     this.line1.Marks.Callout.Draw3D      = false;
     this.line1.Marks.Callout.Length      = 10;
     this.line1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.line1.Pointer.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.line1.Pointer.HorizSize   = 3;
     //
     //
     //
     this.line1.Pointer.Pen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
     this.line1.Pointer.Style     = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Pointer.VertSize  = 3;
     this.line1.Pointer.Visible   = true;
     this.line1.Title             = "ExpMovAvg";
     //
     //
     //
     this.line1.XValues.DataMember = "X";
     this.line1.XValues.DateTime   = true;
     this.line1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.line1.YValues.DataMember = "Y";
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.Location  = new System.Drawing.Point(13, 14);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(40, 13);
     this.label1.TabIndex  = 0;
     this.label1.Text      = "&Period:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // numericUpDown1
     //
     this.numericUpDown1.Location = new System.Drawing.Point(60, 12);
     this.numericUpDown1.Minimum  = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.numericUpDown1.Name      = "numericUpDown1";
     this.numericUpDown1.Size      = new System.Drawing.Size(60, 20);
     this.numericUpDown1.TabIndex  = 1;
     this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
     this.numericUpDown1.Value     = new decimal(new int[] {
         14,
         0,
         0,
         0
     });
     this.numericUpDown1.TextChanged  += new System.EventHandler(this.numericUpDown1_TextChanged);
     this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.Location  = new System.Drawing.Point(133, 14);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(29, 13);
     this.label2.TabIndex  = 2;
     this.label2.Text      = "&Use:";
     this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // comboBox1
     //
     this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.Items.AddRange(new object[] {
         "Open",
         "High",
         "Low",
         "Close"
     });
     this.comboBox1.Location              = new System.Drawing.Point(166, 11);
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(80, 21);
     this.comboBox1.TabIndex              = 3;
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // checkBox1
     //
     this.checkBox1.FlatStyle       = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox1.Location        = new System.Drawing.Point(273, 12);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.Size            = new System.Drawing.Size(87, 21);
     this.checkBox1.TabIndex        = 4;
     this.checkBox1.Text            = "&Animate";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // timer1
     //
     this.timer1.Interval = 20;
     this.timer1.Tick    += new System.EventHandler(this.timer1_Tick);
     //
     // Function_ExpMovAve
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(560, 365);
     this.Name  = "Function_ExpMovAve";
     this.Load += new System.EventHandler(this.Function_ExpMovAve_Load);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.chartContainer.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Example #17
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.candleSeries1 = new Steema.TeeChart.Styles.Candle();
     this.checkBox1     = new System.Windows.Forms.CheckBox();
     this.label1        = new System.Windows.Forms.Label();
     this.comboBox1     = new System.Windows.Forms.ComboBox();
     this.gridBand1     = new Steema.TeeChart.Tools.GridBand();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(466, 40);
     this.textBox1.Text = "Candle bars can be displayed using custom colors.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.comboBox1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Location = new System.Drawing.Point(0, 40);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(466, 41);
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     //
     // tChart1.Header
     //
     this.tChart1.Header.Lines = new string[] {
         "tChart1"
     };
     this.tChart1.Location = new System.Drawing.Point(0, 81);
     this.tChart1.Name     = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Series.Add(this.candleSeries1);
     this.tChart1.Size = new System.Drawing.Size(466, 205);
     this.tChart1.Tools.Add(this.gridBand1);
     //
     // tChart1.Walls
     //
     //
     // tChart1.Walls.Bottom
     //
     //
     // tChart1.Walls.Bottom.Pen
     //
     this.tChart1.Walls.Bottom.Pen.Visible = false;
     this.tChart1.Walls.Bottom.Size        = 3;
     //
     // tChart1.Walls.Left
     //
     //
     // tChart1.Walls.Left.Pen
     //
     this.tChart1.Walls.Left.Pen.Visible = false;
     this.tChart1.Walls.Left.Size        = 3;
     //
     // candleSeries1
     //
     //
     // candleSeries1.Brush
     //
     this.candleSeries1.Brush.Color    = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(0)));
     this.candleSeries1.CloseValues    = this.candleSeries1.YValues;
     this.candleSeries1.DateValues     = this.candleSeries1.XValues;
     this.candleSeries1.DownCloseColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(0)));
     //
     // candleSeries1.LinePen
     //
     this.candleSeries1.LinePen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(77)), ((System.Byte)(77)), ((System.Byte)(0)));
     //
     // candleSeries1.Marks
     //
     //
     // candleSeries1.Marks.Symbol
     //
     //
     // candleSeries1.Marks.Symbol.Shadow
     //
     this.candleSeries1.Marks.Symbol.Shadow.Height  = 1;
     this.candleSeries1.Marks.Symbol.Shadow.Visible = true;
     this.candleSeries1.Marks.Symbol.Shadow.Width   = 1;
     //
     // candleSeries1.Pointer
     //
     this.candleSeries1.Pointer.Draw3D = false;
     this.candleSeries1.Pointer.Style  = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candleSeries1.Title          = "candleSeries1";
     //
     // candleSeries1.XValues
     //
     this.candleSeries1.XValues.DataMember = "Date";
     this.candleSeries1.XValues.DateTime   = true;
     this.candleSeries1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // candleSeries1.YValues
     //
     this.candleSeries1.YValues.DataMember = "Close";
     //
     // checkBox1
     //
     this.checkBox1.Checked         = true;
     this.checkBox1.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.FlatStyle       = System.Windows.Forms.FlatStyle.Flat;
     this.checkBox1.Location        = new System.Drawing.Point(20, 9);
     this.checkBox1.Name            = "checkBox1";
     this.checkBox1.Size            = new System.Drawing.Size(116, 21);
     this.checkBox1.TabIndex        = 0;
     this.checkBox1.Text            = "&Custom Colors";
     this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.Location  = new System.Drawing.Point(147, 11);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(33, 16);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "&Style:";
     this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // comboBox1
     //
     this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.Items.AddRange(new object[] {
         "Stick",
         "Bar",
         "Open Close",
         "Line"
     });
     this.comboBox1.Location              = new System.Drawing.Point(187, 9);
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(100, 21);
     this.comboBox1.TabIndex              = 2;
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // gridBand1
     //
     this.gridBand1.Axis = this.tChart1.Axes.Left;
     //
     // gridBand1.Band1
     //
     this.gridBand1.Band1.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192)));
     //
     // gridBand1.Band2
     //
     this.gridBand1.Band2.Color = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     //
     // Candle_CustomColors
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(466, 286);
     this.Name  = "Candle_CustomColors";
     this.Load += new System.EventHandler(this.Candle_CustomColors_Load);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			//any additional setup after loading the view, typically from a nib.
			r1 = new System.Drawing.RectangleF(0,0,this.View.Bounds.Width/2,this.View.Bounds.Height/2);						
			r2 = new System.Drawing.RectangleF(this.View.Bounds.Width/2,0,this.View.Bounds.Width/2,this.View.Bounds.Height/2);						
			r3 = new System.Drawing.RectangleF(0,this.View.Bounds.Height/2,this.View.Bounds.Width,this.View.Bounds.Height/2);						
			//r3 = new System.Drawing.RectangleF(0,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2);						
			// r4 = new System.Drawing.RectangleF(this.View.Bounds.Width/2,this.View.Bounds.Height/2,this.View.Bounds.Width/2,this.View.Bounds.Height/2);	
					
			chart1.Frame = r1;
			chart2.Frame = r2;
			chart3.Frame = r3;
			//chart4.Frame = r4;
			
			chart1.Header.Visible = false;
			chart1.Legend.Visible = false;
			chart2.Header.Visible = false;
			chart3.Header.Visible = false;
			//chart4.Header.Visible = false;
			
			this.View.AddSubview(chart1);
			this.View.AddSubview(chart2);
			this.View.AddSubview(chart3);
			//this.View.AddSubview(chart4);
			
			Steema.TeeChart.Themes.BlackIsBackTheme theme1 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart1.Chart);
			Steema.TeeChart.Themes.BlackIsBackTheme theme2 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart2.Chart);
			Steema.TeeChart.Themes.BlackIsBackTheme theme3 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart3.Chart);
			//Steema.TeeChart.Themes.BlackIsBackTheme theme4 = new Steema.TeeChart.Themes.BlackIsBackTheme(chart4.Chart);
			
			theme1.Apply();
			theme2.Apply();
			theme3.Apply();
			//theme4.Apply();
			
			Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart1.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette);	
			Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart2.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette);	
			Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart3.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette);	
			//Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(chart4.Chart,Steema.TeeChart.Themes.Theme.OnBlackPalette);				
			
			// Chart 1
			chart1.Panel.Gradient.Visible = false;
			chart1.Panel.Color = UIColor.Black.CGColor;
			Steema.TeeChart.Styles.Donut series1 = new Steema.TeeChart.Styles.Donut();
			chart1.Aspect.View3D = false;
			series1.FillSampleValues(4);
			series1.Circled = true;
			series1.Pen.Width = 5;
			series1.ExplodeBiggest=20;
			series1.Marks.Transparent = true;
			series1.Marks.Font.Color = UIColor.FromRGB(255,255,255).CGColor;
			series1.Marks.Font.Size = 20;
			chart1.Series.Add(series1);
			  
			// Chart 2
			
			chart2.Aspect.View3D = false;
			chart2.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;									
			chart2.Panel.Gradient.Visible = false;
			chart2.Panel.Color = UIColor.Black.CGColor;
			chart2.Walls.Back.Gradient.Visible = true;
			chart2.Walls.Back.Gradient.StartColor = UIColor.FromRGB(0,0,0).CGColor;
			chart2.Walls.Back.Gradient.EndColor = UIColor.DarkGray.CGColor;
			chart2.Axes.Bottom.Grid.Visible = false;
			chart2.Axes.Left.Increment = 15;
			chart2.Axes.Bottom.Labels.Font.Size = 15;
			chart2.Legend.Alignment = LegendAlignments.Bottom;
			chart2.Legend.Transparent = true;
			Steema.TeeChart.Styles.Line series2 = new Steema.TeeChart.Styles.Line();
			series2.Add(15);
			series2.Add(25);
			series2.Add(16);
			series2.Add(30);
			series2.Add(40);
			series2.Add(35);
			series2.Add(25);
			series2.Add(50);
			series2.Pointer.Visible = true;
			series2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
			series2.LinePen.Width = 3;
			series2.Pointer.Pen.Visible = false;
			Steema.TeeChart.Styles.Area series3 = new Steema.TeeChart.Styles.Area();
			series3.Add(10);
			series3.Add(15);
			series3.Add(6);
			series3.Add(15);
			series3.Add(10);
			series3.Add(25);
			series3.Add(20);
			series3.Add(24);
			series3.AreaLinesPen.Visible = true;
			series3.AreaLinesPen.Width=3;
			series3.AreaLinesPen.Color = series3.Color;		
			series3.LinePen.Visible = true;
			series3.LinePen.Width = 5;
			series3.AreaLines.Visible = false;
			series3.AreaBrush.Gradient.Visible = true;
			series3.AreaBrush.Gradient.EndColor = UIColor.DarkGray.CGColor;
			chart2.Series.Add(series2);
			chart2.Series.Add(series3);

			// Chart 3
			
			chart3.Aspect.View3D = false;
			chart3.Legend.Visible = false;
			chart3.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;									
			chart3.Panel.Gradient.Visible = false;
			chart3.Panel.Color = UIColor.Black.CGColor;
			chart3.Walls.Back.Gradient.Visible = true;
			chart3.Walls.Back.Gradient.StartColor = UIColor.Black.CGColor;
			chart3.Walls.Back.Gradient.EndColor = UIColor.FromRGB(79,79,79).CGColor;
			chart3.Axes.Left.Labels.Separation = 100;
			chart3.Axes.Left.Grid.Visible = true;
			chart3.Axes.Left.Grid.Color = UIColor.FromRGB(79,79,79).CGColor;
			chart3.Axes.Bottom.Grid.Color = UIColor.FromRGB(79,79,79).CGColor;
			chart3.Axes.Left.AxisPen.Visible = false;
			
			Steema.TeeChart.Styles.Candle candle = new Steema.TeeChart.Styles.Candle();
			Steema.TeeChart.Styles.Volume volume = new Steema.TeeChart.Styles.Volume();
			
			chart3.Series.Add(candle);
			chart3.Series.Add(volume);
			
			candle.FillSampleValues(70);
			candle.Pen.Visible = false;
			
			volume.FillSampleValues(70);
			volume.Color = UIColor.Yellow.CGColor;
			
			Steema.TeeChart.Axis axis = chart3.Axes.Left;
			//axis.AxisPen.Color = UIColor.Red.CGColor;
			axis.StartPosition = 0;
			axis.EndPosition = 72;
			axis.Labels.Font.Size = 12;
			
			Steema.TeeChart.Axis customAxis = new Steema.TeeChart.Axis(chart3.Chart);
			customAxis.OtherSide = true;
			chart3.Axes.Custom.Add(customAxis);
			//customAxis.AxisPen.Color = UIColor.Blue.CGColor;
			customAxis.StartPosition = 74;
			customAxis.EndPosition = 100;
			customAxis.Labels.Font.Color = UIColor.FromRGB(255,255,240).CGColor;
			customAxis.Labels.Font.Size = 12;
			customAxis.Grid.Visible = false;
			customAxis.AxisPen.Visible = false;
			
			volume.CustomVertAxis = customAxis;
			
			chart3.Legend.Alignment = LegendAlignments.Bottom;
			chart3.Legend.Transparent = true;
			chart3.Legend.Font.Size = 12;
			chart3.Legend.TopLeftPos = 0;
			
			chart3.Axes.Bottom.Labels.Font.Size = 12;

			
			/* Chart 4

			chart4.Aspect.View3D = false;
			chart4.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;									
			chart4.Panel.Gradient.Visible = false;
			chart4.Panel.Color = UIColor.Black.CGColor;
			chart4.Walls.Back.Transparent=true;
			Steema.TeeChart.Styles.HorizBar series5 = new Steema.TeeChart.Styles.HorizBar();
			series5.Add(10);
			series5.Add(50);
			series5.Add(30);
			series5.Add(70);
			//series5.BarHeightPercent=100;
			//series5.CustomBarWidth= 80;
			series5.ColorEach = true;
			//series5.Pen.Width = 3;
			//series5.Gradient.Visible = true;
			chart4.Series.Add(series5);
			chart4.Axes.Bottom.Visible = false;
			*/
		}
Example #19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1        = new System.Windows.Forms.Label();
     this.comboBox1     = new System.Windows.Forms.ComboBox();
     this.label2        = new System.Windows.Forms.Label();
     this.comboBox2     = new System.Windows.Forms.ComboBox();
     this.candle1       = new Steema.TeeChart.Styles.Candle();
     this.compressOHLC1 = new Steema.TeeChart.Functions.CompressOHLC();
     this.candle2       = new Steema.TeeChart.Styles.Candle();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Name = "textBox1";
     this.textBox1.Text = "Compression function calculates high and low values for a group of points. \r\nResu" +
                          "lts are plotted using a Candle series. \r\n\r\nSuitable for displaying Candle OHLC d" +
                          "ata \"weekly\", \"monthly\", etc.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.comboBox2);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.comboBox1);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Name = "panel1";
     //
     // tChart1
     //
     //
     // tChart1.Aspect
     //
     this.tChart1.Aspect.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
     //
     // tChart1.Header
     //
     this.tChart1.Header.Lines = new string[] {
         "tChart1"
     };
     //
     // tChart1.Legend
     //
     this.tChart1.Legend.Visible = false;
     this.tChart1.Name           = "tChart1";
     //
     // tChart1.Panel
     //
     //
     // tChart1.Panel.Brush
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Series.Add(this.candle2);
     //
     // tChart1.Walls
     //
     //
     // tChart1.Walls.Bottom
     //
     //
     // tChart1.Walls.Bottom.Pen
     //
     this.tChart1.Walls.Bottom.Pen.Visible = false;
     this.tChart1.Walls.Bottom.Size        = 5;
     //
     // tChart1.Walls.Left
     //
     //
     // tChart1.Walls.Left.Pen
     //
     this.tChart1.Walls.Left.Pen.Visible = false;
     this.tChart1.Walls.Left.Size        = 5;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(112, 23);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Compression period:";
     //
     // comboBox1
     //
     this.comboBox1.Items.AddRange(new object[] {
         "Daily",
         "Weekly",
         "Monthly",
         "Bi-monthly",
         "Quarterly",
         "Yearly"
     });
     this.comboBox1.Location              = new System.Drawing.Point(120, 8);
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(104, 21);
     this.comboBox1.TabIndex              = 1;
     this.comboBox1.Text                  = "Daily";
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(246, 10);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(42, 23);
     this.label2.TabIndex = 2;
     this.label2.Text     = "View:";
     //
     // comboBox2
     //
     this.comboBox2.Items.AddRange(new object[] {
         "CandleBar",
         "CandleStick",
         "Line",
         "OpenClose"
     });
     this.comboBox2.Location              = new System.Drawing.Point(287, 8);
     this.comboBox2.Name                  = "comboBox2";
     this.comboBox2.Size                  = new System.Drawing.Size(107, 21);
     this.comboBox2.TabIndex              = 3;
     this.comboBox2.Text                  = "CandleStick";
     this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
     //
     // candle1
     //
     //
     // candle1.Brush
     //
     this.candle1.Brush.Color = System.Drawing.Color.Red;
     this.candle1.CloseValues = this.candle1.YValues;
     this.candle1.DateValues  = this.candle1.XValues;
     //
     // candle1.Marks
     //
     //
     // candle1.Marks.Symbol
     //
     //
     // candle1.Marks.Symbol.Shadow
     //
     this.candle1.Marks.Symbol.Shadow.Height  = 1;
     this.candle1.Marks.Symbol.Shadow.Visible = true;
     this.candle1.Marks.Symbol.Shadow.Width   = 1;
     //
     // candle1.Pointer
     //
     //
     // candle1.Pointer.Brush
     //
     this.candle1.Pointer.Brush.Color = System.Drawing.Color.Red;
     this.candle1.Pointer.Draw3D      = false;
     this.candle1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Title = "candle1";
     //
     // candle1.XValues
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // candle1.YValues
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // compressOHLC1
     //
     this.compressOHLC1.Compress = Steema.TeeChart.Functions.CompressionPeriod.ocWeek;
     //
     // candle2
     //
     //
     // candle2.Brush
     //
     this.candle2.Brush.Color = System.Drawing.Color.Green;
     this.candle2.CloseValues = this.candle2.YValues;
     this.candle2.DataSource  = this.candle1;
     this.candle2.DateValues  = this.candle2.XValues;
     this.candle2.Function    = this.compressOHLC1;
     //
     // candle2.Marks
     //
     //
     // candle2.Marks.Symbol
     //
     //
     // candle2.Marks.Symbol.Shadow
     //
     this.candle2.Marks.Symbol.Shadow.Height  = 1;
     this.candle2.Marks.Symbol.Shadow.Visible = true;
     this.candle2.Marks.Symbol.Shadow.Width   = 1;
     //
     // candle2.Pointer
     //
     //
     // candle2.Pointer.Brush
     //
     this.candle2.Pointer.Brush.Color = System.Drawing.Color.Green;
     this.candle2.Pointer.Draw3D      = false;
     this.candle2.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle2.Title = "candle2";
     //
     // candle2.XValues
     //
     this.candle2.XValues.DateTime = true;
     this.candle2.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     // Function_CompressOHLC
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(440, 317);
     this.Name = "Function_CompressOHLC";
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #20
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Function_Bollinger));
     this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
     this.label1         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
     this.checkBox1      = new System.Windows.Forms.CheckBox();
     this.buttonColor1   = new Steema.TeeChart.ButtonColor();
     this.candle1        = new Steema.TeeChart.Styles.Candle();
     this.line1          = new Steema.TeeChart.Styles.Line();
     this.bollinger1     = new Steema.TeeChart.Functions.Bollinger();
     this.panel1.SuspendLayout();
     this.chartContainer.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
     this.SuspendLayout();
     //
     // textBox1
     //
     this.textBox1.Text = "Bollinger bands is a special function used as a financial indicator.\r\nIt calculat" +
                          "es and displays two lines, using a moving average \r\n(exponential or not) and the" +
                          " standard deviation.";
     //
     // panel1
     //
     this.panel1.Controls.Add(this.buttonColor1);
     this.panel1.Controls.Add(this.checkBox1);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.numericUpDown2);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.numericUpDown1);
     //
     // tChart1
     //
     //
     //
     //
     this.tChart1.Aspect.View3D  = false;
     this.tChart1.Aspect.ZOffset = 0;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Bottom.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Bottom.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Bottom.MaximumOffset = 5;
     this.tChart1.Axes.Bottom.MinimumOffset = 5;
     //
     //
     //
     this.tChart1.Axes.Bottom.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Bottom.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Bottom.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Depth.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Depth.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Depth.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Depth.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Depth.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Depth.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.DepthTop.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.DepthTop.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.DepthTop.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.DepthTop.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.DepthTop.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.DepthTop.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Left.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Left.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Left.MaximumOffset = 5;
     this.tChart1.Axes.Left.MinimumOffset = 5;
     //
     //
     //
     this.tChart1.Axes.Left.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Left.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Left.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Right.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Right.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Right.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Right.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Right.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Right.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Top.AxisPen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Top.Grid.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     this.tChart1.Axes.Top.Grid.Style = System.Drawing.Drawing2D.DashStyle.Solid;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Axes.Top.MinorTicks.Visible = false;
     //
     //
     //
     this.tChart1.Axes.Top.Ticks.Color = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130)))));
     //
     //
     //
     this.tChart1.Axes.Top.TicksInner.Visible = true;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Header.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.tChart1.Header.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Header.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Header.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Header.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     //
     //
     //
     this.tChart1.Header.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Legend.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120)))));
     this.tChart1.Legend.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Legend.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Legend.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Legend.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
     this.tChart1.Legend.Brush.Gradient.Visible     = true;
     //
     //
     //
     //
     //
     //
     this.tChart1.Legend.Font.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Legend.Pen.Visible = false;
     //
     //
     //
     //
     //
     //
     this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
     //
     //
     //
     this.tChart1.Panel.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
     this.tChart1.Panel.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Panel.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Panel.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Panel.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
     this.tChart1.Panel.Brush.Gradient.UseMiddle   = false;
     this.tChart1.Series.Add(this.candle1);
     this.tChart1.Series.Add(this.line1);
     this.tChart1.Series.Add(this.bollinger1.LowBand);
     this.tChart1.Size = new System.Drawing.Size(440, 205);
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Back.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120)))));
     this.tChart1.Walls.Back.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Back.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
     //
     //
     //
     this.tChart1.Walls.Back.Pen.Visible = false;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Bottom.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Bottom.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Bottom.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Walls.Bottom.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Walls.Bottom.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Walls.Bottom.Pen.Visible = false;
     //
     //
     //
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Left.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Left.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Left.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Walls.Left.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Walls.Left.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Walls.Left.Pen.Visible = false;
     //
     //
     //
     //
     //
     //
     this.tChart1.Walls.Right.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
     //
     //
     //
     this.tChart1.Walls.Right.Brush.Gradient.EndColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Right.Brush.Gradient.MiddleColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.tChart1.Walls.Right.Brush.Gradient.SigmaFocus  = 0F;
     this.tChart1.Walls.Right.Brush.Gradient.SigmaScale  = 0F;
     this.tChart1.Walls.Right.Brush.Gradient.StartColor  = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     //
     //
     //
     this.tChart1.Walls.Right.Pen.Visible = false;
     //
     // numericUpDown1
     //
     this.numericUpDown1.Location      = new System.Drawing.Point(134, 12);
     this.numericUpDown1.Name          = "numericUpDown1";
     this.numericUpDown1.Size          = new System.Drawing.Size(50, 20);
     this.numericUpDown1.TabIndex      = 1;
     this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(89, 14);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(45, 23);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Period:";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(208, 15);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(56, 16);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Deviation:";
     //
     // numericUpDown2
     //
     this.numericUpDown2.Location      = new System.Drawing.Point(268, 12);
     this.numericUpDown2.Name          = "numericUpDown2";
     this.numericUpDown2.Size          = new System.Drawing.Size(50, 20);
     this.numericUpDown2.TabIndex      = 3;
     this.numericUpDown2.ValueChanged += new System.EventHandler(this.numericUpDown2_ValueChanged);
     //
     // checkBox1
     //
     this.checkBox1.Checked    = true;
     this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
     this.checkBox1.Location   = new System.Drawing.Point(341, 10);
     this.checkBox1.Name       = "checkBox1";
     this.checkBox1.Size       = new System.Drawing.Size(104, 24);
     this.checkBox1.TabIndex   = 5;
     this.checkBox1.Text       = "Exponential";
     this.checkBox1.Click     += new System.EventHandler(this.checkBox1_Click);
     //
     // buttonColor1
     //
     this.buttonColor1.Color    = System.Drawing.Color.Empty;
     this.buttonColor1.Location = new System.Drawing.Point(6, 9);
     this.buttonColor1.Name     = "buttonColor1";
     this.buttonColor1.Size     = new System.Drawing.Size(75, 23);
     this.buttonColor1.TabIndex = 6;
     this.buttonColor1.Text     = "Color...";
     this.buttonColor1.Click   += new System.EventHandler(this.buttonColor1_Click);
     //
     // candle1
     //
     //
     //
     //
     this.candle1.Brush.Color = System.Drawing.Color.Red;
     this.candle1.CloseValues = this.candle1.YValues;
     this.candle1.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(102)))), ((int)(((byte)(163)))));
     this.candle1.ColorEach   = false;
     this.candle1.DateValues  = this.candle1.XValues;
     //
     //
     //
     this.candle1.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(61)))), ((int)(((byte)(98)))));
     //
     //
     //
     //
     //
     //
     this.candle1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.candle1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.candle1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.candle1.Marks.Callout.Distance    = 0;
     this.candle1.Marks.Callout.Draw3D      = false;
     this.candle1.Marks.Callout.Length      = 10;
     this.candle1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Marks.Callout.Visible     = false;
     //
     //
     //
     //
     //
     //
     this.candle1.Pointer.Brush.Color = System.Drawing.Color.Red;
     this.candle1.Pointer.Draw3D      = false;
     this.candle1.Pointer.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.candle1.Title = "Candle";
     //
     //
     //
     this.candle1.XValues.DataMember = "Date";
     this.candle1.XValues.DateTime   = true;
     this.candle1.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.candle1.YValues.DataMember = "Close";
     //
     // line1
     //
     //
     //
     //
     this.line1.Brush.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     this.line1.Color       = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(156)))), ((int)(((byte)(53)))));
     this.line1.ColorEach   = false;
     this.line1.Colors      = ((Steema.TeeChart.Styles.ColorList)(resources.GetObject("line1.Colors")));
     this.line1.DataSource  = this.candle1;
     this.line1.Function    = this.bollinger1;
     //
     //
     //
     //
     //
     //
     this.line1.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.line1.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.line1.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.line1.Marks.Callout.Distance    = 0;
     this.line1.Marks.Callout.Draw3D      = false;
     this.line1.Marks.Callout.Length      = 10;
     this.line1.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Marks.Callout.Visible     = false;
     //
     //
     //
     this.line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.line1.Title         = "Bollinger";
     //
     //
     //
     this.line1.XValues.DateTime = true;
     this.line1.XValues.Order    = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.line1.YValues.DataMember = "Close";
     //
     // bollinger1
     //
     this.bollinger1.Deviation = 2;
     //
     //
     //
     this.bollinger1.LowBand.Color     = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
     this.bollinger1.LowBand.ColorEach = false;
     //
     //
     //
     this.bollinger1.LowBand.LinePen.Color = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(76)))), ((int)(((byte)(20)))));
     //
     //
     //
     //
     //
     //
     this.bollinger1.LowBand.Marks.Callout.ArrowHead     = Steema.TeeChart.Styles.ArrowHeadStyles.None;
     this.bollinger1.LowBand.Marks.Callout.ArrowHeadSize = 8;
     //
     //
     //
     this.bollinger1.LowBand.Marks.Callout.Brush.Color = System.Drawing.Color.Black;
     this.bollinger1.LowBand.Marks.Callout.Distance    = 0;
     this.bollinger1.LowBand.Marks.Callout.Draw3D      = false;
     this.bollinger1.LowBand.Marks.Callout.Length      = 10;
     this.bollinger1.LowBand.Marks.Callout.Style       = Steema.TeeChart.Styles.PointerStyles.Rectangle;
     this.bollinger1.LowBand.Marks.Callout.Visible     = false;
     this.bollinger1.LowBand.ShowInLegend = false;
     this.bollinger1.LowBand.Title        = "fastLine1";
     this.bollinger1.LowBand.TreatNulls   = Steema.TeeChart.Styles.TreatNullsStyle.Ignore;
     //
     //
     //
     this.bollinger1.LowBand.XValues.DataMember = "X";
     this.bollinger1.LowBand.XValues.DateTime   = true;
     this.bollinger1.LowBand.XValues.Order      = Steema.TeeChart.Styles.ValueListOrder.Ascending;
     //
     //
     //
     this.bollinger1.LowBand.YValues.DataMember = "Y";
     this.bollinger1.Period = 10;
     //
     // Function_Bollinger
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(440, 317);
     this.Name  = "Function_Bollinger";
     this.Load += new System.EventHandler(this.BollingerFunction_Load);
     this.panel1.ResumeLayout(false);
     this.chartContainer.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }