Added support for 1-second, 5-second, 15-second, and 30-second chart intervals.
The Trend Trading Indicator identifies market trends and sideways price action across 5 configurable timeframes on TradingView. It colors candles by master trend, fires entry and confluence signals when timeframes align, and shows multi-timeframe trend strength in a bottom panel so you can scan for the strongest setups.
The indicator can be customized to fit your trading style by adjusting the timeframes for the master trend, which timeframes affect signals, turning on or off the various entry and confluence signals, turning on or off ranging market filters, and more. It can be adjusted to react quickly for intraday trading or use long timeframes for swing trading or only trading when the market is in a strong long-term trend.
WHAT IT DOES
The master trend is the foundation of the indicator. All other signals require it to be active before they can fire. The master trend colors candles blue when the trend is bullish, orange when bearish, and gray when the market is not trending. This helps keep you out of trades during sideways markets.
The master trend is calculated using 5 configurable timeframes, ranging market filters, and an optional filter to only allow signals in the direction of timeframes 4 & 5. You must turn off your chart’s built-in candle coloring so it doesn’t override the indicator’s candle coloring.
A panel at the bottom of the chart shows the trend strength score for each of the 5 configured timeframes. Scores are color-coded: green for bullish, red for bearish, gray when ranging. A label shows the current score out of the maximum for each timeframe. When all timeframes are trending strongly, the background paints red or green to notify you of strong trend conditions.
Use the panel to quickly scan charts and identify markets with the strongest trends across multiple time horizons.
The indicator detects when the market is ranging or moving sideways on each timeframe. Three independent ranging market filters prevent signals from firing during detected ranging conditions on the timeframes you select. The more filters you enable, the higher the probability that signals are correct, but fewer signals will appear.
The indicator outputs a trend direction value that can be used as a filter by other indicators on the same chart. Set an input.source() on your external indicator to receive the value from “Trend Direction To Send To External Indicators.” Values: 0 = no trend, 1 = bullish, -1 = bearish. This prevents other indicators from generating signals that go against the trend.
ENTRY & CONFLUENCE
The first signals to appear once the master trend establishes a direction. These indicate that the configured timeframes agree on a trend and it is safe to look for entries.
When the master trend detects a trending market and the trend is strong on all 5 timeframes, crosses appear on the chart as entry points. There are 3 levels: small, medium, and large crosses. The larger the cross, the stronger the trend and the more likely it is to continue.
Use these as entry points and place your stop loss at the most recent major pivot. Trail your stop loss with the trade to lock in profits.
When there is a strong trend on timeframes 3–5 and a pullback on timeframes 1 & 2 that then moves back in the direction of the higher timeframe trend, this signal fires. These appear as label/price tag shapes and represent strong entries with tighter stops, since the market already pulled back before continuing.
When the trend is strong on all timeframes that are set to use for master trend signals, circles/dots appear above or below the candles. A second calculation method also paints a background color as extra confluence. When both the dots and background color appear simultaneously, both formulas confirm a strong trend.
Use these as confirmation to hold your position longer and stay in the trade for more gains.
Each timeframe has a calculated trend strength score displayed as an oscillator in the bottom panel. When long-term trends agree but short-term trends go against them, look for the short-term trends to reverse and use those areas as entry positions for trades in the direction of the overall trend.
STAY NOTIFIED
The indicator has alerts for bullish and bearish versions of each signal type. Available alerts:
Use these alerts to get notified of strong trends on markets you may not have charts up for at all times.
CONFIGURATION
| Setting | Options | Description |
|---|---|---|
| Market Hours | Stocks / Futures & Forex / Crypto | Select the market hours for correct calculations. Stocks: 6.5 hrs/day, 5 days/week. Futures/Forex: 23 hrs/day, 5 days/week. Crypto: 24 hrs/day, 7 days/week |
Set timeframe 1 to a timeframe higher than your chart. Set timeframes 2–5 to progressively higher timeframes. Keep all 5 timeframes in ascending order even if some are turned off. The indicator compares each timeframe to the next.
| Setting | Default | Description |
|---|---|---|
| Timeframe #1–#5 | Varies | 5 configurable timeframes in ascending order. Options include 5m, 10m, 15m, 30m, 1H, 2H, 4H, 6H, 8H, 12H, 1D, 1W, 1M, 3M, 6M, 1Y |
| Use Timeframe #1–#5 For Master Trend | Varies | Toggle each timeframe on/off for master trend calculation. Keep at least timeframes 1 & 2 on. More timeframes = fewer but higher quality signals |
| Signals Only In Direction Of TF 4 & 5 | Off | When enabled, prevents signals that go against the long-term trend direction of timeframes 4 and 5. Increases win probability by filtering out counter-trend noise |
| Ranging Market Filters #1–#3 | Off | 3 independent filters that prevent signals when the selected timeframes are detected as ranging. More filters = higher probability signals but fewer signals overall |
Each signal type can be independently enabled or disabled:
MARKETS & TIMEFRAMES
The indicator works on: 1s, 5s, 15s, 30s, 1m, 2m, 3m, 5m, 10m, 15m, 30m, 1H, 2H, 4H, 6H, 8H, 12H, and 1D charts.
If your chart is set to a different timeframe, the indicator will not calculate properly.
The indicator works on stocks, crypto, forex, futures, and any other market. Just select the correct market hours mode in settings to match your instrument’s trading schedule.
IMPORTANT
GET ACCESS
Access the full Premium Indicator Suite on your TradingView charts. All 10 indicators, chart templates, and priority support.
COMMON QUESTIONS
CHANGELOG
Added support for 1-second, 5-second, 15-second, and 30-second chart intervals.
Optimized request.security() calls to work within the limits of all TradingView subscription tiers, not just Ultimate.
Optimized request.security() calls to resolve runtime errors, added new timeframe options, and updated a default setting.
Added individual alerts for each of the 3 Strong Buy and Sell signals plus combined alerts for when any strong signal fires.
Fixed a label on/off button bug and smoothed out trend calculations for improved accuracy.
EXPLORE THE SUITE
Premium Suite
Generates directional trade signals based on price action and momentum. Use the Trend Trading Indicator’s master trend as a filter to only take Buy Sell signals in the direction of the overall trend.
Premium Suite
Detects high-probability volume patterns and plots support and resistance levels. Combine with the Trend Trading Indicator to enter at volume-confirmed levels that align with the master trend direction.
Premium Suite
Generates swing trade and scalp entry signals with configurable sensitivity. Use the Trend Trading Indicator’s master trend as a directional filter to only take signals that align with the established multi-timeframe trend.