TrendReversalProbability

Trend Reversal Probability

Overview

Trend Reversal Probability is an analytical indicator for MetaTrader 5. It does not open, close or manage trades. Its purpose is to describe one specific property of the market in numbers: how long the current directional state of a smoothed momentum oscillator has already lasted, and how unusual that duration is compared with the same measurement on previous occasions.
The indicator runs in a separate window. On every bar it updates the duration of the current state, the average and standard deviation of all completed state durations available on the chart, and an empirical percentile value for the current duration.

What the indicator measures

The calculation chain is based on the median price of each bar, that is the average of the high and the low.
  1. Two simple moving averages of the median price are calculated, a fast one over 5 bars and a slow one over 34 bars. Their difference forms a momentum oscillator.
  2. The bar-to-bar change of that oscillator is separated into its rising and falling parts. Both parts are smoothed with a Wilder style moving average over the period set in the input parameters.
  3. The smoothed values are converted into a single centred value that moves roughly between -50 and +50. The zero line of that centred value is the reference point.
  4. Crossing the zero line upwards or downwards starts a new state. The indicator counts the number of bars elapsed since the last crossing, and calls this the signal duration.
  5. Every time a state ends, its final duration is added to a running statistic. From all completed durations the indicator keeps the mean and the standard deviation, which are plotted as the average duration line and the deviation levels.
  6. The current duration is compared with that distribution. The result is an empirical percentile displayed as a percentage in the upper left corner of the indicator window.
The result is a statistical description of the past and the present. It is not a forecast of price, and it does not state that a reversal will happen. A high percentile only means that the current state has lasted longer than most of the comparable states seen earlier on the same chart and settings.

Chart elements

The indicator draws the following elements in its own subwindow.
  • Average Duration​ - the mean of all completed state durations.
  • Upper 1 SD, Upper 2 SD, Upper 3 SD​ - the average duration plus one, two and three standard deviations.
  • Lower 1 SD​ - the average duration minus one standard deviation.
  • Signal Duration​ - a histogram of the number of bars since the last zero line crossing. The bar is painted with the up colour while the centred value is above zero and with the down colour while it is below zero.
  • Signal Duration 80%, 60%, 40%, 20%​ - four additional histograms showing the same duration value scaled to 80, 60, 40 and 20 percent. They are provided for visual presentation and make the height of the current state easier to read against the levels.
  • Extreme Reversal Probability​ - an orange arrow placed above the histogram when the current duration exceeds the average duration plus three standard deviations.
Text labels showing 14%, 50%, 84%, 98% and 99% can be displayed at the average duration and at the deviation levels. These labels mark the positions of the average duration and of one, two and three standard deviations above it, with the 14% label placed one standard deviation below the average.
A label in the upper left corner of the subwindow shows the current percentile value, for example Reversal Probability: 87.4%.

Alerts

The indicator can send standard terminal alerts when the following conditions are met on a closed or closing bar.
  • The percentile value rises above 84%.
  • The percentile value rises above 98%.
  • The percentile value falls below 14%.
  • The duration counter returns to zero, which means a new state has started.
The alerts use the standard terminal alert function. They can be silenced in the terminal options if they are not needed.

Input parameters

Parameter
Default
Description
Oscillator length
20
Period of the Wilder style smoothing applied to the rising and falling parts of the oscillator change. Higher values produce a slower centred value and longer states.
Show probability levels
true
Enables or disables the text labels at the average duration and deviation levels.
Up color
0,255,187
Colour used for the histograms while the centred value is above zero.
Down color
255,17,0
Colour used for the histograms while the centred value is below zero.
The fast and slow moving average periods, 5 and 34, and the window used for the duration volatility, 100 bars, are fixed in this version and are not exposed as inputs.

How to use it

