TradingView Chart OverlayPine Script v6 (Royal Purple Edition)Verified Chart Visual

UMAR'S AL-ANAM MASTER ZONES

Internal trend-flip confirmation, past-only swing zone mapping, and fixed-SL risk-capped chart references.

UMAR'S AL-ANAM MASTER ZONES is a TradingView Pine Script v6 chart overlay designed for uncluttered price-action analysis. Its underlying directional trend calculations remain internal so the chart stays clean. When an internal directional flip occurs, the indicator monitors a configurable confirmation window for a U candle breakout, scans past bars for the local swing extreme, projects a BULL ZONE or BEAR ZONE box with an Entry % slice, and plots E, SL, and TP reference levels.

Genuine TradingView ScreenshotXAUUSD 3m Reference
Verified Specifications

Core Capabilities & Architecture

Verified visually in supplied TradingView capture on XAUUSD 3m; overlay=true supports standard TradingView chart timeframes with asset-appropriate calibration.

Clean Chart with Internal Trend State

Keeps internal trend calculations off the price canvas to preserve clean candlestick visibility while tracking confirmed directional flips.

U Candle Breakout Confirmation

Evaluates a configurable confirmation window after each trend flip and plots a U marker when a confirmed directional breakout candle closes.

Past-Only Swing Zone Lookup

Scans strictly current and past bars (zero future lookahead) to anchor BULL ZONE and BEAR ZONE boxes to the local swing candle high-to-low range.

Configurable Entry % Sub-Zone

Overlays a translucent Entry % region inside each swing zone (default 50%, adjustable 1%–100%) to highlight planned entry boundaries.

Fixed-SL Entry Adjustment Cap

Calculates TP from base risk and keeps ATR-buffered SL and TP fixed; if initial distance exceeds Maximum SL Distance, Entry shifts toward SL.

Cooldown & Synchronized Cleanup

Optional bar cooldown spaces consecutive U signals, while FIFO array management cleans up old zones, entry boxes, lines, and labels together.

Workflow Illustration

How AL-ANAM MASTER ZONES Works

  1. 01

    Internal Directional Flip

    On confirmed bar close, the hidden trend engine detects a directional state change and arms a breakout confirmation window.

  2. 02

    U Candle Confirmation

    If price breaks above/below the flip candle within the confirmation window and passes cooldown spacing, a bullish or bearish U candle confirms.

  3. 03

    Historical Swing Zone Selection

    When Swing Window is enabled, the script searches backward across Swing Lookback Bars for the lowest low (bullish) or highest high (bearish) candle.

  4. 04

    Zone, Entry % & E/SL/TP Projection

    Draws the BULL/BEAR ZONE box, ENTRY % slice, and E, SL, and TP lines with right-side price tags on the chart.

Chart Interpretation

Labels & Zone Legend

U

Confirmed U candle breakout marker occurring within the confirmation window after an internal trend flip.

BULL ZONE / BEAR ZONE

Complete High-to-Low swing candle range projected forward across Zone Extension Bars.

ENTRY <X>%

Internal percentage slice inside the swing zone defining the base Entry boundary.

E / SL / TP

Solid blue Entry line, dashed red ATR-buffered Stop Loss line, and dotted green Risk:Reward Take Profit line.

Royal Purple Brand Panel

Top-right 3-row header displaying UMAR'S | AL-ANAM MASTER ZONES | TREND ◆ U CANDLE ◆ SWING ZONES.

Configuration Guide

Inputs & Settings Reference

User-configurable parameters organized by TradingView settings group.

GroupInputTypeDefaultFunction
Calculation ParametersA1, A2, A3, A4Int / Int / Source / Int12 / 90 / close / 90Core internal engine tuning parameters (labeled A1–A4 to keep internal calculation mechanics protected).
U Candle ConfirmationBreakout Confirmation WindowInt4 bars (1–50)Maximum bars after an internal trend flip during which a U breakout candle may confirm.
U Candle ConfirmationShow U Candle Label & ColorsBool / Colortrue (#00C853 / #F44336)Toggles and styles bullish and bearish U candle markers.
Swing Zone SettingsEnable Swing Window & LookbackBool / Inttrue / 10 barsSearches past bars for the local swing extreme candle to anchor the zone.
Swing Zone SettingsZone Extension & Maximum ZonesInt / Int20 bars / 100 zonesControls forward zone duration and maximum retained drawing sets.
Entry / SL / TPUse Entry Zone Percentage & %Bool / Floattrue / 50.0%Draws the inner ENTRY % sub-box and sets base Entry placement.
Entry / SL / TPSL ATR Multiplier & Maximum SL CapFloat / Bool / Float0.5 / true / 3.0Places SL outside the zone using ATR(14) and shifts Entry toward fixed SL if distance exceeds Maximum SL Distance.
Entry / SL / TPRisk:Reward Target & Show TPFloat / Bool2.5 / trueProjects TP from base Entry and base SL distance.
U Candle CooldownEnable Cooldown & Cooldown BarsBool / Inttrue / 10 barsEnforces minimum bar spacing between consecutive U candle confirmations.
Usage Guide

Setup Instructions

  1. Apply UMAR'S AL-ANAM MASTER ZONES to your TradingView chart once published access is enabled.
  2. Adjust Breakout Confirmation Window and Cooldown Bars Between U Candles to control signal spacing on your timeframe.
  3. Configure Swing Lookback Bars and Zone Extension Bars to match market structure cadence.
  4. Calibrate Maximum SL Distance (Price Units) (default 3.0, suited for Gold/XAUUSD scale) and Entry Zone % (e.g., 50% default or 90% as shown in the reference chart).
  5. Attach TradingView alerts to Bullish U Candle, Bearish U Candle, or Any U Candle.
Notifications

Built-In Alert Conditions

  • Bullish U Candle
  • Bearish U Candle
  • Any U Candle
Transparency

Limitations & Restrictions

  • Analytical TradingView overlay only—not an automated execution system or financial advice.
  • Underlying trend ribbon visuals are intentionally hidden; only confirmed U candles, swing zones, and level lines appear.
  • If a potential U breakout occurs during the active cooldown period, the setup is consumed and suppressed.
  • Default Maximum SL Distance (3.0 price units) must be recalibrated when switching to FX pairs, indices, or crypto with different tick scales.
  • Refer to the official TradingView script publication page for current script access terms and release notes.
Release Lineage

Version History

Filter Ribbon v1.0 – v1.1 & Al-Master v6Earlier Iterations

Introduced trend-flip U candle detection, swing zones, and initial Entry/SL/TP projections.

AL-ANAM Zones v7 → UMAR'S AL-ANAM MASTER ZONES (Public / Purple)Reviewed Locally

Hid internal ribbon plots, protected A1–A4 parameters, fixed SL/TP anchoring under Max SL Cap, and added the Royal Purple brand panel matching the supplied screenshot.