Help - Stock Candlestick, OHLC, and Other Overlay Charts (stock_chart)
Click here to open the calculator: Stock Candlestick, OHLC, and Other Overlay Charts
Stock Candlestick, OHLC, and Other Overlay Charts
Purpose
This calculator plots OHLC market data as a price chart and lets you add multiple technical overlays and indicator panels on top of the same dataset.
It is designed to help you inspect trend, momentum, volatility, breakout behavior, and volume confirmation in one view, then form a structured buy/sell decision process.
Background
Price chart types
Candle: Standard candlesticks that show Open, High, Low, Close per bar.OHLC: Bar format for the same OHLC values.Line: Close-only line chart.Heikin-Ashi: Smoothed candle construction using transformed OHLC values.Renko: Brick-based chart that focuses on price movement size rather than regular time bars.- Point and Figure (
PnF): Box-and-reversal chart focused on directional moves and reversals.
Renko and PnF are regime-style charts; in this calculator, most overlays/indicators are intentionally ignored for these types.
Indicator groups
- Trend/overlay:
SMA,EMA,BollingerBands,Donchian,PSAR, Support/Resistance. - Momentum:
RSI,MACD,CCI,Williams %R. - Volatility:
ATR. - Volume flow:
OBV.
Inputs
Data and Mapping
- Data: OHLCV table. Required logical fields are Date, Open, High, Low, Close; Volume is required when Volume panel or OBV is enabled.
- CSV URL and Load CSV: Optional quick load into Data.
- Show Mapping and mapping fields: Use when your input column names differ from default Date/OHLC/Volume names.
Chart Setup
- Title: Chart title.
- Chart Type: candle, ohlc, line, renko, pnf, or heikin.
- Style: Visual preset.
- Timeframe: raw or resampled bars (5m, 15m, 1h, 4h, 1d, 1w, 1mo).
- Chart width/height: Figure size.
- Show nontrading: Include or hide non-trading gaps.
- Log scale: Logarithmic price axis.
Overlays and Indicator Panels
- Volume panel toggle.
SMA,EMA,Bollinger,Donchian,PSARtoggles and parameter fields.RSI,MACD,ATR,CCI,Williams %R,OBVtoggles and parameter fields.
Marker and Level Inputs
- Marker symbol table: Per-indicator buy/sell marker symbols.
- Support levels and Resistance levels: Horizontal guide lines.
- Marker toggles: Per-indicator crossover/breakout marker generation.
Renko and PnF Inputs
- Renko brick size: Positive number or atr.
- PnF box size: Positive number or atr.
- PnF reversal: Positive integer.
Results
- chart: Rendered price chart with selected overlays/panels.
- Note: Optional note listing overlays ignored for the selected chart type (mainly renko/pnf, or insufficient-data cases).
Understanding the Calculation
Data validation and preprocessing
The calculator validates:
- Date values are valid datetimes.
- Open, High, Low, Close are numeric finite values.
- High >= Low, and Open/Close each lie between Low and High.
- Volume (if required) is numeric, finite, and non-negative.
If duplicate timestamps exist, rows are aggregated by timestamp using first-open, max-high, min-low, last-close, and summed volume.
If timeframe is not raw, data is resampled using OHLC aggregation and volume sum.
Overlay math used
SMA: Rolling mean over selected periods.EMA: Exponential moving mean with selected spans.Bollinger: Mid = rolling mean; upper/lower = mid +/- std_multiplier * rolling std.Donchian: Rolling highest high and lowest low.PSAR: Iterative Parabolic SAR using AF step and AF max.RSI: Derived from rolling average gains/losses over RSI period.MACD:EMA(fast) -EMA(slow), plus signalEMAand histogram.ATR: Rolling mean of true range.CCI: (Typical price - rolling mean) / (0.015 * mean absolute deviation).Williams %R: Position of close within rolling high-low range, scaled to [-100, 0].OBV: Cumulative signed volume by close direction, optionally smoothed.
Marker logic used by this calculator
Buy/sell markers are generated only when the corresponding marker toggle is on and the required base overlay is enabled.
MAcross markers: Buy when fastSMAcrosses above slowSMA; sell on opposite cross.EMAcross markers: Buy when fast EMA crosses above slowEMA; sell on opposite cross.RSIcross markers: Buy whenRSIcrosses up through oversold level; sell whenRSIcrosses down through overbought level.Donchianbreakout markers: Buy when close breaks above prior upper channel; sell when close breaks below prior lower channel.Bollingerband markers: Buy when close re-enters upward above lower band; sell when close re-enters downward below upper band.PSARflip markers: Buy on bearish-to-bullishPSARflip; sell on bullish-to-bearish flip.MACDcross markers: Buy whenMACDline crosses above signal; sell on opposite cross.ATRcross markers: Buy whenATRcrosses aboveATRmoving average; sell when crossing below.CCIthreshold markers: Buy whenCCIcrosses up through -100; sell when crossing down through +100.Williams %Rthreshold markers: Buy when %R crosses up through -80; sell when crossing down through -20.OBVcross markers: Buy whenOBVcrosses aboveOBVsmoothing average; sell when crossing below.
How to Make Buy/Sell Decisions with These Charts
Practical interpretation by indicator
RSI:
- Background: Momentum oscillator from 0 to 100.
- Common interpretation: below oversold threshold suggests recovery potential; above overbought threshold suggests exhaustion risk.
- In this calculator, marker logic is threshold-cross based (cross up from oversold for buy, cross down from overbought for sell).
MACD:
- Background: Trend-following momentum from two
EMAs. - Common interpretation: bullish when
MACDrises above signal, bearish when below. - In this calculator, marker logic follows
MACD-signal cross events.
CCI and Williams %R:
- Background: Mean-reversion style momentum oscillators.
- Common interpretation: threshold exits can indicate momentum turning points.
- In this calculator, marker logic is threshold-cross based as listed above.
Donchian and Bollinger:
- Background: Channel/band frameworks for breakout or reversion behavior.
- Donchian markers here are breakout-style; Bollinger markers here are re-entry-style.
PSAR:
- Background: Trend-following stop-and-reverse framework.
- Marker events indicate trend regime flips.
ATR:
- Background: Volatility magnitude, not direction.
ATRcross markers indicate volatility regime shifts, best used with directional indicators.
OBV:
- Background: Volume-pressure proxy.
OBVcross markers can support or weaken confidence in price-direction signals.
Structured decision workflow
- Start with trend context (price structure +
MA/EMA+PSAR). - Confirm momentum direction (
MACD,RSI,CCI, orWilliams %R). - Check volatility regime (
ATR) and volume confirmation (OBV). - Use support/resistance and channel context (
Donchian/Bollinger) for entry location. - Prefer decisions where multiple independent signals agree, instead of any single marker.
Important caution
Marker events are mechanical signal hints, not guaranteed trade outcomes. Use risk controls (position sizing, stop logic, invalidation levels) and validate against your strategy horizon and market conditions.
Example
Example setup for directional swing review:
- Chart Type: candle
- Timeframe: 1d
- Overlays:
EMAenabled with periods 8,21 andEMAcross markers on - Panels:
RSI(period 14, 70/30) andMACD(12,26,9), with markers on - Context lines: selected support/resistance levels
How to read it:
- A higher-quality long setup typically appears when
EMAbullish cross,MACDbullish cross, andRSIrecovering from oversold are aligned near support. - A higher-quality exit/short-risk warning typically appears when opposite conditions cluster near resistance.
Important Assumptions and Interpretation
Renko/PnFmodes suppress most overlays and can return a Note about ignored features.- Some overlays/markers are skipped when there is insufficient data length for selected periods.
- Volume column is mandatory when Volume panel or
OBVis enabled. - Timeframe resampling changes bar construction and therefore indicator values.
- This calculator is a technical-analysis visualization tool; it does not include transaction costs, slippage, liquidity impact, or portfolio/risk constraints.
Important: Use technical analysis as one input only, and combine it with risk management, position sizing, market context, and (when relevant) fundamental factors before making real trading decisions.