Sandip Reversal Detector
- Indicatori
-
Sandip R Pawar
Professional software developer since 2007 turned full-time algorithmic trader. Specializing in custom automated infrastructure, data-driven market strategies, and precision execution across derivatives, XAUUSD, and crypto. - Versione: 1.0
- Attivazioni: 10
Sandip Reversal Detector is a multi-confluence technical indicator for MetaTrader 5 that combines ADX directional momentum, 95th-percentile volume exhaustion points, automated 3-point trendlines, and 3-candle reversal patterns. Built on a strict stable-bar architecture, all signals, candle colors, and chart objects are committed exclusively on bar close to eliminate intrabar flickering and repainting.
Default Settings:
Optimized for the XAUUSD (Gold) – 5-Minute (M5) Timeframe Trading Setup.
Users can freely change the symbol and customize the indicator settings according to their preferred trading instrument and timeframe.
Core Architecture and Methodology
Most reversal indicators fail in trending markets because they trigger premature counter-trend entries without checking underlying volume or momentum exhaustion. Sandip Reversal Detector solves this by filtering price action through four distinct analytical layers:
-
Momentum Layer: Wilder RMA Directional Movement (DI+ and DI-) paired with a Weighted Moving Average (WMA) of ADX separates trending expansion from low-volatility chop.
-
Volume Exhaustion Layer: Rolling volume sums are normalized against a 300-bar 95th-percentile benchmark to pinpoint institutional Control Points (CP) at ATR envelope extremes.
-
Structural Geometry Layer: An automated geometric scanner connects three aligned Control Points within a strict ATR tolerance to project dynamic support and resistance trendlines.
-
Confirmation Layer: Entry markers trigger only after a confirmed 3-candle price reversal forms immediately following a valid Control Point and crosses the fast reference EMA.
Key Features Breakdown
-
Stable-Bar Execution: Calculations and graphical objects lock in only after a candle closes, ensuring historical chart visuals match real-time trading conditions.
-
Dynamic ADX Trend EMA: Plots a color-coded main EMA that shifts between Green (bullish expansion), Red (bearish expansion), White (ranging market), and Gray (transitional pullback).
-
Smart Candle Coloring: Colors chart bars according to ADX trend strength and highlights high-momentum post-signal EMA breakout candles in Yellow.
-
Zero-Lag Volume Control Points: Identifies institutional exhaustion highs and lows using real volume (or tick volume fallback), wick rejection ratios, and ATR envelope boundaries.
-
Automated 3-Point Trendlines: Scans historical Control Points to draw validated 3-touch dotted trendlines with customizable forward bar projections.
-
Confirmed Reversal Signals: Marks validated 3-candle reversal setups with an "E" badge, a high-confluence soft circle, and 7-bar high/low range breakout levels.
-
Ready for Automation: Exposes clean Data Window buffers for fast EMA values and numeric candle states so Expert Advisors can read signals effortlessly.
Visual Chart Guide and Trading Workflow
-
Green / Red Dots (CP Markers): Indicate Big Volume Control Points where a swing high or low occurred alongside a 95th-percentile volume spike and wick rejection.
-
Yellow Dotted Lines: Represent validated 3-Point CP Trendlines connecting three aligned volume pivots, followed by a White forward extension ray.
-
Green / Red "E" Labels: Mark a confirmed 3-candle reversal pattern immediately following a Control Point.
-
Soft Shaded Circle: Appears around an "E" signal when the reversal aligns directly with the primary ADX Trend EMA color, signaling highest confluence.
-
7-Bar Range Lines: Horizontal yellow dotted lines projected for 7 bars from the "E" signal high and low to frame immediate breakout or stop levels.
-
Yellow Breakout Candles: Appear when price closes across the White EMA12 within 7 bars after an "E" reversal signal.
Input Parameters Guide
Envelope Settings
-
Envelope Smoothness: Period for the internal EMA and Wilder ATR envelope calculation (default is 65).
-
Envelope Width: ATR multiplier used to set the upper and lower exhaustion bands (default is 4.0).
ADX Momentum Settings
-
ADX Smoothing: Wilder RMA smoothing length for the ADX calculation (default is 20).
-
DI Length: Lookback period for Directional Movement (DI+ and DI-) calculation (default is 20).
-
ADX Signal WMA Length: Period for the Weighted Moving Average signal line applied to ADX (default is 20).
-
ADX Threshold: Minimum ADX value required to classify the market as trending rather than ranging (default is 10.0).
Strict Price Trend Filter
-
Main EMA Length: Period for the primary ADX-colored Trend EMA line (default is 20).
-
White EMA Length: Period for the fast White reference EMA line used for entry and breakout confirmation (default is 12).
-
White EMA Offset: Horizontal bar shift applied to the White EMA plot (default is 0).
Visuals (Main Chart ADX)
-
Show ADX Colored EMA Line: Toggles visibility of the main color-changing Trend EMA on the chart.
-
Color Candles by ADX Trend: Toggles custom candle coloring based on ADX momentum and breakout states.
-
Color Selectors: Customize chart colors for Ranging (White), Strong Bullish (Green), and Strong Bearish (Red) conditions.
Maximum Reaction Zones
-
Zone Lookback Period: Historical lookback window reserved for structural zone evaluation (default is 90).
-
Zone Width: ATR multiplier parameter for reaction zone scaling (default is 1.0).
-
Zone Colors: Customizable color selectors for Resistance (Orange) and Support (Blue) display preferences.
Big Volume Points (0-Lag Settings)
-
Swing Lookback Length: Number of bars used for rolling swing high/low and volume summation (default is 9).
-
Same-Bar Rejection Wick Ratio: Minimum wick-to-range ratio required to validate a rejection bar (default is 0.75).
-
Volume Filter Threshold: Minimum normalized volume score (on a 0 to 6 scale) required to trigger a Control Point (default is 2.0).
-
Circle Diameter Multiplier: Scaling factor for signal circle geometry (default is 0.2).
-
Show Volume Levels: Toggles chart visibility of the Control Point markers.
-
Volume Marker Colors: Customize Bearish Volume and Bullish Volume marker colors.
CP 3-Point Trendline Settings
-
Show 3-Point CP Trendlines: Enables or disables automatic 3-point trendline detection and drawing.
-
CP Selection Mode: Choose between Combined (connects any 3 CPs) or Separate (connects Highs only and Lows only).
-
3-Point Alignment Tolerance: Maximum allowed price deviation for the middle point, expressed as a multiple of 200-bar ATR (default is 0.30).
-
Forward Extension Bars: Number of future bars to project the trendline extension ray (default is 10).
-
Trendline Visuals: Customize Main Trendline Color, Extension Line Color, Trendline Width, Latest 5 CP filter, and Middle CP horizontal line.
Signal and Alert Settings
-
Enable MT5 Popup Alerts: Triggers native MetaTrader 5 terminal alerts with symbol and timeframe details on new "E" signals and trendlines.
