private void DrawLine(GraphicsEx g, Graph graph, Color bidColor, Color askColor) { LineType type = m_settings.Type; if (LineType.Straight == type) { graph.DrawStraight(g, bidColor, askColor); } else if (LineType.Stepped == type) { graph.DrawStepped(g, bidColor, askColor); } else if (LineType.Interpolation == type) { graph.DrawInterpolation(g, bidColor, askColor); } }
private void CalculateGraphs(ChartSettings settings) { Graphs.Clear(); foreach (var element in settings.Lines) { double volume = element.Volume * m_parameters.LotSize; Graph graph = new Graph(volume, m_quotes); Graphs.Add(graph); } }