The indicator is intended as a context tool that is read alongside a trading method, not as a standalone source of entries.
  • Loading​ - attach the indicator to any symbol and any timeframe. It appears in a separate window below the price chart.
  • Reading the histogram​ - the height of the Signal Duration histogram shows how many bars the current directional state has lasted. The colour shows the direction of the state according to the centred value.
  • Reading the levels​ - the grey lines show what has been a typical duration on this symbol and timeframe. A histogram that stays below the average duration line is still inside the usual range. A histogram approaching or exceeding the second and third deviation levels is in a range that has been rare in the loaded history.
  • Reading the percentile​ - the value in the subwindow summarises the same information as a single number between 0 and 100.
  • Practical applications​ - the value can be used to review how long a move has already been running, to plan where attention to an open position may be increased, to compare the behaviour of several symbols or timeframes, or to study how state durations behave on a chosen instrument.
  • Reset behaviour​ - when the centred value crosses the zero line, the duration counter starts again from zero. The percentile falls back accordingly and the reset alert can be raised.
Because the statistic is built from completed states found on the loaded history, the number of bars available on the chart matters. A longer history provides more completed states and a more stable average duration.

Requirements and limitations

  • MetaTrader 5 build with support for separate window indicators.
  • At least 56 bars are required before any calculation starts, and noticeably more before the average duration, the deviation levels and the percentile become available. The left part of the chart can therefore stay empty.
  • Values on the forming bar are recalculated on every tick and can change until the bar closes.
  • The indicator does not use DLL calls and does not perform any trading operations.
  • It can be used on any symbol and any timeframe provided by the terminal.
  • The indicator does not place objects on the price chart. All objects are drawn inside its own subwindow and are removed when the indicator is removed.

Notes on risk

Trading financial markets involves substantial risk. This indicator is an analytical tool. It describes statistical properties of past state durations and does not predict future price movement, does not guarantee that any reversal will occur, and does not provide investment advice or trading signals that can be followed mechanically. Any decision based on the values shown by this indicator remains the full responsibility of the user.

Support

