Trades Filter
Trades Filter scans cluster (footprint) data to find price levels where the number of individual trade executions exceeds a configurable threshold. These high-activity levels represent zones where significant market participation occurred, and they frequently act as future support or resistance. When a qualifying level is found, a horizontal line extends from that price into the future until price crosses through it — at which point the level is invalidated.How It Works
The indicator processes each candle’s cluster data and examines every price level within it:- Count trades at each price level within the candle.
- Apply the minimum filter: if the trade count at a level meets or exceeds
minTradesFilter, the level is a candidate. - Apply optional imbalance filter: if
useVolumeImbalanceis enabled, only levels where buy/sell volume imbalance exceedsimbalancePercentqualify. - Rank and select: from all qualifying levels, keep the top
priceLevelsCountlevels (sorted by trade count, highest first). - Draw lines: horizontal lines extend rightward from each qualifying level. Lines persist until price trades through the level, which invalidates and removes them.
Indicator Type
Overlay — horizontal lines drawn directly on the price chart.Settings
Core Parameters
Volume Imbalance Filter
When enabled, only levels where the buy/sell volume imbalance exceeds the specified percentage qualify. This transforms Trades Filter from a neutral high-activity detector into a directional tool:
- A level with 70% buy volume and 30% sell volume has a 40% imbalance toward buys.
- With
imbalancePercentset to 50, only levels with 75%+ on one side would qualify.
Line Appearance
Glow Effect
The glow effect makes high-activity levels visually prominent against the price chart. Enabled by default to distinguish Trades Filter lines from other horizontal overlays.
Configuring the Threshold
TheminTradesFilter value is the most important setting and varies significantly by symbol and timeframe:
Level Lifecycle
Each detected level goes through a predictable lifecycle:- Formation: a candle with trade activity exceeding the threshold creates a new level. The line begins at the right edge of that candle.
- Active: the line extends into the future as price trades around it. Price may approach and bounce from the level multiple times.
- Invalidation: when price closes through the level (not just a wick touch — a full candle body cross), the line is removed.
Practical Usage
Finding Hidden Support/Resistance
Traditional support and resistance relies on price pivots. Trades Filter reveals levels that are invisible on a standard candlestick chart — zones where thousands of trades occurred within a single price tick, indicating a concentration of resting orders or algorithmic execution.Confluence with Other Levels
Trades Filter levels become most powerful when they align with other indicators:- A Trades Filter level at the same price as a Volume Profile POC (Point of Control) is very strong.
- Alignment with VWAP or session high/low adds further significance.
- When a Cloud marker appears at a Trades Filter level, the probability of a reaction increases.
Directional Bias with Imbalance
EnableuseVolumeImbalance to see whether high-activity levels were dominated by buyers or sellers:
- Buy-dominant levels (green) below the current price = strong support candidates. Buyers were the aggressors at that level.
- Sell-dominant levels (red) above the current price = strong resistance candidates. Sellers were the aggressors.
- Neutral levels (yellow) = high activity without clear directional bias. These may act as magnets that attract price but do not have a directional lean.
Invalidation as a Signal
When a level is invalidated (price breaks through), it can itself be a trading signal:- A buy-dominant support level that gets broken suggests the buyers at that level have been overwhelmed — potential for acceleration to the downside.
- A sell-dominant resistance level that gets broken suggests sellers have capitulated — potential for a squeeze higher.
Combining with Other Indicators
Performance Notes
Trades Filter scans all cluster data within thelookbackDays range on each chart update. For large lookback windows (30+ days on 1m timeframe), the initial calculation may take a moment. Once computed, incremental updates for new candles are fast.
Setting priceLevelsCount to a reasonable value (3–5) keeps both the visual output clean and the computation efficient.