Trend Speed Analyzer

Trend Speed Analyzer

1. Introduction

The Trend Speed Analyzer is a technical indicator designed by Zeiierman to provide a visual and quantitative reading of the speed at which a trend is moving, as well as abrupt changes in price direction. Unlike conventional indicators that only show trend direction, this indicator adds an extra layer of analysis through the use of a dynamic moving average and an accelerated price movement calculation.

It is presented in two distinct parts:

  • A visualization integrated directly into the price chart, where candlesticks change color based on the strength and direction of the trend.
  • A lower panel that displays a histogram of trend speed, making it easier to interpret market movements.

This dual representation makes the Trend Speed Analyzer a very useful tool for both visual analysis and the development of strategies based on market momentum.

2. Concept of the Trend Speed Analyzer

The Trend Speed Analyzer is based on two fundamental pillars: dynamic trend detection and the measurement of its evolution speed.

Dynamic Moving Average

At the core of the indicator is a dynamic exponential moving average. Unlike a conventional fixed-length moving average, this one adjusts automatically based on volatility and recent price behavior. It uses a variable length (dynLength) that is recalculated with each candle based on the normalization of price changes.

This approach allows the average to react more quickly during high market activity phases and to smooth out during consolidation periods, providing a more accurate and adaptive trend reading.

Acceleration Factor

In addition to dynamic length, the indicator incorporates an acceleration factor. This is calculated by comparing the current price variation with past variations, amplifying the moving average’s response to abrupt changes and enhancing the indicator’s sensitivity to trend beginnings or endings.

Speed Calculation

Once the trend is established through the dynamic average, the trend speed is calculated by the difference between a smoothed average of closing prices (WilderAverage) and the corresponding opening. This accumulated value becomes a quantitative measure of momentum, which is then smoothed using a Hull average for a clearer reading.

3. Visualization on the Price Chart

The first part of the Trend Speed Analyzer is represented directly on the price chart via a dynamic moving average and candlestick coloring based on trend strength.

Dynamic Moving Average

A continuous line is drawn over the price representing the calculated dynamic average. This line constantly adapts to price behavior and acts as a visual reference to identify the market’s directional bias.

Candle Coloring

Chart candlesticks are progressively colored according to the intensity of price movement. Color gradients indicate whether momentum is bullish or bearish and how strong it is:

  • Bullish trends: candles range from light yellow to deep green, indicating stronger bullish force as they approach green.
  • Bearish trends: colors range from deep red to light pink, reflecting a bearish slowdown or transition.

This visual approach allows for quick detection of turning points or moments when the trend gains or loses strength, which is especially useful for traders seeking to confirm breakouts or avoid false signals.

4. Visualization in the Lower Panel

The second part of the Trend Speed Analyzer is presented in a panel located just below the price chart. This is where the trend speed histogram is displayed, a visual tool for quickly assessing market momentum intensity and direction.

Speed Histogram

The histogram reflects the evolution of the speed variable, smoothed using a Hull average to produce a cleaner and easier-to-interpret curve. This value indicates whether trend momentum is increasing, decreasing, or reversing.

  • Bars above zero indicate bullish momentum.
  • Bars below zero indicate bearish momentum.
  • The further from the zero line, the stronger the movement.

Progressive Coloring

Each histogram bar is colored based on the relative strength of the momentum, using a progressive gradient:

  • Bullish impulses: range from yellow to green.
  • Bearish impulses: range from deep red to light pink.

This visual treatment facilitates the detection of divergences, accelerations, and decelerations in price dynamics, providing a clear reference to anticipate possible trend changes.

5. Indicator Settings

The Trend Speed Analyzer includes three main parameters that allow customization based on trading style or the asset being analyzed. Adjusting these parameters enables the user to adapt the indicator’s sensitivity to different market conditions.

MaxPeriod

  • Description: Defines the maximum period the dynamic moving average can reach.
  • Default value: 50
  • Use: A higher value makes the average smoother and slower to react, while lower values make it more reactive and price-sensitive.

