RMS True Range Trend [BackQuant]

1 443

Więcej ekskluzywnych wskaźników od BackQuant

Subskrybuj Trading & Portfolio Toolkit za $69.99 miesięcznie, aby uzyskać dostęp do ekskluzywnych wskaźników tego autora. Zapłać bezpośrednio na TradingView i od razu korzystaj z nich na swoich wykresach.

Odkryj Trading & Portfolio Toolkit
RMS True Range Trend [BackQuant]

Overview
RMS True Range Trend is a trailing trend indicator that uses the root-mean-square of True Range to determine its band width.

Instead of averaging True Range directly, the script squares each True Range value, averages those squared values, and then takes the square root:

  • RMS True Range = √SMA(True Range², Length)


The resulting range estimate is multiplied by the selected factor and used to build upper and lower trailing bands around the chosen Trend Source.

The overall trend logic is similar to a conventional trailing-band system:
  • Bullish state uses the lower band as the active trail.
  • Bearish state uses the upper band.
  • Price crossing the opposite band changes the trend state.


True Range
The script uses TradingView's standard True Range calculation.

True Range accounts for the current bar's range as well as gaps relative to the previous close.

The RMS calculation is then applied across the selected RMS Length.

Why RMS changes the range estimate
RMS gives larger True Range observations more influence because the values are squared before averaging.

Compared with a simple arithmetic average of True Range, occasional large ranges therefore have a stronger effect on the resulting width.

This does not make RMS True Range inherently better or more predictive. It is simply a different way of averaging recent range magnitude.

RMS Length
RMS Length controls how many True Range observations are included.

Shorter values:
  • React more quickly to recent range changes.
  • Can make the trail width change more rapidly.


Longer values:
  • Produce a more stable range estimate.
  • React more slowly to short-lived changes.


Multiplier
The Multiplier scales the RMS True Range:

  • Range Width = RMS True Range × Multiplier


Higher values produce wider bands and generally fewer trend changes.

Lower values place the bands closer to price and make the trail more sensitive.

Raw Bands
The initial bands are centered on the selected Trend Source:

  • Upper Band = Source + Range Width
  • Lower Band = Source - Range Width


The default Source is HL2.

These raw levels are then converted into trailing bands.

Trailing Bands
The upper and lower bands use ratcheting logic rather than freely following every new raw value.

The upper band can move lower while price remains below it.

The lower band can move higher while price remains above it.

This creates persistent trailing boundaries instead of a continuously expanding and contracting channel.

Trend State
When the current trend is bearish:

  • Close above the Upper Band changes the state to bullish.


When the current trend is bullish:

  • Close below the Lower Band changes the state to bearish.


The active trail is:

  • Lower Band during bullish trends.
  • Upper Band during bearish trends.


Break Trail On Flips
When enabled, the plotted trail is hidden on the exact bar where the trend changes.

This prevents TradingView from drawing a connecting segment between the previous upper trail and the new lower trail, or vice versa.

This is visual only and does not affect the trend calculation.

Visual Strength
The script calculates a separate Trend Strength value for the gradient and glow.

It combines:

  • 65% distance between Close and the active trail, normalized by Range Width.
  • 35% current RMS True Range relative to its own moving baseline.


This value is used only for visual intensity.

It does not affect:
  • Trend direction.
  • Band placement.
  • Trend flips.
  • Alerts.


Price Gradient
The optional gradient fills the area between the active trail and Close.

Several transparency layers are used between the trail and price.

The colour follows the current bullish or bearish trend state.

The gradient itself contains no additional signal logic.

Trail Glow
The optional glow is scaled from RMS True Range and the visual Trend Strength value.

Stronger conditions produce a slightly wider and more visible glow.

The glow is cosmetic and does not alter the actual trail.

Trend Candles
Optional chart candles are coloured according to the stored trend state:

  • Bullish = selected Bullish colour.
  • Bearish = selected Bearish colour.


The candle colour reflects the indicator regime, not whether each individual candle closed higher or lower.

Input Guide
Trend Source
Series used as the center of the raw upper and lower bands.

RMS Length
Lookback used for the RMS True Range calculation.

Multiplier
Controls how far the raw bands are placed from the Trend Source.

Break Trail On Flips
Creates a visual break in the trail when the trend changes.

How to Read It
Bullish Trend
The Lower Band is active and acts as the trailing reference.

Bearish Trend
The Upper Band is active.

Rising RMS True Range
The range estimate increases, which can widen newly calculated raw bands.

Falling RMS True Range
The range estimate contracts, allowing tighter raw bands.

Data Window
The indicator exposes:
  • True Range.
  • RMS True Range.
  • RMS Range Width.
  • Upper Band.
  • Lower Band.


Limitations
  • The indicator is reactive and uses current and historical price data.
  • RMS True Range measures recent range magnitude; it does not forecast future volatility or direction.
  • Large True Range observations have greater influence because the values are squared.
  • Lower Multipliers can create more frequent trend changes in sideways conditions.
  • Higher Multipliers create wider trails but can delay reversals.
  • The gradient, glow and Trend Strength calculation are visual only.


Alerts
The script includes:

  • RMS TR Bullish: trend changes from bearish to bullish.
  • RMS TR Bearish: trend changes from bullish to bearish.
  • RMS TR Flip: either trend transition occurs.


Summary
RMS True Range Trend uses the root-mean-square of recent True Range values to set the width of a trailing upper and lower band.

The bands use ratcheting logic, with the lower band active during bullish trends and the upper band active during bearish trends. Price crossing the opposite band changes the stored trend state.

The main difference from a standard ATR-based trailing system is simply the range calculation: RMS True Range gives larger range observations more influence before the trail width is calculated.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.