OPEN-SOURCE SCRIPT
CVD Footprint Exporter

Proposed public title: Footprint CSV Exporter for CVD Research
Saved Pine script: CVD Footprint Exporter
Suggested publication settings: Public, Open-source
Status: Draft only. Not published.
DESCRIPTION
This utility exposes TradingView footprint data as Data Window plots that can be included in the native Download chart data CSV export. It is intended for people building candle-by-candle datasets for volume delta and cumulative volume delta research.
The script follows the current chart symbol and timeframe. It exports candle buy volume, sell volume, delta, total footprint volume, Point of Control price bounds and buy/sell volume, value-area boundaries, footprint row count, row size, trading-day timestamp, and chart volume. It also exports detailed price rows in batches of 12.
HOW TO EXPORT
1. Add the indicator to your chart and choose the symbol and timeframe you want to study.
2. Set Ticks per row. Price-row size equals this setting multiplied by the symbol's minimum tick. The default is 30 ticks; on GC with a 0.1 tick, that is 3.0 price points. This is a fixed setting, not automatic ATR sizing.
3. Load the historical candles you need by navigating backward on the chart.
4. Leave First row index at 0 and use the chart layout menu's Download chart data option. UNIX timestamps make it straightforward to join multiple exports.
5. Check FP_row_count. If any candle has more than 12 rows, set First row index to 12 and export again, then 24, 36, and so on until all rows are covered. Keep the symbol, timeframe, history, and row-size settings unchanged between batches.
6. Join batches by candle timestamp. A batch's FP_r0 fields refer to the row at FP_row_offset, and FP_r11 refers to offset plus 11. Rows run from lowest to highest price. Each row's upper boundary is its exported lower boundary plus FP_row_size.
READING THE FIELDS
FP_available is 1 when TradingView returns a footprint, otherwise 0. Unavailable volumes are blank, not zero.
FP_delta is buy volume minus sell volume.
FP_POC_low and FP_POC_high describe a price range rather than a single exact price.
FP_VAH and FP_VAL describe the value-area boundaries. The script uses 70% value area and a 300% imbalance threshold.
The row imbalance code is 0 for neither, 1 for buy imbalance, 2 for sell imbalance, and 3 for both.
FP_chart_volume is included separately so source differences can be detected rather than concealed.
CUMULATIVE DELTA AND RESEARCH EXAMPLES
This version exports raw per-candle delta. It does not plot CVD or calculate a cumulative series inside Pine. To calculate CVD after export, sort by timestamp and take a running sum of FP_delta. Record the starting timestamp and reset rule, such as the first available footprint or each trading day. Missing footprint history must not be treated as zero delta.
Other calculations include red candles with positive delta, green candles with negative delta, imbalance counts, and the POC's position relative to the candle body.
LIMITATIONS
The script prepares exportable fields; it does not automatically download files or load unlimited history. TradingView account features and data availability determine access to footprint requests and CSV export. Footprint data may cover less history than ordinary OHLCV.
The price footprints visible on the chart are TradingView's native chart type, not graphics drawn by this indicator. The indicator's outputs appear in the Data Window and CSV.
Buy/sell values use TradingView's footprint classifications and are not an independent verification of exchange bid/ask trades. Live candles can change before closing.
A price row may overlap a candle's body and wick. The script does not split that row's volume into exact wick-only quantities.
This is a data collection utility with no entries, exits, alerts, or backtest results.
AUTHOR PREPARATION NOTE (not part of the public description)
Use a clean publication chart containing the exporter and only the visuals needed to demonstrate it. Exclude unrelated strategies, private indicators, trading/account information, and drawings. Explain that the native footprint chart provides the displayed footprint graphics. Verify the final screenshot and available public/open-source settings before submission.
Saved Pine script: CVD Footprint Exporter
Suggested publication settings: Public, Open-source
Status: Draft only. Not published.
DESCRIPTION
This utility exposes TradingView footprint data as Data Window plots that can be included in the native Download chart data CSV export. It is intended for people building candle-by-candle datasets for volume delta and cumulative volume delta research.
The script follows the current chart symbol and timeframe. It exports candle buy volume, sell volume, delta, total footprint volume, Point of Control price bounds and buy/sell volume, value-area boundaries, footprint row count, row size, trading-day timestamp, and chart volume. It also exports detailed price rows in batches of 12.
HOW TO EXPORT
1. Add the indicator to your chart and choose the symbol and timeframe you want to study.
2. Set Ticks per row. Price-row size equals this setting multiplied by the symbol's minimum tick. The default is 30 ticks; on GC with a 0.1 tick, that is 3.0 price points. This is a fixed setting, not automatic ATR sizing.
3. Load the historical candles you need by navigating backward on the chart.
4. Leave First row index at 0 and use the chart layout menu's Download chart data option. UNIX timestamps make it straightforward to join multiple exports.
5. Check FP_row_count. If any candle has more than 12 rows, set First row index to 12 and export again, then 24, 36, and so on until all rows are covered. Keep the symbol, timeframe, history, and row-size settings unchanged between batches.
6. Join batches by candle timestamp. A batch's FP_r0 fields refer to the row at FP_row_offset, and FP_r11 refers to offset plus 11. Rows run from lowest to highest price. Each row's upper boundary is its exported lower boundary plus FP_row_size.
READING THE FIELDS
FP_available is 1 when TradingView returns a footprint, otherwise 0. Unavailable volumes are blank, not zero.
FP_delta is buy volume minus sell volume.
FP_POC_low and FP_POC_high describe a price range rather than a single exact price.
FP_VAH and FP_VAL describe the value-area boundaries. The script uses 70% value area and a 300% imbalance threshold.
The row imbalance code is 0 for neither, 1 for buy imbalance, 2 for sell imbalance, and 3 for both.
FP_chart_volume is included separately so source differences can be detected rather than concealed.
CUMULATIVE DELTA AND RESEARCH EXAMPLES
This version exports raw per-candle delta. It does not plot CVD or calculate a cumulative series inside Pine. To calculate CVD after export, sort by timestamp and take a running sum of FP_delta. Record the starting timestamp and reset rule, such as the first available footprint or each trading day. Missing footprint history must not be treated as zero delta.
Other calculations include red candles with positive delta, green candles with negative delta, imbalance counts, and the POC's position relative to the candle body.
LIMITATIONS
The script prepares exportable fields; it does not automatically download files or load unlimited history. TradingView account features and data availability determine access to footprint requests and CSV export. Footprint data may cover less history than ordinary OHLCV.
The price footprints visible on the chart are TradingView's native chart type, not graphics drawn by this indicator. The indicator's outputs appear in the Data Window and CSV.
Buy/sell values use TradingView's footprint classifications and are not an independent verification of exchange bid/ask trades. Live candles can change before closing.
A price row may overlap a candle's body and wick. The script does not split that row's volume into exact wick-only quantities.
This is a data collection utility with no entries, exits, alerts, or backtest results.
AUTHOR PREPARATION NOTE (not part of the public description)
Use a clean publication chart containing the exporter and only the visuals needed to demonstrate it. Exclude unrelated strategies, private indicators, trading/account information, and drawings. Explain that the native footprint chart provides the displayed footprint graphics. Verify the final screenshot and available public/open-source settings before submission.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.