Class BOBStockChart<TX>
- Namespace
- BlazOrbit.Charts.Components
- Assembly
- BlazOrbit.Charts.dll
Multi-pane stock chart - extends the candlestick paradigm with stacked indicator panes (RSI, MACD, Volume) and overlay indicators (Bollinger Bands) on the price pane. Panes share the X axis so the user can correlate price action with momentum / volume signals.
public sealed class BOBStockChart<TX> : BOBChartBase<TX, double>, IDataVisualizationFamilyComponent where TX : notnull
Type Parameters
TXX-axis type (DateTime / int / etc).
- Inheritance
-
objectComponentBaseBOBChartBase<TX, double>BOBStockChart<TX>
- Implements
- Inherited Members
Constructors
BOBStockChart()
public BOBStockChart()
Properties
BollingerPeriod
Bollinger band period. Default 20.
[Parameter]
public int BollingerPeriod { get; set; }
Property Value
- int
BollingerStdMultiplier
Bollinger band standard-deviation multiplier. Default 2.
[Parameter]
public double BollingerStdMultiplier { get; set; }
Property Value
- double
Candles
OHLC + volume series rendered in the main price pane.
[Parameter]
public IEnumerable<BOBChartCandlePoint<TX>>? Candles { get; set; }
Property Value
- IEnumerable<BOBChartCandlePoint<TX>>
DownColor
Bearish (Close < Open) candle color. Default red.
[Parameter]
public string DownColor { get; set; }
Property Value
- string
Indicators
Indicators to render below the main pane (or overlaid for Bollinger). Each indicator owns one pane in this order; Volume + RSI + MACD stack vertically.
[Parameter]
public IReadOnlyList<BOBChartTechnicalIndicator>? Indicators { get; set; }
Property Value
- IReadOnlyList<BOBChartTechnicalIndicator>
MacdFast
MACD fast EMA period. Default 12.
[Parameter]
public int MacdFast { get; set; }
Property Value
- int
MacdSignal
MACD signal-line smoothing period. Default 9.
[Parameter]
public int MacdSignal { get; set; }
Property Value
- int
MacdSlow
MACD slow EMA period. Default 26.
[Parameter]
public int MacdSlow { get; set; }
Property Value
- int
RsiPeriod
RSI period. Default 14 (the canonical Wilder choice).
[Parameter]
public int RsiPeriod { get; set; }
Property Value
- int
UpColor
Bullish (Close ≥ Open) candle color. Default green.
[Parameter]
public string UpColor { get; set; }
Property Value
- string
Methods
BuildAriaLabel()
Default ARIA label for the chart's <svg> root. Subclasses
override to inject series / value summaries (improves screen-reader
experience).
protected override string BuildAriaLabel()
Returns
- string
RenderSvg(RenderTreeBuilder)
Concrete charts override this to emit SVG content. The supplied
builder is positioned inside the <svg> root, so
implementations only need to add geometry primitives (lines, paths,
rects, text). Sequence numbers must remain unique within the override.
protected override void RenderSvg(RenderTreeBuilder builder)
Parameters
builderRenderTreeBuilderRender tree builder positioned inside the SVG root.