# Examples

> Complete, commented scripts for order flow, market structure, dashboards and strategies that you can paste into the editor and adapt.

Every page in this section contains one complete script. You can paste it into the script editor as it is, attach it to a chart and see the result straight away. Below the script, the page walks through the parts that matter and suggests how to adapt it.

The examples lean on the data that makes Flowscope different: the trade stream, volume delta, aggregated markets that merge every venue, liquidations, funding, open interest, the recorded order book and footprint volume profiles. Each script exposes its thresholds as inputs, so you can tune it in the settings without editing code.

> [!TIP]
> Most order-flow examples read better on an aggregated market such as BTC across all venues. Delta, CVD and large prints then cover every venue at once, instead of the share of the market that one exchange happens to see.

## Indicators

```cards
[Plots and panes](/docs/scripting/examples/plots-and-panes) Price trend on the chart plus CVD, open-interest change and volume delta in three sub-panes.
[CVD divergence](/docs/scripting/examples/cvd-divergence) Compare confirmed price swings against cumulative delta swings and mark where they disagree.
[OI regimes](/docs/scripting/examples/oi-regimes) Sort every bar into one of four price and open-interest quadrants and colour it accordingly.
[VD absorption](/docs/scripting/examples/vd-absorption) Find bars where an outsized volume delta failed to move price, scaled to current volatility.
[Large prints](/docs/scripting/examples/large-prints) Keep trades above a notional floor, mark them on the chart and sum a per-bar whale delta.
[Intrabar order flow](/docs/scripting/examples/intrabar-order-flow) See where inside each bar the big trades landed and flag trapped buyers and sellers.
[Liquidity profile](/docs/scripting/examples/liquidity-profile) Rolling POC and value area on price, with order-book imbalance by depth in a separate window.
[Liquidation magnets](/docs/scripting/examples/liquidation-magnets) Mark the levels where liquidation cascades fired and keep them until price returns.
[Funding extremes](/docs/scripting/examples/funding-extremes) Turn funding into a z-score with extreme bands and alerts.
[Size-band delta](/docs/scripting/examples/size-band-delta) Split delta into retail, mid-size and whale flow from the trade stream.
```

## Structure

```cards
[Swing levels](/docs/scripting/examples/swing-levels) Turn confirmed pivots into support and resistance rays that stop when price breaks them.
[HTF trend filter](/docs/scripting/examples/htf-trend-filter) Only accept chart-timeframe signals that agree with confirmed 1h and 4h trend.
[Market structure](/docs/scripting/examples/market-structure) Build supply and demand zones on a higher timeframe and react to breakouts on the chart.
[Trading sessions](/docs/scripting/examples/trading-sessions) Shade the Asia, London and New York sessions and box each session's range.
[Trend candles](/docs/scripting/examples/trend-candles) Recolour candles by trend state and mark every flip.
```

## Dashboards

```cards
[Market stats table](/docs/scripting/examples/market-stats-table) A live table of price, volume, open interest, funding and liquidations in its own window.
[MTF dashboard](/docs/scripting/examples/mtf-dashboard) Trend, momentum and alignment across three timeframes in one table.
[Viewport HUD](/docs/scripting/examples/viewport-hud) A compact market card pinned to a corner of the chart while you pan and zoom.
```

## Strategies

```cards
[EMA and ATR strategy](/docs/scripting/examples/ema-atr-strategy) A trend-following strategy with ATR-sized stops, targets and a trailing exit.
[CVD breakout strategy](/docs/scripting/examples/cvd-breakout-strategy) Trade range breakouts only when cumulative delta confirms the move.
```

## Before you adapt an example

- Read [data and update events](/docs/scripting/guides/data-and-events) first. Most examples combine several subscriptions, and the rules for confirmed versus forming values decide whether a signal repaints.
- When an example reads a higher timeframe, [multiple timeframes](/docs/scripting/guides/multiple-timeframes) explains why it uses the last confirmed period.
- Market data can be missing for a bar. The scripts check for `null` before they compute; [missing values](/docs/scripting/guides/missing-values) explains the pattern.
