Trend Reversal Marker MT4
- Indicators
- Kestutis Balciunas
- Version: 1.0
Trend Reversal Marker is a non-repainting 11-MA ribbon trend indicator for MetaTrader 4. It computes eleven Simple Moving Averages spanning 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, and 200 bars and analyzes the slope of each one with a 14-bar Rate of Change (ROC) calculation. The 200-period MA defines the dominant trend direction. When most of the shorter MAs start sloping in the opposite direction, the indicator counts how many have flipped and converts that count into a 0%-90% reversal probability shown live in an upper-right dashboard. Two label types -- structural Bull / Bear at 200-MA ROC zero crossings and ReversalBull / ReversalBear when the count crosses the user-defined sensitivity threshold -- give explicit entry and warning signals with full alert delivery on four channels.
Check MT5 version at: Trend Reversal Marker MT5
See more products at: All Products
Check MT5 version at: Trend Reversal Marker MT5
See more products at: All Products
For live examples and new tools, visit my profile and send a Friend request so you don’t miss updates!
How It Works
11-MA Ribbon and Rate of Change Engine
The indicator plots eleven Simple Moving Averages with default lookbacks of 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, and 200 bars. Each MA is colored individually based on its current ROC slope relative to the dominant trend (the 200-MA). When a short MA agrees with the long-term direction it is drawn in the trend color (green in uptrends, red in downtrends). When it has flipped against the trend, it is drawn in the opposite color. The 200-MA itself is always drawn in the dominant trend color and uses a thicker line (3 pixels) so the trend reference is immediately identifiable.
Reversal Probability
On every bar the indicator counts how many short MAs (1-10, skipping MA6 to preserve compatibility with the original Pine implementation) are sloping against the dominant trend. Maximum count is 9. Multiplied by 10, this is the percentage shown in the dashboard: 0% means every short MA agrees, 50% means a meaningful warning, 90% means a structural reversal is almost certainly underway.
Signal Generation
Four signal types fire automatically:
- Bull -- when the 200-MA's ROC crosses above zero (start of new uptrend), label below the bar in green
- Bear -- when the 200-MA's ROC crosses below zero (start of new downtrend), label above the bar in red
- ReversalBull -- when the bull-count crosses above SignalPercentage during a downtrend, label below the bar in green
- ReversalBear -- when the bear-count crosses above SignalPercentage during an uptrend, label above the bar in red
All signals are evaluated only on closed bars. Once a label appears on a bar, it never moves or disappears.
Trend-Colored Candle Overlay
Each price candle is overlaid with a thick colored body matching the dominant trend direction. Bull periods get bright green bodies; bear periods get bright red bodies. The overlay sits on top of the chart's native candles and makes the trend direction visible at every bar without referring to the dashboard.
Key Features
- 11-MA ribbon covering short-, medium-, and long-term momentum (default lookbacks 10/20/30/40/50/60/70/80/90/100/200)
- Color-switching MA lines that flip between trend tone and opposite tone based on individual ROC slope
- Live 0%-90% reversal probability shown in the upper-right dashboard
- Trend-colored candle overlay (paired DRAW_HISTOGRAM in MT4, DRAW_HISTOGRAM2 in MT5)
- Four signal types with text labels and colored arrows: Bull, Bear, ReversalBull, ReversalBear
- Non-repainting architecture -- closed-bar evaluation, per-event bar tracking, object-name uniqueness
- Adjustable reversal sensitivity threshold (SignalPercentage 1-9) for fine-tuning trigger speed
- Configurable ROC lookback length (default 14) for slope calculation
- Four alert channels: popup, sound, push notification, email (independent toggles)
- Per-event bar guards prevent duplicate alerts on volatile bars
- Works on all symbols (Forex, Crypto, Stocks, Commodities, Indices) and all timeframes
- Available for both MT4 and MT5 with identical signal logic
