> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Complete scripts with their output on a real chart, each a click away from the terminal.

Each one opens on a chart with one click; from there, change its settings or copy it into the script editor and make it yours.

## On 0xArchive's data

Each trade's change in open interest, liquidated wallets, liquidation levels, the tape, the book and breadth.

<CardGroup cols={2}>
  <Card title="Opening and closing flow" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/opening-closing-flow.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=558b9dbaaafb6b8b625f330826fee591" href="/terminal/examples/opening-closing-flow" width="2076" height="1328" data-path="images/terminal/examples/opening-closing-flow.webp">
    Split taker flow into trades that opened positions and trades that closed them, from each trade's own change in open interest.
  </Card>

  <Card title="Squeeze or new positions" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/squeeze-or-new-positions.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=41c071515718125207373af07010885a" href="/terminal/examples/squeeze-or-new-positions" width="2076" height="1328" data-path="images/terminal/examples/squeeze-or-new-positions.webp">
    Label every big candle by whether it was driven by positions closing (a squeeze or a flush) or by new positions opening.
  </Card>

  <Card title="Most-liquidated wallets" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/liquidated-wallets.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=2f444bc7d5a26281a841d35f45e32a6d" href="/terminal/examples/liquidated-wallets" width="2076" height="1328" data-path="images/terminal/examples/liquidated-wallets.webp">
    Rank the wallets liquidated for the most this week, and mark the biggest one on each bar with its address.
  </Card>

  <Card title="Liquidation levels ahead" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/liquidation-levels-ahead.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=e94a5d83673c99ae89289646a7531282" href="/terminal/examples/liquidation-levels-ahead" width="2076" height="1328" data-path="images/terminal/examples/liquidation-levels-ahead.webp">
    Draw the biggest liquidation clusters above and below the price, and the balance of shorts above against longs below on every bar.
  </Card>

  <Card title="Large taker orders" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/large-takers.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=b4752b92a36ac571d4503559dc57ae53" href="/terminal/examples/large-takers" width="2076" height="1328" data-path="images/terminal/examples/large-takers.webp">
    Mark every bar where a single taker order filled for more than a size, joined from its fills.
  </Card>

  <Card title="Liquidations" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/liquidations.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=f301d091d0d145c2aadbb38d68c82f5e" href="/terminal/examples/liquidations" width="2076" height="1328" data-path="images/terminal/examples/liquidations.webp">
    Liquidated USD per bar, longs below zero and shorts above, optionally for chosen wallets only.
  </Card>

  <Card title="Liquidation clusters" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/liquidation-clusters.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=c73c16f6fe94f38bd9f42f3134776643" href="/terminal/examples/liquidation-clusters" width="2076" height="1328" data-path="images/terminal/examples/liquidation-clusters.webp">
    The single biggest long and short liquidation level within 10% of the price, as of each bar.
  </Card>

  <Card title="Tape CVD" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/cvd.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=a6fa33a6570e826f6e6ff8de230fec9c" href="/terminal/examples/cvd" width="2076" height="1328" data-path="images/terminal/examples/cvd.webp">
    Cumulative volume delta from the tape, in USD, with each bar's delta as a histogram.
  </Card>

  <Card title="Funding and open interest" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/funding-oi.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=7c49f499fc46e7153f33c32b862afafd" href="/terminal/examples/funding-oi" width="2076" height="1328" data-path="images/terminal/examples/funding-oi.webp">
    Funding annualised from the hourly rate, and open interest in USD, from 5-minute samples.
  </Card>

  <Card title="Breadth above VWAP" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/breadth-above-vwap.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=8e51dd70912f1e5b08601fa55fb3b5d9" href="/terminal/examples/breadth-above-vwap" width="2076" height="1328" data-path="images/terminal/examples/breadth-above-vwap.webp">
    The share of Hyperliquid's perps trading above their session VWAP, as of each bar.
  </Card>

  <Card title="Bid share within a band" href="/terminal/examples/book-imbalance">
    The share of resting size on the bid within a band around the mid, from the live book.
  </Card>
</CardGroup>

## Indicators and outputs

Moving averages, other timeframes and markets, bar colours, tables and offsets.

