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
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)
avatar
Anonymous Hi robertogozzi - thank you very much for sharing this strategy. I have performed various ...
robertogozzi Thank you samsampop.
Dotan Hello guys I really appreciate this coding effort but can I use this code for Mt5 Forex Trad...
LucioleLucide Clean view, thanks for sharing
dertopen hi where i can found the window for candle configuration?
paolosab69 Ciao! . I have seen the pictures that explain this metod but i don't understand when is mome...
coscar Ottimo lavoro. come sempre!
luxrun Nello studio di Sepiashvili viene descritto anche un altro indicatore, il Q-indicator, che è...
Maik2404 wie kann ich den Code bekommen Paul?
jens_kittner Works with US Crude at 1h as well!
Jean-Claude REGIS Je préconise de regarder les graphiques H1 et M15 pour visualiser la tendance de fond et d'...
capgros Bonjour @Nicolas, Thanks a lot for this tool, it is very useful for me. I would like to s...
Hans63 Would you add the possibility to color also the Heikin Ashi and bar chart?
Nicolas That's possible, please open a new topic in the indicator forum explaining what you need exa...
Nicolas
7 years ago
BSTrend
v10.3
BSTrend
10
Indicators
Florian Legeard C’est à dire sur le prix et non sur le temps ? Merci
Rohit82189 bstrend repaints
Nicolas No, it doesn't repaint.
cfta Hi Fulvio, many thanks for sharing this clever indicator, much appreciated. As Pepsmile ment...
cfta Sorry adding the PRT to code didn't work in the above comment so I guess we will have to set...
juanj Something appears to be wrong with this formula as graphing t shows t to almost never be wit...
Nicolas
7 years ago
Maxime Baudin Interesting, Thank you! :)
franck-david Bonjour Nicolas , actuellement je me forme grace a vos videos tres tres bien expliques mer...
Nicolas Merci. ça n'est pas le lieu pour poser ce genre de question :) Merci d'utiliser le forum Pro...
Vonasi Discussion on this indicator/filter can be found here: https://www.prorealcode.com/topic/121...
Domenec Claro Juanjo de todas maneras en deinversoratrader.com tienes estsos osciladores evolucionad...
Dron Hola Domenec, en la descripción hablas del indicador velas de colores, no lo encuentro en la...
Domenec Hola Dron mira en el blog deinversoratrader.com en formacion indicadores ahi hay varios grat...
Geronima Ortiz I watched the video three times, but I can not put the npips parameter as a variable. I do...
Geronima Ortiz I think the video is for an old version of prorealtime, the images do not correspond at all ...
Nicolas indicator1 = CALL “PRC_StopReversal”[npips, 1] and define npips in the optimization window ...
Caribeengeek Bonjour j’avais vu que vous proposiez d’écrire des codes pour ceux qui s’y connaisse pas Mai...
Caribeengeek Les devises unité
Nicolas Merci d'utiliser le forum pour les demandes de programmation personnalisée
ullle73 nicolas, can you somehome make this to be in the background of the price chart?
jonpt88 none did that yet right?
Nicolas You can ask for a code modification on forums, please open a new topic with your request.
Toto le Heros Thanks Nicolas. I read somewhere that in the calculation, we should round the value of the A...
Nicolas aADX = round(adx[10])
bolsatrilera
7 years ago
Rainbow Oscillator
Rainbow Oscillator
1
Indicators
Maxime Baudin Interesting, thanks! Combine this indicator with the bollinger bands there is enough to make...
supertiti Bonsoir à tous For those who like me want to calibrate this indicator on a scale of 0 to ...
verdi55 You can find me at www.FXautomate.com Ahh. So i got it ? 4 different supertrends without th...
juanj What? This has nothing to do with the website. The site is simply a service to help people ...
Nicolas Advertising is allowed,as long as people are helping others and if provided services are abo...

Top