Options
Configuration Structure
Options: {}chart
Chart-level options controlling dimensions and identification.
height
350Total height of the ApexStock chart in pixels, including the main candlestick area and any oscillator panels below it.
id
Unique identifier for the chart instance. Auto-generated if not provided.
series
Array of data series. Each series contains OHLCV data points rendered as candlesticks on the main chart.
series: [
{
name: 'Stock Price',
data: [
{ x: 1706745600000, y: [150, 155, 148, 153], v: 1200000 },
{ x: 1706832000000, y: [153, 158, 151, 157], v: 980000 },
],
},
]
name
Name of the data series displayed in the legend and tooltips.
data
Array of data points in OHLCV format.
x
Timestamp or date for the data point. Can be a Unix timestamp (number) or a date string.
y
Array containing [open, high, low, close] prices in that order. Used to render the candlestick body and wicks.
v
Volume for the time period. When present, volume data is available for the Volumes indicator.
theme
Theme configuration for the chart.
mode
'light'Color scheme for the chart.
Available Options:
- light (default) — light background with dark text
- dark — dark background with light text
plotOptions
Plot-specific options for the stock chart.
stockChart
Configuration specific to the stock chart component.
indicators
Configure which technical indicators are available. Indicators are split into overlays (drawn on the main chart) and oscillators (rendered in separate panels below).
Pass an object to enable/disable individual indicators, or an array of indicator name strings to enable only those.
plotOptions: {
stockChart: {
indicators: {
'moving average': { enabled: true },
'bollinger bands': { enabled: true },
'rsi': { enabled: true },
'macd': { enabled: false },
},
},
}
moving average
Moving Average overlay configuration.
enabled
Enable the Simple Moving Average overlay on the main chart.
bollinger bands
Bollinger Bands overlay configuration.
enabled
Enable the Bollinger Bands overlay showing price volatility bands.
exponential moving average
Exponential Moving Average overlay configuration.
enabled
Enable the Exponential Moving Average overlay for trend analysis.
fibonacci retracements
Fibonacci Retracements overlay configuration.
enabled
Enable Fibonacci retracement levels for support and resistance analysis.
linear regression
Linear Regression overlay configuration.
enabled
Enable the Linear Regression trend line overlay.
ichimoku cloud indicator
Ichimoku Cloud overlay configuration.
enabled
Enable the Ichimoku Cloud indicator for comprehensive trend analysis.
rsi
RSI oscillator configuration.
enabled
Enable the Relative Strength Index oscillator in a separate panel.
macd
MACD oscillator configuration.
enabled
Enable the Moving Average Convergence Divergence oscillator.
volumes
Volumes indicator configuration.
enabled
Enable the volume indicator showing trading volume in a separate panel.
price volume trend
Price Volume Trend indicator configuration.
enabled
Enable the Price Volume Trend indicator combining price and volume analysis.
stochastic oscillator
Stochastic Oscillator configuration.
enabled
Enable the Stochastic Oscillator for momentum analysis.
standard deviation indicator
Standard Deviation indicator configuration.
enabled
Enable the Standard Deviation indicator for volatility measurement.
average directional index
Average Directional Index configuration.
enabled
Enable the Average Directional Index (ADX) for trend strength analysis.
chaikin oscillator
Chaikin Oscillator configuration.
enabled
Enable the Chaikin Oscillator for accumulation/distribution analysis.
commodity channel index
Commodity Channel Index configuration.
enabled
Enable the Commodity Channel Index (CCI) oscillator.
trend strength index
Trend Strength Index configuration.
enabled
Enable the Trend Strength Index for measuring trend momentum.
accelerator oscillator
Accelerator Oscillator configuration.
enabled
Enable the Accelerator Oscillator for momentum acceleration analysis.
bollinger bands %b
Bollinger Bands %B indicator configuration.
enabled
Enable the Bollinger Bands %B indicator showing price position within bands.
bollinger bands width
Bollinger Bands Width indicator configuration.
enabled
Enable the Bollinger Bands Width indicator measuring band expansion/contraction.