Vela Examples

Basic Examples

Orientation: Basic setup with a single EMA indicator over offline data.

Static Chart: Multiple indicators (EMA, RSI, MACD, Bollinger Bands) in offline mode.

Live Chart: Same setup with live mode enabled and tick simulation.

Backtest: Run an SMA crossover strategy with PineTS and chart the result with Vela.

Backtest (Yahoo): The same strategy over live-fetched US/HK equity, index and crypto bars from Yahoo Finance.

Backtest History: Browse every backtest persisted by the MCP run_backtest tool.

Advanced Examples

Fully Featured: Complete setup with custom theme, WebGL2, drawing tools, and all options.

Drawings: Programmatic drawing creation and JSON round-trip.

Next steps

New to the API? Start at Quickstart.

Tuning behavior or appearance? See Options.

Full surface and events? See API reference.