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.
| Name | Signature | Description |
|---|---|---|
seriesType | readonly seriesType: string; | Toolbar menus and names. |
indicators | readonly indicators: string; | |
trendlines | readonly trendlines: string; | |
export | readonly export: string; | |
toolbar | readonly toolbar: string; | |
reset | readonly reset: string; | |
customRange | readonly customRange: string; | |
print | readonly print: string; | The print item of the export menu (the others are format names). |
period | readonly period: string; | Name and default buttons of the period selector. |
month1 | readonly month1: string; | |
month3 | readonly month3: string; | |
month6 | readonly month6: string; | |
yearToDate | readonly yearToDate: string; | |
year1 | readonly year1: string; | |
allPeriod | readonly allPeriod: string; | |
events | readonly events: string; | |
price | readonly price: string; | Names of the price series (without |
volume | readonly volume: string; | |
indicatorPeriod | readonly indicatorPeriod: string; |
|
bollingerBand | readonly bollingerBand: string; | Names of the other indicator series. |
bollingerMiddle | readonly bollingerMiddle: string; | |
macdHistogram | readonly macdHistogram: string; | |
macdSignal | readonly macdSignal: string; | |
stochasticK | readonly stochasticK: string; | |
stochasticD | readonly stochasticD: string; | |
accumulationDistributioninherited | accumulationDistribution: string; | |
areainherited | area: string; | |
atrinherited | atr: string; | |
bollingerinherited | bollinger: string; | |
candleinherited | candle: string; | |
columninherited | column: string; | |
emainherited | ema: string; | |
hiloinherited | hilo: string; | |
lineinherited | line: string; | |
macdinherited | macd: string; | |
momentuminherited | momentum: string; | |
ohlcinherited | ohlc: string; | |
rsiinherited | rsi: string; | |
smainherited | sma: string; | |
stochasticinherited | stochastic: string; | |
tmainherited | tma: string; |