OPEN-SOURCE SCRIPT

Custom Footprint [Auto-Scale & Filter]

2 114
This indicator provides a functional approximation of a Footprint Chart within TradingView by extracting lower timeframe (LTF) data and visualizing the bid/ask volume distribution directly inside the current candles.

While TradingView's Pine Script has a hard limit on the number of labels (maximum 500) that prevents a full historical footprint mapping, this script bypasses structural limitations using smart auto-scaling and historical offsetting.

Key Features:

Auto-Scaling by Asset: Uses ATR to automatically calculate the optimal price bin step. Whether you are viewing Crypto, Forex, or Indices, the script adjusts itself to maintain readable density without cluttering the screen.

Volume Filtering: Includes a minimum volume filter. Price levels with total volume below your specified threshold will not be rendered, allowing you to focus on high-liquidity nodes and true absorption.

Customizable Visuals: You can customize the buy/sell delta text colors, toggle the label backgrounds on or off, and adjust background opacity so the numbers remain clearly visible over the candles.

History Offset: Due to the 500-label limit, the script limits visibility to the most recent candles. To view the footprint of older price action, simply increase the "Bar Offset" in the settings to shift the focus window backward.

How to Use:

Apply it to your chart and set the "Lower Timeframe" in the settings. (If you are on a Premium plan, using "1S" or "5S" will provide highly granular tick-level approximations. Otherwise, "1" minute is recommended).

Adjust the "Min Volume Filter" based on the asset's average volume to clean up noise.

Toggle "Show Background" depending on your chart theme for better visibility.

Limitations:

This is not a native order flow footprint chart. It estimates bid/ask by evaluating if the LTF close was higher or lower than its open.

Cannot display footprint data for the entire chart history at once due to Pine Script’s rendering limits. Use the "Offset" feature to inspect past structure.

I built this tool to provide a practical workaround for order flow traders relying on Pine Script. Feel free to adjust the settings to fit your preferred assets and trading style.

Feel free to modify the code however you like.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。