public MACDProFunctionChart(ChartView BaseChart) { candle = new Candle(); line = new Line(); macd = new MACDFunction(); leftAxis = new Axis(); var = new Variables.Variables(); Themes.DoubleAxisChart(BaseChart); Themes.CustomAxisLeft(leftAxis); BaseChart.Chart.Title.Text = "Moving Average Convergence Divergence"; BaseChart.Chart.Axes.Custom.Add(leftAxis); BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Increment = 20; leftAxis.Automatic = true; leftAxis.Increment = 3; FillSampleValues(candle, 15, 250); candle.HorizAxis = HorizontalAxis.Bottom; candle.VertAxis = VerticalAxis.Left; candle.Color = var.GetPaletteBasic[0]; candle.Style = CandleStyles.CandleBar; candle.UpCloseColor = var.GetPaletteBasic[0]; candle.DownCloseColor = var.GetPaletteBasic[1]; candle.CandleWidth = 15; candle.Pen.Width = 3; candle.Title = "Data Source"; line.DataSource = candle; line.Function = macd; line.HorizAxis = HorizontalAxis.Bottom; line.VertAxis = VerticalAxis.Custom; line.CustomVertAxis = leftAxis; line.Title = "Data Source"; macd.MACDPen.Color = var.GetPaletteBasic[2]; macd.MACDPen.Width = 3; macd.MACDExp.Color = var.GetPaletteBasic[3]; macd.MACDExpPen.Width = 3; macd.Histogram.Color = var.GetPaletteBasic[4]; macd.Histogram.LinePen.Width = 3; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Series.Add(line); }
public CCIProFunctionChart(ChartView BaseChart) { candle = new Candle(); line = new Line(); cciFunction = new CCIFunction(); var = new Variables.Variables(); leftAxis = new Axis(); Themes.CandleGodStyle(candle); BaseChart.Chart.Header.Text = "Commodity Channel Index (CCI)"; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Series.Add(line); Themes.DoubleAxisChart(BaseChart); Themes.CustomAxisLeft(leftAxis); candle.FillSampleValues(15); candle.HorizAxis = HorizontalAxis.Bottom; candle.VertAxis = VerticalAxis.Left; candle.Title = "Data Source"; line.DataSource = candle; line.Function = cciFunction; line.HorizAxis = HorizontalAxis.Bottom; line.VertAxis = VerticalAxis.Custom; line.CustomVertAxis = leftAxis; line.Title = "CCI"; line.LinePen.Width = 3; line.Color = var.GetPaletteBasic[2]; cciFunction.Series = candle; cciFunction.Period = 4; cciFunction.Constant = 0.005; cciFunction.PeriodStyle = PeriodStyles.Range; BaseChart.Chart.Axes.Left.SetMinMax(BaseChart.Chart.Axes.Left.MinYValue - 30, BaseChart.Chart.Axes.Left.MaxYValue + 30); BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Custom.Add(leftAxis); leftAxis.Automatic = true; }
public ATRProFunctionChart(ChartView BaseChart) { candle = new Candle(); line = new Line(); atrFunction = new ATRFunction(); var = new Variables.Variables(); this.BaseChart = BaseChart; leftAxis = new Axis(); BaseChart.Chart.Axes.Custom.Add(leftAxis); Themes.CandleGodStyle(candle); Themes.CustomAxisLeft(leftAxis); Themes.DoubleAxisChart(BaseChart); leftAxis.Automatic = true; BaseChart.Chart.Header.Text = "Average True Range Indicator (ATR)"; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Series.Add(line); candle.FillSampleValues(40); candle.VertAxis = VerticalAxis.Left; candle.HorizAxis = HorizontalAxis.Bottom; candle.Title = "Data Source"; line.DataSource = candle; line.Function = atrFunction; line.VertAxis = VerticalAxis.Custom; line.CustomVertAxis = leftAxis; line.HorizAxis = HorizontalAxis.Bottom; line.Title = "ATR"; line.LinePen.Width = 3; line.Color = var.GetPaletteBasic[2]; atrFunction.Period = 10; atrFunction.Series = candle; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; }
public RVIProFunctionChart(ChartView BaseChart) { candle = new Candle(); line = new Line(); rviFunction = new RVIFunction(); var = new Variables.Variables(); leftAxis = new Axis(); Themes.CandleGodStyle(candle); Themes.DoubleAxisChart(BaseChart); Themes.CustomAxisLeft(leftAxis); BaseChart.Chart.Title.Text = "Relative Vigor Index"; BaseChart.Chart.Axes.Custom.Add(leftAxis); BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; leftAxis.Increment = 0.1; leftAxis.Automatic = true; FillSampleValues(candle, 20); candle.Title = "DataSouce"; candle.HorizAxis = HorizontalAxis.Bottom; candle.VertAxis = VerticalAxis.Left; line.Title = "RVI"; line.DataSource = candle; line.Function = rviFunction; line.Color = var.GetPaletteBasic[2]; line.LinePen.Width = 3; line.HorizAxis = HorizontalAxis.Bottom; line.VertAxis = VerticalAxis.Custom; line.CustomVertAxis = leftAxis; rviFunction.Period = 10; rviFunction.Signal.Visible = true; rviFunction.Signal.LinePen.Width = 3; rviFunction.Signal.Color = var.GetPaletteBasic[3]; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Series.Add(line); }
public MomentumDivProFunctionChart(ChartView BaseChart) { line1 = new Line(); line2 = new Line(); momentumDivision = new MomentumDivision(); var = new Variables.Variables(); leftAxis = new Axis(); Themes.DoubleAxisChart(BaseChart); Themes.CustomAxisLeft(leftAxis); BaseChart.Chart.Title.Text = "Momentum"; leftAxis.Automatic = true; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Custom.Add(leftAxis); FillSampleValues(line1, 30, 600); line1.Color = var.GetPaletteBasic[0]; line1.LinePen.Width = 3; line1.Pointer.Visible = true; line1.Title = "Data Source"; line1.HorizAxis = HorizontalAxis.Bottom; line1.VertAxis = VerticalAxis.Left; line2.LinePen.Width = 3; line2.DataSource = line1; line2.Function = momentumDivision; line2.Title = "Momentum Divison"; line2.HorizAxis = HorizontalAxis.Bottom; line2.VertAxis = VerticalAxis.Custom; line2.CustomVertAxis = leftAxis; line2.Color = var.GetPaletteBasic[1]; momentumDivision.Period = 10; BaseChart.Chart.Series.Add(line1); BaseChart.Chart.Series.Add(line2); }
public RSIProFunctionChart(ChartView BaseChart) { candle = new Candle(); line = new Line(); rsiFunction = new RSIFunction(); var = new Variables.Variables(); rightAxis = new Axis(); Themes.CandleGodStyle(candle); Themes.DoubleAxisChart(BaseChart); Themes.CustomAxisRight(rightAxis); BaseChart.Chart.Title.Text = "Relative Strength Index"; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Axes.Custom.Add(rightAxis); BaseChart.Chart.Panel.MarginRight = 10; rightAxis.Automatic = true; FillSampleValues(candle, 20, 250); candle.Title = "Candle"; candle.HorizAxis = HorizontalAxis.Bottom; candle.VertAxis = VerticalAxis.Left; line.DataSource = candle; line.Function = rsiFunction; line.Color = var.GetPaletteBasic[2]; line.LinePen.Width = 3; line.HorizAxis = HorizontalAxis.Bottom; line.VertAxis = VerticalAxis.Custom; line.CustomVertAxis = rightAxis; line.Title = "R.S.I."; rsiFunction.Period = 5; rsiFunction.Style = RSIStyle.Close; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Series.Add(line); }
public GatorOscillProFunctionChart(ChartView BaseChart) { candle = new Candle(); line = new Line(); alligator = new AlligatorFunction(); volume = new Volume(); gator = new GatorFunction(); var = new Variables.Variables(); leftAxis = new Axis(); BaseChart.Chart.Title.Text = "Gator Oscillator"; Themes.CandleGodStyle(candle); Themes.DoubleAxisChart(BaseChart); Themes.CustomAxisLeft(leftAxis); FillSampleValues(candle, 60, 200); candle.Title = "Data Source"; candle.HorizAxis = HorizontalAxis.Bottom; candle.VertAxis = VerticalAxis.Left; candle.Marks.Transparency = 100; line.Title = "Alligator"; line.DataSource = candle; line.Function = alligator; line.HorizAxis = HorizontalAxis.Bottom; line.VertAxis = VerticalAxis.Left; line.LinePen.Width = 2; line.Marks.DrawEvery = 8; FillSampleValues(volume, 15); volume.Title = "Gator"; volume.UseOrigin = true; volume.DataSource = candle; volume.Function = gator; volume.HorizAxis = HorizontalAxis.Bottom; volume.VertAxis = VerticalAxis.Custom; volume.CustomVertAxis = leftAxis; volume.LinePen.Width = 2; volume.Marks.DrawEvery = 5; alligator.LipsPen.Color = var.GetPaletteBasic[2]; alligator.LipsPen.Width = 3; alligator.TeethPen.Color = var.GetPaletteBasic[3]; alligator.TeethPen.Width = 3; alligator.Lips.Marks.DrawEvery = 5; alligator.Teeth.Marks.DrawEvery = 5; gator.Bottom.Marks.Transparency = 100; leftAxis.Automatic = true; leftAxis.Increment = 1; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Custom.Add(leftAxis); BaseChart.Chart.Axes.Bottom.Automatic = true; BaseChart.Chart.Legend.Visible = false; BaseChart.Chart.Axes.Left.Increment = 10; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Series.Add(line); BaseChart.Chart.Series.Add(volume); }
public MoneyFlowProFunctionChart(ChartView BaseChart) { candle = new Candle(); volume = new Volume(); line = new Line(); moneyFlowFunction = new MoneyFlowFunction(); var = new Variables.Variables(); rightAxis = new Axis(); BaseChart.Chart.Header.Text = "Money Flow Index"; BaseChart.Chart.Series.Add(candle); BaseChart.Chart.Series.Add(volume); BaseChart.Chart.Series.Add(line); Themes.CandleGodStyle(candle); Themes.CustomAxisRight(rightAxis); Themes.UpdateAxes(BaseChart.Chart.Axes.Left, BaseChart.Chart.Axes.Bottom); Themes.DoubleAxisChart(BaseChart); BaseChart.Chart.Axes.Custom.Add(rightAxis); BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Left.Ticks.Transparency = 100; BaseChart.Chart.Axes.Bottom.Automatic = true; rightAxis.Automatic = true; candle.FillSampleValues(15); candle.Title = "Candle"; candle.HorizAxis = HorizontalAxis.Bottom; candle.VertAxis = VerticalAxis.Left; volume.HorizAxis = HorizontalAxis.Bottom; volume.VertAxis = VerticalAxis.Custom; volume.CustomVertAxis = rightAxis; volume.XValues.DataMember = "X"; volume.XValues.Order = ValueListOrder.Ascending; volume.YValues.DataMember = "Y"; volume.Title = "Volume"; volume.FillSampleValues(20); volume.LinePen.Width = 3; line.HorizAxis = HorizontalAxis.Bottom; line.VertAxis = VerticalAxis.Custom; line.CustomVertAxis = rightAxis; line.DataSource = candle; line.Function = moneyFlowFunction; line.LinePen.Width = 3; line.Color = var.GetPaletteBasic[2]; line.Title = "Line"; moneyFlowFunction.Series = candle; moneyFlowFunction.Volume = volume; moneyFlowFunction.CMFStyle = CMFStyle.Histogram; moneyFlowFunction.Volume.Color = var.GetPaletteBasic[3]; BaseChart.Chart.Axes.Custom.Add(rightAxis); rightAxis.Automatic = true; BaseChart.Chart.Axes.Left.Automatic = true; BaseChart.Chart.Axes.Bottom.Automatic = true; }