INVITE-ONLY SCRIPT

Trend MTF [SolQuant]

16
The Trend MTF [SolQuant] indicator provides multi-timeframe trend detection using Smoothed Moving Average (SMMA) analysis. It displays trend direction across five timeframes simultaneously — Current, 5-minute, 15-minute, 1-hour, and 4-hour — with gradient fills that make trend alignment immediately visible.

The core idea is that when multiple timeframes agree on direction, the probability of a sustained move increases. Rather than switching between charts, this indicator layers trend information from all relevant timeframes onto a single view, with each timeframe's trend band expanding from price when active.


USAGE

Reading Multi-Timeframe Trends
Each enabled timeframe displays a smoothed moving average line. When the SMMA close is above the SMMA open for a given timeframe, that timeframe is bullish (colored in the bull color). When below, it is bearish. Gradient fills extend from the trend line toward price, creating a visual "cloud" that grows as the trend strengthens.

Traders can quickly assess trend alignment: when all enabled timeframes show the same color, the market is in strong directional agreement. Mixed colors indicate conflicting trends across timeframes, suggesting caution or range-bound conditions.

Pressure Zone Detection
The indicator includes Keltner Channel-based pressure detection. When price closes beyond the 2.618x ATR Keltner bands, candles are colored in a distinct "pressure" color (default: orange). This highlights overextended conditions where price has moved significantly beyond its normal volatility range, which often precedes reversals or consolidation.

Market Maker Candle Detection
Candles with extreme volume — defined as 500% or more of the recent average volume — are flagged as potential "market maker" activity. These candles receive a distinct color (default: yellow) and triangle markers above or below the bar. Extreme volume events often coincide with institutional positioning and can signal important turning points.

Candle Coloring Modes
Three candle coloring modes can be layered by priority:
1 — Market Maker candles (highest priority) — extreme volume events
2 — Pressure candles — overextended Keltner zone
3 — Trend candles — colored by current timeframe trend direction
4 — Default — neutral color when no conditions are met


DETAILS

SMMA Calculation
The Smoothed Moving Average (SMMA) is a recursive moving average that gives more weight to recent data while maintaining a longer memory than a standard SMA. For each timeframe, both SMMA(close) and SMMA(open) are calculated and then fetched from the corresponding higher timeframe using request.security(). The trend direction is determined by comparing these two values.

Resolution Multiplier
The timeframe resolution is calculated dynamically. A Resolution Multiplier (default: 6) scales the current chart timeframe to create the SMMA calculation timeframe. For example, on a 1-minute chart with a 6x multiplier, the Current TF SMMA uses a 6-minute resolution. The fixed timeframes (5m, 15m, 1H, 4H) are similarly scaled.

Gradient Fill Logic
For each timeframe, a price anchor switches between the EMA of the low (bullish) or EMA of the high (bearish). A gradient fill extends from the SMMA line toward this anchor, creating a visual representation of trend strength. The fill is only shown when the trend line is beyond the current price range, preventing visual clutter during weak trends.


SETTINGS

Candles
Enable Candle Coloring: Master toggle for all candle coloring.
Show Pressure Candles: Highlight candles in the Keltner pressure zone.
Show Market Maker Candles: Flag extreme volume (500%+) events.
Color Trend Candles: Color candles by trend direction instead of default.
MM Volume Lookback: Period for calculating average volume for market maker detection.

SMMA
Resolution Multiplier: Scales the timeframe for SMMA calculations. Higher values produce smoother, slower trends.
SMMA MA Period: The smoothing period for the SMMA. Higher values reduce noise.

Timeframes
Show Current TF / 5m / 15m / 1H / 4H: Toggle individual timeframe displays.
MTF Fill Transparency: Controls the opacity of higher-timeframe fills.


This indicator is a trend-detection tool and does not constitute financial advice. Multi-timeframe alignment does not guarantee future price direction. Past performance does not guarantee future results.

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.