Esempio n. 1
0
 public void Add(ChartControl chart, Pane ownerPane)
 {
     owner = chart;
     indSeriesRenco = new CandlestickSeries(Name) {DownFillColor = ColorBarDn, UpFillColor = ColorBarUp};
     SeriesResult = new List<Series.Series> { indSeriesRenco };
     EntitleIndicator();
 }
 public void Add(ChartControl chart, Pane ownerPane)
 {
     owner = chart;
     // инициализируем индикатор
     candleSeries = new CandlestickSeries(Name)
     {
         DownFillColor = DownFillColor,
         UpFillColor = UpFillColor,
         UpLineColor = OutlineLineColor,
         DownLineColor = OutlineLineColor,
         BarDrawMode = DrawMode
     };
     seriesBound = new PartSeries("Границы Каймана")
     {
         LineColor = OutlineLineColor,
         ForeColor = OutlineLineColor,
         LineStyle = LineStyle.Dot,
         LineWidth = 1
     };
     SeriesResult = new List<Series.Series> { candleSeries, seriesBound };
     EntitleIndicator();
 }