Examples
Practical Scripting v3 implementations for real charting and market-analysis workflows.
Examples show how to build useful charting and market-analysis tools from start to finish. Most lead with the finished result and complete script, then walk through the implementation decisions you need to adapt it; the two strategy-runner pages instead walk the implementation section by section and link the complete source.
Examples use recorded market data and chart output to keep results reproducible.
Each example centers on one part of the language.
Language fundamentals:
- Plots and panes: the core plot kinds, fills, and sub-pane layout
- Confirmed market structure: multiple handlers, user types, confirmed pivots, and pooled zones
- Intrabar order flow: per-trade handlers, candle aggregation, and selective annotations
- Liquidity profile workstation: rolling POC/value area and a raw-volume imbalance heatmap
- Footprint cells: a bid x ask footprint and delta profile drawn with a cells plot, thin candles, and number formats
- Multi-timeframe terminal: a full four-hour candle and momentum workspace beside the chart
- Higher and lower timeframe confluence: genuine one-minute impulse with 15-minute and one-hour context
- Market decision dashboard: a styled table combining price, momentum, volatility, volume, OI, and CVD
- Strategy runner template: reusable long/short paper execution, accounting, liquidation, trade ledger, and HUD
- EMA and ATR strategy runner: a risk-sized inverted crossover implementation with RSI confirmation, ATR exits, and trailing protection
- Viewport-anchored market HUD: a fixed information card composed from anchored entity pools
- Trend candles: candle repainting, signal markers, and crossovers
- Trading sessions: clock-time sessions, background shading, and box entities
- Swing levels: entity pools, pivot confirmation, and formatted labels
- Market stats table: table windows and string formatting
- Hourly volume blocks: higher-timeframe volume and candle-aligned box entities
Multiple timeframes and data streams:
- HTF trend filter: higher-timeframe subscriptions and confirmed values
- MTF dashboard: a trend board across three timeframes in a table window
- CVD divergence: cumulative volume delta against price swings
- OI regimes: classifying bars by the price and open-interest direction pair
- VD absorption: outsized delta on bars that refuse to move
- Large prints: the raw trade tape, size filters, and per-print handlers