Join our fan page
- Views:
- 240
- Rating:
- Published:
- Updated:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Key Features:
-
Dynamic Flip Zones: Automatically converts broken Support into SBR and broken Resistance into RBS.
-
Auto-Normalization: Adjusts zone width based on average volatility, preventing them from being too wide or too narrow.
-
Anti-Flicker & Repaint Safety: Uses a confirmation delay to validate pivot points before drawing zones.
-
Smart Alert System: Triggers notifications only when the price moves significantly away from a zone and returns for a retest, minimizing noise in ranging markets.
⚙️ How It Works The indicator applies several logical filters behind the scenes to ensure zone relevance:
-
Pivot Scanning (ZigZag Core): Identifies Swing Highs (potential Resistance) and Swing Lows (potential Support) using a ZigZag algorithm. A 'Confirm Bars' feature validates these extreme points to prevent repainting.
-
Zone Formation & Normalization: Draws proportional rectangular zones instead of thin lines. Zone width is calculated against historical average price movements—shrinking overly wide zones and expanding narrow ones to maintain consistency.
-
Breakout & Transition Logic (SBR/RBS): Monitors real-time candle closes. A close below a Support converts it into an SBR zone; a close above a Resistance turns it into an RBS zone. (Users can disable this if they prefer broken zones to be deleted).
-
Distance Filter: Uses a "Min Move Away" parameter. The price must travel a certain multiplier away from a newly formed zone before it activates. Alerts will only trigger on a retest after this condition is met.
-
Overlap Resolution: Cleans up clustered S/R areas using two modes: Most Extreme (Default) keeps the furthest zone where major liquidity/stop-losses usually reside, while Newest prioritizes the most recently formed zone.
-
Dashboard (Market Bias): Continuously calculates the bullish vs. bearish momentum ratio based on recent ZigZag legs, providing an instant summary of whether the market is trending or choppy.
Market Structure Entry Model
Market Structure Shift (CHoCH) Bullish Setup (CHoCH ): Price breaks above the previous confirmed Lower High (LH), signaling a trend reversal from bearish to bullish. Bearish Setup (CHoCH ): Price breaks below the previous confirmed Higher Low (HL), signaling a trend reversal from bullish to bearish.
Auto ZigZag Fibonacci Golden Zone Indicator For MT5
The Auto ZigZag Fibonacci Golden Zone indicator automatically detects the latest swing high and low, draws key Fibonacci retracement levels (50%, 61.8%, 78.6%), and highlights the Golden Zone between 61.8% and 78.6% as an optimal pullback entry area. The indicator includes a real-time dashboard, optional buy/sell signals, and full color customization. Works on all symbols and timeframes. Always test on a demo account before live trading.
RepaintTest - measure whether a drawing indicator repaints
Measures whether a drawing indicator repaints, instead of asserting that it does not. The invariant: once a bar has closed and been processed, no object drawn on it may ever change - not move, not recolour, not change its text, and not disappear. The script seeds a custom symbol with real history, attaches your indicator through a template, records every object, appends bars, forces a full recalculation, and compares object by object. Changes and disappearances are counted separately, because only a change means the claim is false. A run that compared nothing is reported as INCONCLUSIVE, never as a pass. Output is a CSV you can publish next to the number.
SpreadAudit – a broker’s actual spread based on M1 historical data
The script retrieves your broker’s actual spread from the ‘spread’ field of the M1 bars and displays the median, the 90th and 99th percentiles in price units, in pips and as a percentage of ATR, and also exports the average and maximum spreads for each hour of the day to a CSV file. This is needed to test strategies against the actual costs on your account, rather than against a ‘typical’ spread estimated from memory.