<CardGroup cols={2}>
  <Card title="EMA" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/ema.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=106ad7f79e2256142a68451d90cf7f3d" href="/terminal/examples/ema" width="2076" height="1328" data-path="images/terminal/examples/ema.webp">
    An exponential moving average, seeded the way TradingView seeds it.
  </Card>

  <Card title="4h EMA" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/higher-timeframe.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=9888555438e343d076a241f4edfb405a" href="/terminal/examples/higher-timeframe" width="2076" height="1328" data-path="images/terminal/examples/higher-timeframe.webp">
    An EMA of 4-hour bars on any chart, with no lookahead.
  </Card>

  <Card title="Anchored VWAP bands" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/anchored-vwap.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=eede3b718101435e180fea7064ad3308" href="/terminal/examples/anchored-vwap" width="2076" height="1328" data-path="images/terminal/examples/anchored-vwap.webp">
    VWAP and deviation bands from a moment picked on the chart.
  </Card>

  <Card title="Open bands" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/open-bands.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=31e419d66dcedabcfc20eb1a75cf5f81" href="/terminal/examples/open-bands" width="2076" height="1328" data-path="images/terminal/examples/open-bands.webp">
    Bands a set percentage above and below the day's open, kept out of the price scale.
  </Card>

  <Card title="Relative strength" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/relative-strength.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=3a2581ae5437015814120d498959e15d" href="/terminal/examples/relative-strength" width="2076" height="1328" data-path="images/terminal/examples/relative-strength.webp">
    The chart's market against another, both rebased to 100.
  </Card>

  <Card title="Trend bars" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/trend-bars.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=8f851d9c4c19206718ffb0981923bdd4" href="/terminal/examples/trend-bars" width="2076" height="1328" data-path="images/terminal/examples/trend-bars.webp">
    Candles coloured by trend, with a label where the close flips across the EMA.
  </Card>

  <Card title="Session table" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/session-table.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=a340a908ada9aa99a0901d12493233f0" href="/terminal/examples/session-table" width="2076" height="1328" data-path="images/terminal/examples/session-table.webp">
    The last price, change, high and low since 00:00 UTC, in a table in a corner of the chart.
  </Card>

  <Card title="Ichimoku" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/ichimoku.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=295a3031e0ebc664e25ea417e3242370" href="/terminal/examples/ichimoku" width="2076" height="1328" data-path="images/terminal/examples/ichimoku.webp">
    Ichimoku Kinko Hyo, with the leading spans and cloud drawn ahead of the newest bar.
  </Card>

  <Card title="RSI cross" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/rsi-cross.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=8af3ea88c924474312414f5a3054bef3" href="/terminal/examples/rsi-cross" width="2076" height="1328" data-path="images/terminal/examples/rsi-cross.webp">
    An RSI with a mark where it crosses up through 30, written the way the Pine translation writes it.
  </Card>
</CardGroup>

## Pasted Pine

Pine Script from TradingView, translated when it loads.

<CardGroup cols={2}>
  <Card title="RSI cross, pasted Pine" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/rsi-pine.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=767a2d4ace90acee15a8c945713d1fc8" href="/terminal/examples/rsi-pine" width="2076" height="1328" data-path="images/terminal/examples/rsi-pine.webp">
    The RSI cross as Pine Script, translated when it loads.
  </Card>

  <Card title="Ichimoku, pasted Pine" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/ichimoku-pine.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=8d5d165d5edd8d407f2c7636a9d2f7d9" href="/terminal/examples/ichimoku-pine" width="2076" height="1328" data-path="images/terminal/examples/ichimoku-pine.webp">
    Ichimoku as Pine Script v6, in TradingView's colours.
  </Card>

  <Card title="4h EMA and daily close, pasted Pine" img="https://mintcdn.com/0xarchive-e895b8e7/_p6Z1TtSEb5DBnPX/images/terminal/examples/htf-pine.webp?fit=max&auto=format&n=_p6Z1TtSEb5DBnPX&q=85&s=37eca0353f0d8eeeb304a3de3ebca8c8" href="/terminal/examples/htf-pine" width="2076" height="1328" data-path="images/terminal/examples/htf-pine.webp">
    request.security on other timeframes, from pasted Pine.
  </Card>
</CardGroup>

## Next step

Start with [Opening and closing flow](/terminal/examples/opening-closing-flow).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.