AccelMultiplier

  • Description: Multiplier that amplifies the effect of the acceleration factor on the moving average.
  • Default value: 5.0
  • Use: Increasing it boosts the indicator’s sensitivity to rapid price changes. Decreasing it makes the average respond more moderately.

CollectionPeriod

  • Description: Number of candles used to calculate speed normalization, which is used to generate progressive colors.
  • Default value: 100
  • Use: A higher value smooths color changes and makes the indicator respond to longer trends. A lower value emphasizes recent movements more.

These three parameters work together to adjust the indicator’s responsiveness, fluidity, and visualization to market behavior. Their correct combination can make the difference between a clear signal and an ambiguous reading.

6. Practical Applications

The Trend Speed Analyzer is a versatile tool that can be used both independently and in combination with other indicators to improve decision-making. Its main uses in technical analysis include:

Breakout Confirmation

When the price crosses a key support or resistance zone, an acceleration in candle color or a spike in the histogram can confirm that the movement is strong and not a false breakout.

Trend Change Identification

Color transitions in candlesticks or a histogram crossing the zero line can anticipate changes in market direction, providing early reversal signals.

Signal Filtering

The indicator can be used as a filter for other systems. For example, entries against the dominant trend identified by the dynamic average or its associated speed can be avoided.

Divergence Detection

Comparing price action with histogram behavior can reveal divergences that warn of possible exhaustion or imminent reversals.

Quick Visual Analysis

Thanks to the progressive coloring in both the price chart and the lower panel, it’s possible to get an immediate reading of market strength and direction without additional calculations.

7. Code

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar
Related users ' posts
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
Iván
1 year ago
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
WhyAskOZ Hi, Ivan As always you are doing great coding. The code works on my PRT, however the issu...
Iván You can delete in the last line (return) the configuration for color. Delete coloured(xx,xx,...
Bernard13 (Je réécris mon commentaire -français- en français car certains mots ne correspondaient pas ...
Iván 1000 indicateurs !!! brutaux
Iván Gracias! Para el screener sólo tienes que copiar el indicador y poner como condición de búsq...
Lean Muchas gracias Iván, ya lo he podido crear.
bertoluce Hello Ivan, thank you very much for the indicator. An observation: would it be possible (and...
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Iván
1 year ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
1 year ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
Iván
1 year ago
winnie37 Hi Ivan, if i want to use it, and call the oscillator value (in grey, green or red), how to...
Iván The oscillator is smoothtype. In inputs there is de lag to configure the output
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
Alai-n I really like it when you develop ideas around price movement! I am much less a fan of all t...
elcortijoverde Muy buen trabajo.Intuitivo y claro.Gracias por tu dedicación y aportación.
Nicolas
2 years ago
B-Xtrender
B-Xtrender
8
Indicators
616248 Bonjour Nicolas, Peux tu nous expliquer le principe de fonctionnement ? Ou nous mettre un...
Nicolas Le lien vers l'article IFTA de l'auteur est dans le post déjà :)
P. Marlowe Very poweful indeed. It deserves close attention. I really appreciate very much IFTA backgro...
JS
2 years ago
Trendilo
Trendilo
1
Indicators
Coded1 very interesting indicator, thanks JS
Nicolas
2 years ago
Lucas0000 Hello, Congratulations on this programming, it seems incredible to me, I am new to this but ...
plbourse Hello, I am trying to use this singal (in fact I have converted it to an indicateur giving B...
manfeber Buenos dias,alguien me podria decir como se descargar el archivo o el indicador Q-Trend??,ya...
BriceE Bonjour Nicolas, Je suis a la recherche d'indicateurs pour me donner la meilleure indicatio...
Nicolas
2 years ago
Maxime Baudin Well done Nicolas, creative!
Stenozar Hi Nicolas, please can you explain how to read/use this indicator? thanks!

Top