public PlottableOHLC PlotCandlestick(OHLC[] ohlcs) { PlottableOHLC ohlc = new PlottableOHLC(ohlcs, displayCandles: true); settings.plottables.Add(ohlc); return(ohlc); }
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); }
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); }
public PlottableOHLC PlotOHLC(OHLC[] ohlcs) { PlottableOHLC ohlc = new PlottableOHLC(ohlcs, displayCandles: false); settings.plottables.Add(ohlc); return ohlc; }
/// <summary> /// Plot open/high/low/close data /// </summary> public void PlotOHLC(OHLC[] ohlcs) { PlottableOHLC ohlc = new PlottableOHLC(ohlcs); settings.plottables.Add(ohlc); }