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
Guillaume Mcm I gave the above message fix ;)
Tradingrob Is it possible to put the itf-file in the right way here in Prorealcode? so the right 'trend...
Guillaume Mcm Update link ;) https://www.prorealcode.com/topic/trend-histogramme-cci-mise-a-jour-suite-...
Screw27 Hi man, I installed the indicator and i don't know why but my graph it is so big
HelixKing sounds interesting I'll take a look
Godo Bonjour Souhait Sam, Après de nombreux essais pour le mettre en format afin d'utiliser ce c...
Nicolas Il faut supprimer celles qui existent dans la fenêtre d'optimisation et les créer en dur dan...
crusoe76 hi there, anyone can help making this strategy work, i have a message saying replace variabl...
Screw27 Salut nicolas j'aimerais savoir tes résulats grace a cettte methode
eva.g.forsgren It dose not work, I get a strap instead of candels???????????????????????????????????????????
Nicolas That indicator is the one below the chart. The indicator to put on the price chart is this o...
pyhrus P.S : IG , que j'ai contacté ,m'indique que la version V11 , ne sera pas disponible avant un...
Hasardeur Dear Nicolas, is there someting at the arry to modify in order to run the trend at the actu...
MALIMALO Dear Nicolas, just try touse your indicator with backtest but it's not working. is anybody...
ribes65 Bonjour Nicolas, Merci pour votre travail. Est-il envisageable de créer un screener pour ...
Nicolas Bien sûr, merci de formuler une demande dans le forum des screeners pour prorealtime. En res...
ipbvba Est il possible de le transformer en indicateur (pour ne plus avoir les lignes mais uniqueme...
supertiti Bonjour Nicolas, Je ne comprend pas bien , le trend change de couleur quand les prix sont a...
Nicolas Oui ce serait possible, cependant l'indicateur est bien prévu pour conserver la couleur de l...
supertiti Quand tu pourras si tu peux nous coder la troisième couleur cela améliorerait les trades cou...
Nicolas How to import file page: in the help section of the website explains howto
kenssa import through the indicator page/window in the Proreal time
chicoteca Buenas, no consigo que se me muestre en el chart de DAX. ¿Cómo procedo? Gracias.-
Ciccarelli Franco Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
JADINVEST Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...
Alessandro Furlani Hi Ian, hope you still use PRT and so you can read this post. I have tested a lot your work ...
Stockastiss Can this code be simply transferred into Backtestingcode so one doesnt need to use call ? (i...
Vonasi Sorry for the late reply. Add the code to your strategy and remove line 5 and line 39. Chang...
viktorthunss Hi! How many averages are there? Can I see the somewhere?
leofi https://www.prorealcode.com/topic/simple-average-with-visual-color/
leofi Go visit www.prorealcode.com/topic/simple-average-with-visual-color/ and watch 2em post
Dritan Hi,I am new on Prorealtime and coding.I downloaded the indi but I have it on a separate wind...
Nicolas Just add it on the price series.
yomisadiku Hello Nicolas, Can I use high and low price at lines hh=max(hh,close) and ll=min(ll,close) ...
Nicolas Yes you can do that, the impact will be that the trailing stop line will be much close to th...
Byggtrader Hi Nicolas! How do I get the indicator in the price chart? It only stays under i new chart.
Nicolas Just add it on the price chart by using the wrench on the left upper side of the chart (pric...
Dom Hello, hello....je commence le trading et découvre par la même occasion le codage....et ce n...
Nicolas Merci, ça fait plaisir !
Be-n Bonjour tout le monde ! Dans l'indicateur de tendance, j'ai du mal à saisir la nuance entre ...
Globalmarkets79 Thank you Vonasi for the answer. I have an other question. When i tried to run the indicator...
Vonasi Lines is either 0 or 1 to turn on or off the drawing of them. Once again if you download and...
Globalmarkets79 Thank you Vonasi, this indicator is very helpful!!!
Nicolas
6 years ago
Bateson Merci pour la réponse Nicolas. C'est bien ce que j'ai fait mais ça ne fonctionne toujours pa...
Enzo Paliotti Veramente ottimo, era quello che cercavo, si potrebbe modificare inserendo come variazione a...
Nicolas Perché no, chiedetelo con una descrizione dettagliata nel forum degli indicatori, per favore!
jiddan78 how to convert to afl amibroker ?
Nicolas We do not supply free coding assistance for AFL Amibroker on the website. You can ask for pa...
Ngomsi @ Vonasi, how to use timeframe , 13 minutes ,21 minutes, 34 minutes,et 55 minutes with this...
manchokcity can we have it in mql4 platform? or how or which platform do we use it?
camporan I don't use MetaTrader so I won't be able to do the translation myself. Sorry!
Alexander9 This can for amibroker ? . Thanks

Top