Premium Indicator

Trend Trading Indicator for TradingView

Trend Trading Indicator on a TradingView chart showing master trend candle coloring, entry signals, and multi-timeframe trend strength panel

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.

Built by Lane Dotson · Last updated · View on TradingView →
Part of the Premium Indicator Suite - 10 indicators for $39.99/mo. View suite → Pricing →

WHAT IT DOES

Core Features

Master Trend Detection

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.

Multi-Timeframe Trend Strength Panel

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.

Ranging Market Filters

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.

External Indicator Output

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

Signal Types

Master Trend Signals

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.

Strong Trend Buy & Sell Signals

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.

Pullback During Strong Trend Signals

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.

Strong All Timeframe Trend Signals

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.

Trend Strength Score Signals

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

Alerts

The indicator has alerts for bullish and bearish versions of each signal type. Available alerts:

  • Master Trend Bullish / Bearish
  • Strong Buy Signal 1 / Strong Sell Signal 1
  • Strong Buy Signal 2 / Strong Sell Signal 2
  • Strong Buy Signal 3 / Strong Sell Signal 3
  • Any Of The 3 Strong Buy Signals Fired / Any Of The 3 Strong Sell Signals Fired
  • Pullback During Strong Trend Bullish / Bearish
  • Strong All Timeframe Trend Bullish / Bearish
  • Trend Strength Score Bullish / Bearish

Use these alerts to get notified of strong trends on markets you may not have charts up for at all times.

CONFIGURATION

Settings Overview

Market Hours

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

Master Trend Timeframes

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

Signal Toggles

Each signal type can be independently enabled or disabled:

  • Master Trend Signals
  • Strong Trend Buy & Sell Signals
  • Pullback During Strong Trend Signals
  • Strong All Timeframe Trend Signals
  • Trend Strength Score Visuals

MARKETS & TIMEFRAMES

Compatibility

Supported Chart 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.

Supported Markets

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

Important Notes & Limitations

You must turn off your chart's built-in candle coloring so the indicator's master trend coloring (blue/orange/gray) is visible. If the chart overrides candle colors, you won't see the trend.
Select the correct market hours in the dropdown at the top of settings. Incorrect market hours will produce inaccurate calculations.
Keep trend timeframes in ascending order (1–5) even if some are turned off. The indicator compares each timeframe to the next, so out-of-order timeframes will produce incorrect calculations.
Extended periods with no signals are normal when the market is going sideways, that's intentional. This is by design, the indicator filters out ranging conditions to keep you out of low-probability trades.
Use only supported chart timeframes. Other timeframes may produce errors or irregular results.

GET ACCESS

Get the Trend Trading Indicator
Plus 9 More Premium Indicators

Access the full Premium Indicator Suite on your TradingView charts. All 10 indicators, chart templates, and priority support.

$39.99/month · Cancel anytime · Try it: $24.99 for 2 weeks
10 Premium Indicators
Chart Templates
All Future Updates
Priority Support

COMMON QUESTIONS

Frequently Asked Questions

Set timeframe 1 to a timeframe higher than your chart. For example, if you trade the 1-minute or 5-minute chart, set timeframe 1 to 15m, 60m, or 240m. Then set timeframes 2–5 to progressively higher timeframes in ascending order. Keep all 5 timeframes in order even if some are turned off. For intraday scalping, use lower timeframes and turn off higher ones. For swing trading, use higher timeframes across all 5 slots.
This is likely because the market is ranging or going sideways. The indicator is designed to filter out sideways conditions and only generate signals during confirmed trends. Check the trend strength panel at the bottom to see if timeframes are showing gray (ranging). You can also reduce the number of filters or timeframes required for the master trend to allow more signals to come through, but you'll get lower-quality signals in exchange.
The 3 Strong Buy and Sell signals are triggered by different combinations of timeframe alignments and parameters. They appear as small, medium, and large crosses on the chart. The larger the cross, the stronger the trend across more timeframes and the higher the probability of continuation. Each signal also has its own individual alert, plus there is a combined alert that fires when any of the 3 signals trigger.
Yes. The indicator works on any market. You just need to select the correct market hours mode in settings. Choose Stocks for 6.5-hour markets, Futures/Forex for 23-hour markets, or Crypto for 24/7 markets. The indicator uses this setting to calculate timeframes correctly, so selecting the wrong hours will produce inaccurate results.
Yes. The indicator outputs a trend direction value (1 for bullish, -1 for bearish, 0 for no trend) that other indicators on the same chart can use as a source input. Set an input.source() on your external indicator to the "Trend Direction To Send To External Indicators" output. This lets you prevent buy signals during downtrends, sell signals during uptrends, or any signals when the market is ranging.

CHANGELOG

Release Notes

Sub-Second Chart Interval Support

Added support for 1-second, 5-second, 15-second, and 30-second chart intervals.

What Changed
Added 1s, 5s, 15s, and 30s chart interval support
Subscription Tier Compatibility Fix

Optimized request.security() calls to work within the limits of all TradingView subscription tiers, not just Ultimate.

What Changed
Dramatically reduced request.security() calls so all TradingView plans can use the indicator without runtime errors
Performance Optimization & New Timeframes

Optimized request.security() calls to resolve runtime errors, added new timeframe options, and updated a default setting.

What Changed
Optimized code to reduce request.security() calls while maintaining identical calculations
Default for "Signals Only Allowed In Direction Of Timeframes 4 & 5" changed to Off to reduce confusion when first loading the indicator
Added 5-minute and 10-minute trend timeframe options for scalping low timeframes, and 6-month timeframe for using 5 higher timeframes on daily charts
8 New Strong Signal Alerts

Added individual alerts for each of the 3 Strong Buy and Sell signals plus combined alerts for when any strong signal fires.

What Changed
Strong Buy Signal 1, 2, 3. Individual alerts for each strong buy signal
Strong Sell Signal 1, 2, 3. Individual alerts for each strong sell signal
Any Of The 3 Strong Buy/Sell Signals Fired. Combined alerts for easy multi-ticker setup
Show older updates
Bug Fix & Calculation Improvement

Fixed a label on/off button bug and smoothed out trend calculations for improved accuracy.

What Changed
Fixed label on/off button bug
Small update to smooth out and improve trend calculations

EXPLORE THE SUITE

Related Indicators

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.