Comprehensive Analysis of the "RED MAN" Indicator (MQL4)
This custom indicator, named "RED MAN", is a sophisticated trend-following oscillator that combines price action filtering, cycle analysis, and momentum detection to generate trading signals. Below is a detailed breakdown of its structure, logic, and practical applications.
"With this AI, you can achieve substantial income and reap exceptional benefits."
1. General Overview
Indicator Name: RED MAN
Type: Separate window oscillator (-1.0 to +1.0 range)
Primary Purpose: Identifies trend reversals, momentum shifts, and cyclical patterns using adaptive filtering.
Key Features:
Price Action Filtering (SMMA-based)
Cycle Strength Detection (Major/Minor cycles)
Optional SMA/RSI Filters for additional confirmation
2. Input Parameters
Core Settings
Parameter Default Description
PriceActionFilter 1 Smoothing period for the base moving average (SMMA).
Length 3 Lookback period for volatility adjustment.
MajorCycleStrength 4 Multiplier for major cycle detection (stronger trends).
Filtering Options
Parameter Default Description
UseCycleFilter FALSE Enables/disables cycle-based trend filtering.
UseFilterSMAorRSI 1 1 = SMA / 2 = RSI for secondary confirmation.
FilterStrengthSMA 12 SMA period for trend confirmation.
FilterStrengthRSI 21 RSI period for trend confirmation.
3. Indicator Buffers
The indicator uses 6 buffers (arrays storing calculated values):
Buffer Index Name Description Color Style
0 g_ibuf_104 Hidden (auxiliary calculations) Black None
1 g_ibuf_108 Bearish Signals (Major Cycle) Aqua Thick Histogram
2 g_ibuf_112 Bullish Signals (Major Cycle) Maroon Thick Histogram
3 g_ibuf_116 Bearish Signals (Minor Cycle) Black None
4 g_ibuf_120 Bullish Signals (Minor Cycle) Black None
5 g_ibuf_124 Filter Output (SMA/RSI) Black None
4. How It Works
Core Logic
Price Smoothing
Uses Smoothed Moving Average (SMMA) of PriceActionFilter period to filter noise.
Adjusts sensitivity based on Length (volatility scaling).
Cycle Detection
Major Cycles (Strong Trends):
Detected when price moves exceed MajorCycleStrength * Average Range.
Plotted as Aqua (Bearish) / Maroon (Bullish) histograms.
Minor Cycles (Weak Trends):
Filtered out unless UseCycleFilter = TRUE.
Optional Confirmation Filters
SMA Filter: Uses a Zero-Lag SMA to reduce lag.
RSI Filter: Applies Zero-Lag RSI for momentum confirmation.
Signal Generation
Bullish Signal (g_ibuf_112 = +1):
Price breaks above a smoothed resistance level with cycle confirmation.
Bearish Signal (g_ibuf_108 = -1):
Price breaks below a smoothed support level with cycle confirmation.
5. Trading Strategy
Entry Conditions
Buy Signal:
g_ibuf_112 turns Maroon (bullish histogram).
Confirmed by SMA/RSI filter (if enabled).
Sell Signal:
g_ibuf_108 turns Aqua (bearish histogram).
Confirmed by SMA/RSI filter (if enabled).
Exit Conditions
Take Profit: When the opposite signal appears.
Stop Loss: Based on volatility-adjusted thresholds (Length parameter).
6. Strengths & Weaknesses
✅ Advantages
Adaptive to Market Conditions: Adjusts sensitivity based on volatility.
Reduces False Signals: Optional SMA/RSI filters improve accuracy.
Clear Visuals: Histogram format makes signals easy to interpret.
❌ Limitations
Lag in Ranging Markets: May produce late signals in choppy conditions.
Complex Logic: Requires careful parameter tuning.
7. Recommended Settings
Trading Style PriceActionFilter Length MajorCycleStrength UseFilterSMAorRSI
Scalping 1-3 2 3 1 (SMA)
Swing 5-10 4 5 2 (RSI)
Trend-Following 10+ 6 6 1 (SMA)
8. Conclusion
The RED MAN indicator is a powerful trend-following tool best used in strong trending markets. Its adaptive filtering helps reduce noise, while the cycle detection improves signal reliability.
Best Paired With: