Beispiel #1
0
        private void InitChart(IChart chart, EquityCurveChart equity, EquityCurveChart position)
        {
            chart.ClearAreas();
            equity.Clear();
            position.Clear();

            _area = new ChartArea();
            chart.AddArea(_area);

            _candlesElem = new ChartCandleElement {
                ShowAxisMarker = false
            };
            chart.AddElement(_area, _candlesElem);

            _tradesElem = new ChartTradeElement {
                FullTitle = LocalizedStrings.Str985
            };
            chart.AddElement(_area, _tradesElem);
        }