View as Markdown

API reference: @salmonui/charts/stock-chart

StockChartTextinterface

import type { StockChartText } from '@salmonui/charts/stock-chart';
interface StockChartText extends Readonly<Record<StockSeriesType | IndicatorKind, string>> {
    readonly seriesType: string;
    readonly indicators: string;
    readonly trendlines: string;
    readonly export: string;
    readonly toolbar: string;
    readonly reset: string;
    readonly customRange: string;
    readonly print: string;
    readonly period: string;
    readonly month1: string;
    readonly month3: string;
    readonly month6: string;
    readonly yearToDate: string;
    readonly year1: string;
    readonly allPeriod: string;
    readonly events: string;
    readonly price: string;
    readonly volume: string;
    readonly indicatorPeriod: string;
    readonly bollingerBand: string;
    readonly bollingerMiddle: string;
    readonly macdHistogram: string;
    readonly macdSignal: string;
    readonly stochasticK: string;
    readonly stochasticD: string;
}

Built-in text of a StockChart (stockText prop; the stockChart entry of a LocaleProvider catalog). The series type keys (candle, default the type itself) are the series type menu items, the indicator keys (sma: "SMA") the indicator menu items and series names.

StockChartText members (41, 16 inherited)
NameSignatureDescription
seriesTypereadonly seriesType: string;

Toolbar menus and names.

indicatorsreadonly indicators: string;
trendlinesreadonly trendlines: string;
exportreadonly export: string;
toolbarreadonly toolbar: string;
resetreadonly reset: string;
customRangereadonly customRange: string;
printreadonly print: string;

The print item of the export menu (the others are format names).

periodreadonly period: string;

Name and default buttons of the period selector.

month1readonly month1: string;
month3readonly month3: string;
month6readonly month6: string;
yearToDatereadonly yearToDate: string;
year1readonly year1: string;
allPeriodreadonly allPeriod: string;
eventsreadonly events: string;
pricereadonly price: string;

Names of the price series (without name) and of the volume series.

volumereadonly volume: string;
indicatorPeriodreadonly indicatorPeriod: string;

{name}, {period}: name of an indicator series with a period. Default "{name} {period}".

bollingerBandreadonly bollingerBand: string;

Names of the other indicator series.

bollingerMiddlereadonly bollingerMiddle: string;
macdHistogramreadonly macdHistogram: string;
macdSignalreadonly macdSignal: string;
stochasticKreadonly stochasticK: string;
stochasticDreadonly stochasticD: string;
accumulationDistributioninheritedaccumulationDistribution: string;
areainheritedarea: string;
atrinheritedatr: string;
bollingerinheritedbollinger: string;
candleinheritedcandle: string;
columninheritedcolumn: string;
emainheritedema: string;
hiloinheritedhilo: string;
lineinheritedline: string;
macdinheritedmacd: string;
momentuminheritedmomentum: string;
ohlcinheritedohlc: string;
rsiinheritedrsi: string;
smainheritedsma: string;
stochasticinheritedstochastic: string;
tmainheritedtma: string;