Questions, comments and requests are handled through the product comments section and the built-in MQL5.com messaging system.
It will switch to a subscription service after exceeding 100 downloads.
Mais do autor
TrendReferenceLine — Adaptive Trend Line with ATR Channel and Auto Trade Levels Short description: ​ An adaptive trend line indicator that switches color with trend direction, marks confirmed reversals with arrows, and automatically plots entry, stop loss and three R-multiple targets on the chart. Type: ​ Trend-following technical analysis indicator (not an automated trading robot). What it does In trend trading, three questions matter most: has the direction changed, where does the stop go, and
FREE
RSI Support Resistance Signals Platform: MetaTrader 5 RSI Support Resistance Signals adds zone coloring and signal labels to the standard RSI. The indicator does not execute trades. Signals: Sell: RSI is in the overbought zone and turns down, or RSI is in the resistance zone and a bearish candle with an upper wick is detected. Buy: RSI is in the oversold zone and turns up, or RSI is in the support zone and a bullish candle with a lower wick is detected. Each signal can show a user-defined Engli
FREE
MA Valuation Fluctuations measures how far the current price stands from its moving average. The deviation is expressed in units of dispersion and then compressed by a hyperbolic tangent into a fixed range from -1.0 to +1.0. The indicator is drawn in a separate window and can be used as a context filter next to a trend following or a mean reversion approach. What the indicator shows For every bar the indicator compares the selected price with a moving average in logarithmic terms. Because the r
FREE
Trendfollowingline (ATR Based Trend Following Indicator) Overview Trendfollowingline is a trend following indicator drawn in the main chart window. It uses the Average True Range (ATR) as a measure of market volatility and plots a band around the price: while the direction is up, the band is placed below the price and moves upwards; when the direction turns down, the band switches above the price and moves downwards. An arrow marker is drawn on the band each time the direction changes. The indic
FREE
HubDynamicTrendLine This indicator identifies strict pivot highs and lows based on N bars to the left and right (default 15), connecting consecutive pivots of the same type to build a dynamic channel with upper and lower boundaries. Key Features Pivot Connections : Consecutive pivot highs and pivot lows are connected with solid trend lines, forming a visible channel structure. Slope Projection : When the price difference between two consecutive pivots of the same type is at least one 200-period
FREE
Inverse Probability Distribution — Pivot Density and K-Means Clustering Indicator Platform: MetaTrader 5 Overview This indicator is a technical analysis visualization tool for MetaTrader 5. It identifies confirmed pivot highs and lows on historical bars, groups pivot prices with K-Means clustering, and draws an inverse distribution profile on the right side of the chart. The profile shows the density of historical pivot prices at different price levels. The indicator does not generate trading s
FREE
Overview QuantifiedTrends is a MetaTrader 5 indicator that runs in a separate chart sub-window. It describes momentum conditions through three calculation layers: Primary QQE layer: an RSI-based structure that uses smoothing and the smoothed RSI's own variation to build adaptive upper and lower bands and a primary QQE trend line. Statistical envelope layer: Bollinger Bands applied to the deviation of the primary QQE trend line from the 50 midline, used to determine whether primary momentum readi
FREE
Trend Pressure Oscillator Trend Pressure Oscillator is a separate-window analytical indicator for MetaTrader 5. It evaluates buying and selling pressure across multiple timeframes to help identify potential exhaustion points and market regime shifts. This tool does not generate trading signals automatically and does not execute trades. It is designed to be used as part of a broader technical analysis approach. Functionality Multi-range pressure analysis using Williams %R over three periods (Pul
FREE
High Time Candlestick Chart Visualize the current higher-timeframe candle directly on your lower-timeframe chart. This indicator projects the OHLC data of a selected higher timeframe ​ (M15, H1, H4, D1, or W1) onto your current chart as a graphical candlestick, offset to the right of the live price area. It helps you keep the bigger-picture candle structure in view without switching timeframes. Features Graphical HTF candle : Body, upper wick, and lower wick drawn as chart objects, colored by bu
FREE
Intraday Spark Chart Overview Intraday Spark Chart is an MT5 indicator for intraday analysis. It converts the current price change of a symbol into a percentage of the daily opening price and plots the result in a separate subwindow. Every trading day starts again from the zero line, so each day is drawn as a separate segment and the intraday move of the current day can be observed directly. The indicator is a data visualization tool. It does not generate trading signals and does not provide inv
FREE
Dual Period Filter — Adaptive Coppock Curve for MT5 Overview The Coppock Curve is built from the sum of a long and a short rate of change, smoothed afterwards, and is used to observe the direction and strength of medium-term momentum. This indicator extends the classic calculation in two ways. First, the price source passes through an optional adaptive filter before the momentum is calculated. Nine filter types are available: None, SMA, EMA, RMA, Double WMA, Triple VWMA, HMA, LLAMA and Kalman.
FREE
EF Percentage Channel A trend-state indicator that combines volatility-adaptive averaging, an Ehlers nonlinear filter, and statistical percentile bands into a single, self-adjusting channel. Overview The indicator builds an adaptive trend baseline on the chart and wraps it with statistical percentile bands. When price moves above the upper band, the market is flagged as bullish; below the lower band, bearish; inside the channel, the previous state is retained. The trend line, channel bands, cand
FREE
MACandleApprox — Moving-Average Approximate Candle Indicator MACandleApprox is a custom indicator that, on the main price chart, applies a selected type of moving average to the open, high, low, and close price series respectively, and replots them as "approximate candles". It does not modify the original candlesticks; instead, it overlays a smoothed candle view based on moving averages, helping traders observe the smoothed price movement and directional changes more intuitively. The indicator s
FREE
Adaptive MACD - R² Based Adaptive MACD Indicator Overview Adaptive MACD is an innovative MetaTrader 5 indicator that improves upon the traditional MACD. By introducing the Pearson correlation coefficient to calculate the R² value of price trends, this indicator can adapt to market conditions and dynamically adjust its sensitivity. It helps traders capture trends more effectively while filtering out market noise. How It Works Traditional MACD uses a fixed difference between fast and slow EMAs. Ad
FREE
# MASignalPanel — Multi-MA Signal Panel with Trend Filter ## Overview MASignalPanel is an all-in-one moving-average signal indicator designed for MetaTrader 5. It combines up to three moving averages (SMA, EMA, SMMA, LWMA) with four trade signal modes — Cross, Breakout, Pullback and Channel — and adds a higher-timeframe trend filter line (default EMA240) to keep you on the right side of the market. A fully interactive control panel lets you change MA type, MA count, periods, s MA indicator, movi
FREE
ZigZag Trader EA - Intelligent ZigZag Trading Assistant Introduction ZigZag Trader EA is a fully automated trading assistant based on the ZigZag indicator. It intelligently identifies previous highs and lows of the ZigZag indicator, combined with an advanced risk management system, to provide you with precise trading signals and automated trade execution. Whether you are a novice or experienced trader, ZigZag Trader EA can help you simplify trading decisions and achieve stable trading performa
Fibonacci Confluence Suite Short description Fibonacci Confluence Suite is a chart-window indicator for MetaTrader 5. It builds a Fibonacci grid from confirmed swing highs and lows, marks the levels where projections from earlier swings overlap, and adds a Golden Pocket zone, Fibonacci time zones, touch statistics and a compact status panel. All levels are calculated from closed bars only. Overview Drawing retracement levels by hand usually means three separate steps: finding the swing, pulling
MACandleApproxPro — Advanced MA Candle Reconstruction & Multi-Dimensional Market Structure Indicator Overview MACandleApproxPro ​ is a comprehensive technical analysis tool designed for professional traders. It breaks through the limitations of traditional moving averages by reconstructing MA data into "MA Candles" ​ through complex algorithms. This unique visualization filters out market noise, allowing you to examine price trends, momentum shifts, and critical market structures from a more
SweepReversalMap — Indicador de mapeamento de zonas de reversão após varredura de liquidez Visão geral SweepReversalMap é um indicador personalizado baseado em Price Action, usado para identificar eventos de «Liquidity Sweep» (varredura de liquidez) no mercado e mapear potenciais zonas de reversão após o preço fazer reclaim. O indicador serve para qualquer instrumento e timeframe. Lógica central Detecção de pontos de swing: com base no Swing Length definido pelo usuário, identificam-se os swing
JKTaurus
Shi Yuan Wang
JK-Taurus Expert Advisor EMA Trend & SAR Confirmation Grid Trading System Overview JK-Taurus is a fully automated trading system designed for the MetaTrader 5 platform. It combines multi-period EMA trend analysis, Parabolic SAR signal confirmation, and a dynamic grid adding strategy to capture sustained profits in trending markets. A built-in visual panel provides real-time account monitoring and manual control. Key Features Trend Filtering : Uses three EMAs (240, 680, 1100) to determine the mai
SR Power Channel — Support & Resistance Power Channel Indicator Overview SR Power Channel is a main-chart visual indicator built on price extremes and ATR. It locates the highest high (resistance) and the lowest low (support) within a configurable lookback window, extends those two levels to the right, and wraps them into ATR-based channel bands. The indicator also counts bullish and bearish bars inside the window and marks the moments when price breaks above or below the channel bands with dia
Adaptive filtering trend Overview Adaptive filtering trend is a multi-layer signal filtering indicator for the MetaTrader 5 platform, built on the Coppock curve. The indicator computes a long-period and a short-period Rate of Change (ROC) of the price, sums them, and smooths the sum with a Weighted Moving Average (WMA) to obtain the Coppock curve. A set of independently switchable filters is then applied to screen the signals, and bullish or bearish crossings are marked on the main chart throug
RSICloud
Shi Yuan Wang
RSI Cloud — RSI Dual Moving Average Cloud Indicator This indicator calculates RSI in a separate window, applies fast and slow moving averages to the RSI values, and displays the relative position of the two averages as a filling cloud. It also provides an optional raw RSI line, fixed 70/50/30 reference levels, and arrow markers when the fast and slow RSI averages cross. The indicator is for analysis and signal filtering only; it does not place trades. How it works Wilder RSI is calculated from
JKTopHedge
Shi Yuan Wang
JK-Top Hedge — Two-Sided Hedged Grid EA for MetaTrader 5 Overview JK-Top Hedge is an Expert Advisor for MetaTrader 5. It places a Buy Stop above the current price and a Sell Stop below it at the same time, building two grid lines on either side of the market. When one pending order is filled, the EA places the next one further away, and the cycle repeats. Because long and short positions exist at the same time, a floating loss on one side can partly be offset by the other. The EA closes or reduc
Filtro:
Sem comentários
Responder ao comentário