/// <summary> /// отрисовать осноной чарт /// </summary> public void PaintPrimeChart() { if (string.IsNullOrEmpty(SecurityToInter)) { return; } if (_chartHost == null || _rectChart == null) { return; } _chart.Clear(); _chart.StartPaint(_chartHost, _rectChart); MinerCandleSeries series = CandleSeries.Find(ser => ser.Security.Name == SecurityToInter); if (series == null) { return; } _chart.SetCandles(series.Candles); if (_volume == null) { _volume = new Volume("Volume", false); _volume = (Volume)_chart.CreateIndicator(_volume, "VolumeArea"); } _volume.Process(series.Candles); }
/// <summary> /// начать прорисовку этого робота /// </summary> public void StartPaint(WindowsFormsHost host, Rectangle rectangle) { _chartMaster.StartPaint(host, rectangle); }