Open-source charting engine
Meme reality layer
What the feed shows against what traded. Minutes the indexer filled without swaps are hollow bars, and wicks the page clipped as bad prints get a tick at each end, with the printed values in a tooltip (setBarFlags). The 300 largest trades of 16 tracked wallets are avatars clustered across bars (markerCluster). Clicking a "+k" badge zooms into its bars; clicking an avatar opens that wallet's card from the marker object the event hands back. Your own fills sit at their exact price (atPrice). All data is synthetic.
Meme reality layer: Memecoins & wallets example
setBarFlags · markerCluster · position: 'atPrice' · chart.on('click') · markerHover
Code
import { FerroChart } from '@ferrochart/core';
const canvas = document.querySelector('canvas');
// Market data: the synthetic FerroChart demo API. Use your own feed.
const chart = await FerroChart.create(canvas, { theme: 'dark' });
const to = Math.floor(Date.now() / 60_000) * 60_000; // the last whole minute
const from = to - 120 * 60_000;
const range = 'symbol=MEME&from=' + from + '&to=' + to;
const bars = await fetch('/api/bars?interval=1m&' + range).then((r) => r.json());
const trades = await fetch('/api/trades?' + range).then((r) => r.json());
const n = bars.time.length;
// A feed is not the market (synthetic here): the indexer fills quiet minutes
// with flat bars, and a few bad prints leave absurd wicks.
const quiet = [...bars.volume].sort((a, b) => a - b)[Math.floor(n * 0.06)];
const filled = bars.time.map((_, i) => i > 0 && bars.volume[i] <= quiet);
filled.forEach((f, i) => { if (f) bars.open[i] = bars.high[i] = bars.low[i] = bars.close[i] = bars.close[i - 1]; });
[n - 96, n - 58, n - 21].forEach((i, k) => { filled[i] = false; if (k === 1) bars.low[i] *= 0.45; else bars.high[i] *= 1.8; });
// Clip wicks longer than 3 median ranges past the body; keep the raw prints.
const cap = 3 * bars.high.map((h, i) => h - bars.low[i]).sort((a, b) => a - b)[n >> 1];
const raw = new Map(); // bar index -> [high, low] as printed
for (let i = 0; i < n; i++) {
const top = Math.max(bars.open[i], bars.close[i]) + cap, bottom = Math.min(bars.open[i], bars.close[i]) - cap;
if (bars.high[i] <= top && bars.low[i] >= bottom) continue;
raw.set(i, [bars.high[i], bars.low[i]]);
bars.high[i] = Math.min(bars.high[i], top);
bars.low[i] = Math.max(bars.low[i], bottom);
}
const candles = chart.addCandlestickSeries({ markerCluster: 36 }); // one avatar and "+k" per 36 px
candles.setData(bars);
candles.setBarFlags(bars.time.flatMap((time, i) => (filled[i] || raw.has(i) ? [{ time, filled: filled[i], clipped: raw.has(i) }] : [])));
// 16 tracked wallets (synthetic) and the 300 largest trades, attributed to them.
const wallets = ['moonboy', 'gm_capital', 'ape_lord', 'sigma.sol', 'wenlambo', 'quiet_whale', 'degen_daily', 'early_bird',
'chart_wizard', 'delta_fund', 'pump_watch', 'cold_wallet', 'meme_queen', 'alpha_desk', 'ngmi_labs', 'flow_reader']
.map((name, i) => ({ name, kind: i % 2 ? 'Smart' : 'KOL', icon: 'w' + (i + 1), buys: 0, sells: 0, n: 0 }));
await Promise.all(wallets.map((w, i) => chart.registerIcon(w.icon, '/avatars/w' + String(i + 1).padStart(2, '0') + '.png')));
const fills = trades.time
.map((time, i) => ({ time, price: trades.price[i], usd: trades.price[i] * trades.size[i], buy: trades.side[i] > 0, wallet: wallets[(i * 7 + 3) % 16] }))
.sort((a, b) => b.usd - a.usd)
.slice(0, 300);
fills.forEach((f) => { f.wallet.n++; f.wallet[f.buy ? 'buys' : 'sells'] += f.usd; });
// Each marker carries its fill: events hand back the very object.
const markers = fills.map((fill, i) => ({
id: i + 1, fill, time: fill.time, position: fill.buy ? 'belowBar' : 'aboveBar', icon: fill.wallet.icon, size: 18,
color: '#1b1f2a', border: fill.buy ? '#2ee6b6' : '#ff5d73', borderWidth: fill.wallet.kind === 'Smart' ? 3 : 1.5,
}));
// Your own fills, at the price they executed (never clustered).
[0.2, 0.45, 0.7, 0.9].forEach((q, k) => {
const i = Math.floor(q * trades.time.length), buy = k % 2 === 0;
markers.push({ id: 1000 + k, mine: true, time: trades.time[i], position: 'atPrice', price: trades.price[i], shape: 'square',
label: 'ME', size: 16, color: buy ? '#2ee6b6' : '#ff5d73', text: (buy ? 'buy ' : 'sell ') + trades.price[i].toPrecision(4) });
});
candles.setMarkers(markers.sort((a, b) => a.time - b.time));
// Tooltips (hovered marker or flagged bar) and a wallet card (clicked avatar).
const usd = (v) => (v >= 1e6 ? '$' + (v / 1e6).toFixed(1) + 'M' : '$' + (v / 1e3).toFixed(0) + 'k');
let mark = null, bar = null, card = null; // tooltips of a marker and a flagged bar, a wallet card
const box = (ctx, x, y, rows) => {
const width = 16 + Math.max(...rows.map((r) => ctx.textWidth(r, 11)));
const height = 10 + rows.length * 16; // kept inside the plot
x = Math.max(ctx.rect.x, Math.min(x, ctx.rect.x + ctx.rect.width - width));
y = Math.max(ctx.rect.y, Math.min(y, ctx.rect.y + ctx.rect.height - height));
return [{ type: 'rect', x, y, width, height, color: 'rgba(17, 20, 28, 0.92)' },
...rows.map((text, i) => ({ type: 'text', x: x + 8, y: y + 5 + i * 16, text, size: 11, color: i ? '#e6ebf5' : '#8a93a6' }))];
};
const layer = chart.addLayer({ pane: 0, position: 'overlay', build: (ctx) => {
const tip = mark ?? bar;
return [...(card ? box(ctx, ctx.rect.x + 10, ctx.rect.y + 10, card) : []),
...(tip ? box(ctx, tip.x + 14, tip.y - 20, tip.rows) : [])];
} });
chart.on('markerHover', (e) => {
const f = e?.marker.fill;
mark = !e ? null : { x: e.x, y: e.y, rows:
e.overflow ? [e.overflow + ' more trades', 'over ' + (e.bars.to - e.bars.from + 1) + ' min, click to zoom']
: e.marker.mine ? ['your fill', e.marker.text]
: [f.wallet.name + ' (' + f.wallet.kind + ')', (f.buy ? 'buy ' : 'sell ') + usd(f.usd) + ' at ' + f.price.toPrecision(4)] };
chart.invalidateLayer(layer);
});
chart.on('crosshairMove', ({ point }) => {
const i = point ? Math.round(point.logicalIndex) : -1, w = raw.get(i);
const next = w ? ['wick clipped', 'printed high ' + w[0].toPrecision(4) + ', low ' + w[1].toPrecision(4)]
: filled[i] ? ['filled bar', 'no swaps this minute'] : null;
if (next || bar) { bar = next && { x: point.x, y: point.y, rows: next }; chart.invalidateLayer(layer); }
});
chart.on('click', (e) => {
const t = e.target;
if (t?.type === 'markerOverflow') return chart.setVisibleLogicalRange(t.bars.from - 10, t.bars.to + 10);
const w = t?.type === 'marker' && t.marker.fill?.wallet;
card = w ? [w.name + ' (' + w.kind + ')', w.n + ' trades in 2h', 'bought ' + usd(w.buys) + ', sold ' + usd(w.sells), 'net ' + (w.buys >= w.sells ? '+' : '-') + usd(Math.abs(w.buys - w.sells))] : null;
chart.invalidateLayer(layer);
});
chart.setBarSpacing(8);
chart.scrollToRealtime();Built for tick-level data.
Apple M4 Max · Chrome + WebGPULoad 1 million bars and draw the first frame in the browser
WASM · WebGPU
Load 10 million bars natively, level-of-detail pyramid included
native Rust
Heap allocations per frame while panning, zooming and streaming
steady state
WebAssembly package size, gzip
all features
Browser figures: Google Chrome with WebGPU; the 10 million bar load is native Rust. Bars show each figure against its target: 300 ms for a load, no allocations, 1.5 MB for the package.
Examples
313 examples
across 20 use cases.
Each example is a live chart rendered by FerroChart in your browser, with its source code alongside. All data is synthetic.



