OPEN-SOURCE SCRIPT

QFT MTF Range Detector

131
QFT MTF Range Detector — QuantumFlowTrader

Description:
The QFT MTF Range Detector is a multi-timeframe (MTF) tool designed to identify consolidation zones or ranging conditions across multiple intraday timeframes — from 1 minute up to 4 hours. This indicator is optimized for high-frequency trading environments such as scalping and day trading.

How it works:
For each selected timeframe, the indicator evaluates five key technical conditions:

- Low ADX (less than 17) – suggesting weak trend strength.
- Range width within a specific normalized threshold.
- Normalized ATR (volatility filter) in a defined range.
- RSI near the neutral zone (40–60) with low volatility.
- Price proximity to the mid-range (consolidation center).

Each condition contributes a score. If at least 3 out of 5 conditions are met, that timeframe is considered to be in a range (consolidation).

Visual output:
A compact table is displayed on the chart showing all selected timeframes:
Black box = Timeframe is in a range (consolidation).
Purple box = Not in a range (likely trending or volatile).
Timeframes are labeled (e.g., "4H", "15M") for clarity.

Customization:
Choose display corner (top/bottom, left/right).
Enable or disable table borders.
Set custom colors for range and non-range signals.

Use case:
Traders can quickly assess which timeframes are in a range, helping them:

Avoid choppy markets,
Time entries and exits better,
Confirm multi-timeframe alignment.

Note: This is not a buy/sell signal indicator. It is a market condition filter to enhance decision-making.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.