示例#1
0
        public PlottableOHLC PlotCandlestick(OHLC[] ohlcs)
        {
            PlottableOHLC ohlc = new PlottableOHLC(ohlcs, displayCandles: true);

            settings.plottables.Add(ohlc);
            return(ohlc);
        }
示例#2
0
        public PlottableOHLC PlotCandlestick(
            OHLC[] ohlcs,
            Color?colorUp   = null,
            Color?colorDown = null,
            bool autoWidth  = true,
            bool sequential = false
            )
        {
            PlottableOHLC ohlc = new PlottableOHLC()
            {
                ohlcs      = ohlcs,
                Candle     = true,
                AutoWidth  = autoWidth,
                Sqeuential = sequential,
                ColorUp    = colorUp ?? ColorTranslator.FromHtml("#26a69a"),
                ColorDown  = colorDown ?? ColorTranslator.FromHtml("#ef5350")
            };

            Add(ohlc);
            return(ohlc);
        }
示例#3
0
        public PlottableOHLC PlotCandlestick(
            OHLC[] ohlcs,
            Color?colorUp   = null,
            Color?colorDown = null,
            bool autoWidth  = true,
            bool sequential = false
            )
        {
            if (colorUp is null)
            {
                colorUp = ColorTranslator.FromHtml("#26a69a");
            }
            if (colorDown is null)
            {
                colorDown = ColorTranslator.FromHtml("#ef5350");
            }

            PlottableOHLC ohlc = new PlottableOHLC(ohlcs, true, autoWidth, colorUp.Value, colorDown.Value, sequential);

            Add(ohlc);
            return(ohlc);
        }
示例#4
0
 public PlottableOHLC PlotOHLC(OHLC[] ohlcs)
 {
     PlottableOHLC ohlc = new PlottableOHLC(ohlcs, displayCandles: false);
     settings.plottables.Add(ohlc);
     return ohlc;
 }
示例#5
0
        /// <summary>
        /// Plot open/high/low/close data
        /// </summary>
        public void PlotOHLC(OHLC[] ohlcs)
        {
            PlottableOHLC ohlc = new PlottableOHLC(ohlcs);

            settings.plottables.Add(ohlc);
        }