Price action
25 examples →Candles, bars and lines for any market, streaming in real time.



Order flow
20 examples →Footprint, depth heatmap and market profile, on a compute-shader path.



Crypto derivatives
15 examples →Funding, open interest, liquidations and basis in panes under price.



Options & volatility
18 examples →Implied against realised, skew, expected moves and dealer exposure in time.



Portfolio, risk & quant
24 examples →Equity curves, drawdowns, rolling statistics, factor research and risk checks.



Custom series & plugins
11 examples →Stacked, grouped, box and brushed series: layer plugins on the same GPU frame.
Browse all 20 use cases
Price action
- Candlesticks + volume
- Real-time stream
- Bar replay
- OHLC bars
- Heikin-Ashi
- Hollow candles
- Volume-width candles
- HLC bars
- Rounded candles
- High–low range bars
- Line
- Line with points
- Step line
- HLC area
- Columns
- Returns histogram
- Area
- Baseline
- Compare (% change)
- Two markets as candles
- Higher-timeframe candles
- Trading sessions
- Drawing tools
- Quote card
- Watchlist
Bar types & transforms
Technical analysis
Order flow
- Footprint
- Delta footprint
- Depth heatmap
- Market profile (TPO)
- Volume heat candles
- Session volume profile
- Visible-range volume profile
- Anchored & fixed-range profile
- Order-book imbalance
- Liquidity heatmap with trades
- Block trade bubbles
- Icebergs & large fills
- Pulled-order patterns
- Trade size distribution
- Adds, cancels, fills & OFI
- Bid/ask band & spread
- Liquidity terrain candles
- Liquidity withdrawal shocks
- Depth recovery
- Depth chart beside the candles
Execution & trade review
Crypto derivatives
- Funding · open interest · liquidations
- Long/short ratio · CVD
- Implied volatility · basis
- Long/short ratio · liquidations
- Open interest × price quadrants
- Liquidation bubbles
- Liquidation heatmap
- Premium index
- Cumulative funding by venue
- Top traders vs all accounts
- Futures weekend gaps
- Volume share by venue
- Insurance fund · auto-deleveraging
- OI-weighted funding
- Activity by hour and weekday
On-chain
- MVRV · realised price
- Realised price bands
- HODL waves
- SOPR-colored price
- NUPL cycle zones
- Market cap vs realised cap
- Long- and short-term holders
- Coin-days destroyed · dormant supply
- Supply by balance tier
- Issuance minus burn
- Fee revenue by chain
- Supply in profit
- Miner balance · outflows
- Hash ribbons
- Puell multiple
- NVT signal
- Staking ratio · yield
- Log regression rainbow
- Exchange and bridge net flows
- Active addresses · transfer sizes
- Cost basis distribution
DeFi & AMMs
- LP range on pool candles
- LP risk canvas
- LP positions
- AMM liquidity history
- LP position replay
- Pool TVL · volume · fees
- Yield by source
- TVL change: price vs flows
- Revenue vs incentives
- LP P&L: fees vs LVR
- Tokenised treasury fund
- Lending rates
- Bad debt vs reserve
- Liquidation auction
- Stablecoin depeg
- Mint & redeem flows
- Stablecoin supply by chain
- Staking queues
- LST · LRT discount
- Oracle deviation
- Airdrop claims & selling
- Cross-pool spreads
- Concentrated liquidity by price
Memecoins & wallets
- Market-cap chart with trade labels
- Trade bubbles
- KOL and smart-money wallets
- Meme reality layer
- Market cap step line
- Top-holder concentration
- Developer wallet timeline
- LP lock and burn
- Social heat and price
- Suspected wash trading
- Arbitrage window lifetimes
- Launch, graduation, listing
- Wallet group flows
- Unlock schedule and supply
Equities & fundamentals
- Revenue · profit · free cash flow
- EPS: actual vs estimate
- Margin trends
- Guidance vs actual
- Earnings reaction replay
- Estimate revisions
- Valuation percentile bands
- Analyst price targets
- 52-week range position
- Short interest · borrow fee
- Dividends, buybacks & splits
- Dividend history & coverage
- Buybacks & share count
- Insider trades
- Revenue by segment
- Earnings quality
- Market breadth
- Income statement waterfall
- Seasonality by month
- Monthly returns heat map
- Daily returns calendar
- Relative rotation graph
China A-shares
- Intraday tick chart
- Five-day tick chart
- Opening call auction
- Chip distribution (CYQ)
- Main-force money flow
- Cross-border connect flows
- Margin financing balance
- Block trades
- Limit-up statistics
- Market sentiment gauge
- IPO first-day returns
- Lock-up expiry calendar
- Convertible bond premiums
- Convertible call countdown
- A/H share premium
- Warehouse receipts
Options & volatility
- Implied vs realised vol · IV rank
- Expected move to expiry
- Risk reversal · butterfly
- Put/call ratio
- Large option prints
- Earnings: implied vs actual move
- Open interest by strike
- Dealer gamma exposure
- Strategy P&L by price and date
- Delta hedge replay
- Gamma P&L attribution
- Volatility smile
- Option payoff · long straddle
- Greeks across the price
- Volatility cone
- Implied price distribution
- Gamma exposure by strike
- Open interest by strike
Rates, FX & macro
- Curve level · slope · curvature
- Real yield · breakeven inflation
- Swap spread
- Credit spread percentiles
- Maturity wall
- Bond cash-flow ladder
- Treasury auction results
- Central bank balance sheets
- Macro data surprises
- FX carry · drawdown
- Rate differential vs FX
- Real effective exchange rate
- Purchasing power parity gap
- FX trading sessions
- Balance of payments
- Treasury yield curve
- Key rate durations
- Policy rate projections (dot plot)
Futures & commodities
Funds & ETFs
Portfolio, risk & quant
- Equity curve · drawdown
- Underwater curve · worst drawdown
- Joint drawdowns
- Walk-forward windows
- In-sample vs out-of-sample
- Live vs backtest
- Rebalancing counterfactuals
- Rolling return · volatility · Sharpe · beta
- Rolling correlation
- VaR backtest exceptions
- Liquidity-adjusted VaR
- Cash stress test
- Currency hedge effect
- Allocation & drift
- Factor ranking (bump chart)
- Quintile backtest
- IC · Rank IC
- Factor turnover
- Market regimes
- Return distribution
- Risk vs return
- Efficient frontier
- Correlation matrix
- Factor exposures by month
Private markets & personal finance
Prediction markets
Custom series & plugins
Labs & flagships
Candlesticks + volume
1 / 25The classic view. A day of real one-minute bars, updating every second, on a GPU-rendered price scale with a volume histogram below. Drag to pan, scroll or pinch to zoom.
FerroChart.createaddCandlestickSeriesaddVolumeSeriesDrag to pan · scroll or pinch to zoom · double-click to resetLive data · OKXcandles
Features
Designed for market data.
Cross-platform rendering
A single Rust core with WebGPU and WebGL2 backends in the browser, wgpu on Metal, Vulkan and DirectX 12 in native applications, and a CPU renderer for servers. Golden-image tests keep the backends consistent.
Performance independent of data size
Bar data stays on the GPU and coordinate transforms run in shaders, so panning and zooming update only a few uniforms. A level-of-detail pyramid keeps tens of millions of bars responsive.
30 built-in indicators
Moving averages, channels and oscillators from SMA to Ichimoku. Values are updated incrementally on each tick and tested against reference data.
29 drawing tools
Trend lines, channels, Fibonacci tools, pitchforks, Gann fans, patterns, Elliott waves, ranges, positions and text, with undo and redo. Drawings and chart state serialize to JSON.
Synchronized charts
Sync groups link the crosshair and the visible range across multiple charts.
Extensible
Plugin interfaces for custom series, layers and drawing tools. Bindings for JavaScript, Rust and Python, and a C ABI for C#, C++, Qt and Flutter.
Get started
One API in every language.
Every binding follows the same model: create a chart, add series, set data and add indicators. Data is passed as columns, from typed arrays, Rust slices or DataFrames.
- JavaScript & TypeScript
- Rust
- Python & Jupyter
- C, C#, C++
import { FerroChart } from '@ferrochart/core';
const chart = await FerroChart.create(canvas, { theme: 'dark' });
const candles = chart.addCandlestickSeries();
chart.addVolumeSeries(candles);
candles.setData(bars); // [{ time, open, high, low, close, volume }, ...]
chart.addIndicator(candles, 'ema', { n: 20 });
chart.addIndicator(candles, 'macd'); // in a new paneFerroChart
Every market.
Every screen.
One engine.
Open source under Apache-2.0, from the browser to the trading desk.