public SeriesType_Candle() { // This call is required by the Windows Form Designer. InitializeComponent(); candleSeries1.FillSampleValues(20); }
public Function_ADX() { // This call is required by the Windows Form Designer. InitializeComponent(); UDPeriod.Value = Convert.ToDecimal(adxFunction1.Period); candle1.FillSampleValues(300); }
public Candle_OnGetPointer() { // This call is required by the Windows Form Designer. InitializeComponent(); candleSeries1.FillSampleValues(20); }
public Function_Compression() { // This call is required by the Windows Form Designer. InitializeComponent(); candle1.FillSampleValues(500); candle2.Visible = false; }
public Export_PDF() { // This call is required by the Windows Form Designer. InitializeComponent(); candle1.FillSampleValues(); line1.FillSampleValues(); }
private void RSIFunction_Load(object sender, System.EventArgs e) { this.comboBox1.SelectedIndex = 0; candle1.FillSampleValues(100); rsiFunction1.Period = 10; /* take 10 prices */ rsiFunction1.Style = Steema.TeeChart.Functions.RSIStyle.OpenClose; /* default calc method */ }
public Candle_CustomColors() { // This call is required by the Windows Form Designer. InitializeComponent(); candleSeries1.FillSampleValues(30); SetCustomColors(); }
public Function_OBV() { // This call is required by the Windows Form Designer. InitializeComponent(); obvFunction1.Volume = volume1; candle1.FillSampleValues(); volume1.FillSampleValues(); obvFunction1.Recalculate(); }
public Function_CCI() { // This call is required by the Windows Form Designer. InitializeComponent(); candle1.FillSampleValues(); numericUpDown1.Value = (decimal)cciFunction1.Period; textBox2.Text = cciFunction1.Constant.ToString(); }
public Function_CLV() { // This call is required by the Windows Form Designer. InitializeComponent(); candle1.FillSampleValues(); volume1.FillSampleValues(); checkBox1.Checked = clvFunction1.Accumulate; checkBox2.Checked = clvFunction1.Volume != null; }
private void Candle_HighLowPen_Load(object sender, System.EventArgs e) { buttonPen1.Pen = candle1.Pen; buttonPen2.Pen = candle1.HighLowPen; candle1.HighLowPen.Color = Color.Blue; candle1.HighLowPen.Width = 2; candle1.CandleWidth = 8; candle1.FillSampleValues(); }
public Function_Bollinger() { // This call is required by the Windows Form Designer. InitializeComponent(); candle1.FillSampleValues(400); bollinger1.Period = 50; numericUpDown1.Value = 50; bollinger1.Deviation = 2; numericUpDown2.Value = 2; }
public Function_ExpMovAve() { // This call is required by the Windows Form Designer. InitializeComponent(); Delta = 1; candle1.FillSampleValues(20); // setup exp. moving average function expMovAverage1.Series.DataSource = candle1; expMovAverage1.Series.CheckDataSource(); }
public override void ViewDidLoad() { base.ViewDidLoad(); chartview = new TChart(); chartview.Frame = new RectangleF(0, 0, 320, 460); //產生不同類型的圖表 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); }
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); }
public Tool_Fibonacci() { InitializeComponent(); candle1.FillSampleValues(40); fibonacciTool1.StartX = candle1.DateValues[0]; fibonacciTool1.StartY = candle1.CloseValues[0]; fibonacciTool1.EndX = candle1.DateValues[10]; fibonacciTool1.EndY = candle1.CloseValues[10]; buttonPen1.Pen = fibonacciTool1.TrendPen; comboBox1.SelectedIndex = 0; tChart1.MouseDown += TChart1_MouseDown; tChart1.Zoom.Direction = ZoomDirections.None; tChart1.Header.Text = "Click on Fibonacci Tool"; }
public MACD_Function() { // This call is required by the Windows Form Designer. InitializeComponent(); candle1.FillSampleValues(200); line1.Function = new Steema.TeeChart.Functions.MACDFunction(tChart1.Chart); line1.CheckDataSource(); numericUpDown1.Value = Convert.ToDecimal((line1.Function as Steema.TeeChart.Functions.MACDFunction).Period); numericUpDown2.Value = Convert.ToDecimal((line1.Function as Steema.TeeChart.Functions.MACDFunction).Period2); numericUpDown3.Value = Convert.ToDecimal((line1.Function as Steema.TeeChart.Functions.MACDFunction).Period3); // TODO: Add any initialization after the InitializeComponent call }
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; */ }
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; */ }