public FormMain() { InitializeComponent(); List <string> rgstrNames = simpleGraphingControl1.LoadModuleCache(); foreach (string strName in rgstrNames) { IGraphPlotDataEx idata = simpleGraphingControl1.CustomModules.Find(strName, false); if (idata != null) { IGraphPlotUserEdit iedit = idata.CreateUserEdit(); if (iedit != null) { ToolStripItem item = testToolStripMenuItem.DropDownItems.Add(iedit.Name + "..."); item.Tag = iedit; item.Click += Item_Click; } ConfigurationPlot plotConfig = new ConfigurationPlot(Guid.NewGuid()); plotConfig.PlotType = ConfigurationPlot.PLOTTYPE.CUSTOM; plotConfig.CustomName = idata.Name; plotConfig.SetCustomBuildOrder(idata.BuildOrder); simpleGraphingControl1.Configuration.Frames[0].Plots.Add(plotConfig); plotConfig = new ConfigurationPlot(Guid.NewGuid()); plotConfig.PlotType = ConfigurationPlot.PLOTTYPE.CUSTOM; plotConfig.CustomName = idata.Name; plotConfig.DataIndex = 1; simpleGraphingControl1.Configuration.Frames[1].Plots.Add(plotConfig); } } }
public GraphRenderBase(ConfigurationPlot config, GraphAxis gx, GraphAxis gy, GraphPlotStyle style) { m_config = config; m_gx = gx; m_gy = gy; m_style = style; }
public GraphRenderBB(ConfigurationPlot config, GraphAxis gx, GraphAxis gy, GraphPlotStyle style) : base(config, gx, gy, style) { m_rgpt[0] = new PointF(); m_rgpt[1] = new PointF(); m_rgpt[2] = new PointF(); m_rgpt[3] = new PointF(); m_rgpt[4] = new PointF(); }
private void FormPlotCollection2_Load(object sender, EventArgs e) { if (DesignMode) { return; } simpleGraphingControl1 = new SimpleGraphingControl(); simpleGraphingControl1.Name = "SimpleGraphing"; this.Controls.Add(simpleGraphingControl1); simpleGraphingControl1.Dock = DockStyle.Fill; simpleGraphingControl1.Configuration = new Configuration(); simpleGraphingControl1.Configuration.Frames.Add(new ConfigurationFrame()); simpleGraphingControl1.EnableCrossHairs = true; simpleGraphingControl1.Configuration.Frames[0].XAxis.LabelFont = new Font("Century Gothic", 7.0f); simpleGraphingControl1.Configuration.Frames[0].XAxis.Visible = true; simpleGraphingControl1.Configuration.Frames[0].XAxis.Margin = 100; simpleGraphingControl1.Configuration.Frames[0].YAxis.LabelFont = new Font("Century Gothic", 7.0f); simpleGraphingControl1.Configuration.Frames[0].YAxis.Decimals = 3; for (int i = 0; i < m_set.Count; i++) { ConfigurationPlot plotConfig = new ConfigurationPlot(); plotConfig.DataIndexOnRender = i; simpleGraphingControl1.Configuration.Frames[0].Plots.Add(plotConfig); if (m_set[0].Count > 0 && m_set[0][0].Y_values.Length == 4) { simpleGraphingControl1.Configuration.Frames[0].Plots[0].PlotType = ConfigurationPlot.PLOTTYPE.CANDLE; simpleGraphingControl1.Configuration.Frames[0].XAxis.ValueType = ConfigurationAxis.VALUE_TYPE.TIME; } else { simpleGraphingControl1.Configuration.Frames[0].Plots[0].PlotType = ConfigurationPlot.PLOTTYPE.LINE; simpleGraphingControl1.Configuration.Frames[0].XAxis.ValueType = ConfigurationAxis.VALUE_TYPE.NUMBER; } if (m_set[0].Parameters.ContainsKey("ValueType")) { simpleGraphingControl1.Configuration.Frames[0].XAxis.ValueType = (ConfigurationAxis.VALUE_TYPE)m_set[0].Parameters["ValueType"]; } } simpleGraphingControl1.Configuration.Frames[0].EnableRelativeScaling(true, true); List <PlotCollectionSet> rgSet = new List <PlotCollectionSet>() { m_set }; simpleGraphingControl1.BuildGraph(rgSet); simpleGraphingControl1.Invalidate(); simpleGraphingControl1.ScrollToEnd(true); }
public GraphRenderLineFill(ConfigurationPlot config, GraphAxis gx, GraphAxis gy, GraphPlotStyle style) : base(config, gx, gy, style) { m_rgpts5[0] = new PointF(); m_rgpts5[1] = new PointF(); m_rgpts5[2] = new PointF(); m_rgpts5[3] = new PointF(); m_rgpts5[4] = new PointF(); m_rgpts4[0] = new PointF(); m_rgpts4[1] = new PointF(); m_rgpts4[2] = new PointF(); m_rgpts4[3] = new PointF(); }
public GraphDataZones(ConfigurationPlot config) { m_config = config; if (config.ExtraSettings.ContainsKey("Resolution")) { m_nResolution = (int)config.ExtraSettings["Resolution"]; } if (config.ExtraSettings.ContainsKey("EnableVolumeScale")) { m_bEnableVolumeScale = (config.ExtraSettings["EnableVolumeScale"] != 0) ? true : false; } }
public GraphRenderHighLow(ConfigurationPlot config, GraphAxis gx, GraphAxis gy, GraphPlotStyle style) : base(config, gx, gy, style) { if (config.ExtraSettings != null && config.ExtraSettings.ContainsKey("DrawLines")) { if (config.ExtraSettings["DrawLines"] != 0) { m_bDrawLines = true; } } m_rgpt[0] = new PointF(); m_rgpt[1] = new PointF(); m_rgpt[2] = new PointF(); m_rgpt[3] = new PointF(); m_rgpt[4] = new PointF(); }
public GraphRenderZones(ConfigurationPlot config, GraphAxis gx, GraphAxis gy, GraphPlotStyle style) : base(config, gx, gy, style) { if (config.ExtraSettings.ContainsKey("Resolution")) { m_nResolution = (int)config.ExtraSettings["Resolution"]; } if (config.ExtraSettings.ContainsKey("EnableVolumeScale")) { m_bEnableVolumeScale = (config.ExtraSettings["EnableVolumeScale"] != 0) ? true : false; } if (config.ExtraSettings.ContainsKey("Width")) { m_nWidth = (int)config.ExtraSettings["Width"]; } }
public GraphRenderRSI(ConfigurationPlot config, GraphAxis gx, GraphAxis gy, GraphPlotStyle style) : base(config, gx, gy, style) { }
public GraphDataHighLow(ConfigurationPlot config) { m_config = config; }
public GraphDataEMA(ConfigurationPlot config) { m_config = config; }
public GraphDataBB(ConfigurationPlot config) { m_config = config; m_dfStdDev = config.GetExtraSetting("StdDev", 2.0); }