Data requests / Reference
alerta.request.footprint
TradingView-compatible spelling: request.footprint, runs without warnings
The volume footprint of every bar: its buy and sell volume by price row, Point of Control, value area and diagonal imbalances, read through `footprint.*()` and `volume_row.*()`. AlertaChart builds it from the symbol's own order flow — the taker buy / sell volume AlertaChart records for every minute (Binance spot and perpetuals; Bybit, OKX and Coinbase for BTC, ETH, XRP and SOL), spread over each minute's traded range, and the exact trade prices of the exchange's live trade stream for the bars since the chart opened. Inside `request.security` with another symbol — written out, from an input or a variable — that symbol's order flow. na (with one warning) on symbols without order flow: stocks, forex.
alerta.request.footprint(ticks_per_row, va_percent, imbalance_percent) → footprintParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
ticks_per_row | simple int | Yes | — | Row height in ticks (syminfo.mintick). A bar with more than 5000 rows is na. |
va_percent | simple float | Not specified | 70 | Share of the bar's volume the value area holds. |
imbalance_percent | simple float | Not specified | 300 | How many percent of the diagonal row's opposite volume a row's buy (or sell) volume must reach to be an imbalance: 300 = three times. |
Returns
series footprint — na where the bar has no order flowExample
indicator("Footprint delta")footprint fp = request.footprint(20, 70, 300)float buyVol = na(fp) ? na : fp.buy_volume()float sellVol = na(fp) ? na : fp.sell_volume()plot(buyVol - sellVol, "Footprint delta", style = plot.style_columns)Notes
- Bar totals are exact: buy_volume, sell_volume and delta are the sums of the bar's minutes (for 4h and daily charts, 5-minute buckets).
- Closed bars' rows are rebuilt from minutes, not from single trades: with 1m buckets, measured against Binance trades, the POC is within one row 90 % of the time at ≤ 10 rows a bar, 72 % at 10–20 rows and 45 % at 20–40 rows. Wider rows (a larger ticks_per_row) are closer to the exact footprint.
- History reaches back at most about 21 days on charts up to 1h and 100 days on 4h and daily charts — less where the record is shorter (Bybit, OKX and Coinbase: about 50 days).
- Tick and range charts and seconds timeframes have no footprint.
- Minutes the live trade stream missed — a dropped connection or skipped trades — are filled from the recorded minutes once they are fetched again after the gap; until then the bar is na. A minute missing from the record as well leaves its bar na.
- In a request of another timeframe the stream's levels count only as whole bars inside a longer bar. A lower-timeframe request (`request.security_lower_tf`) of the chart's own symbol reads the live stream's minute bars, which the chart keeps while such a script runs, and the recorded minutes before them.
Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.