PROTECTED SOURCE SCRIPT
Mis à jour

BETA ZONES v1.0

6 549
BETA ZONES v1.0 Indicator
Overview
BETA ZONES v1.0 is a comprehensive technical analysis tool designed for TradingView, combining an EMA-based ribbon with dynamic glow zones, structural pivot detection, and real-time ATR visualization. This overlay indicator helps traders identify trends, support/resistance zones, and potential breakout points by blending moving averages, volatility-based shading, and pivot structures. It's particularly useful for trend-following strategies, swing trading, and confirming market reversals on any timeframe or asset, including those using Heikin Ashi candles (as it incorporates real close data to bypass transformations).
The indicator emphasizes visual clarity with color-coded elements: bullish trends in shades of green/lime and bearish in red/maroon. It includes customizable toggles for each component, allowing users to focus on specific features without cluttering the chart.
Key Features
• EMA Ribbon & Glow System:
o Displays a ribbon formed by three EMAs (5, 20, and 50 periods) with gradient fills between them, colored based on trend strength.
o A dynamic "glow" zone around the 50-period EMA, calculated using ATR (Average True Range), acts as a volatility-based support (bullish) or resistance (bearish) band. The glow expands/contracts with market volatility, providing a visual buffer for potential price reactions.
o Real Close Dot: A small circle plotted at the actual closing price of each bar (sourced from standard candles), aiding in precise data verification even on transformed charts like Heikin Ashi.
• Structural Pivots:
o Automatically detects and labels confirmed pivot highs and lows using customizable symbols (e.g., arrows, dots, or curves).
o Draws breakout lines connecting pivots to the bar where structure is broken (Break of Structure - BOS), highlighting bullish (green) or bearish (red) shifts.
o Pivots are trend-aware: In uptrends, it tracks higher highs/lows until a downside break; in downtrends, lower highs/lows until an upside break.
• Real ATR Display:
o A compact table at the bottom-center of the chart showing the current 14-period ATR value (calculated on real data), useful for gauging volatility and setting stop-losses or targets.
How It Works
• EMA Ribbon Logic: The fast EMA (5) is compared to the mid (20), and mid to slow (50), to determine sub-trends. Price relative to the slow EMA sets the overall bullish/bearish bias. Fills create a "ribbon" effect, with colors intensifying in strong trends.
• Glow Zone: Uses a user-defined ATR length and multiplier to create upper/lower bands around the slow EMA. The glow is one-sided: below for bullish (support) and above for bearish (resistance), with semi-transparent shading for easy price overlay.
• Pivot Detection: Tracks the current trend direction (up or down) and reference high/low from the last confirmed pivot. A breakout (close crossing the reference level) confirms a new pivot, labels it, and optionally draws a line to the breakout bar. Bar coloring (yellow) highlights breakout candles.
• Data Handling: All calculations use real close prices via request.security to ensure accuracy on non-standard chart types.
Settings and Customization
The indicator is divided into intuitive input groups for easy configuration:
1. EMA Ribbon & Glow:
o Show EMA Ribbon & Glow: Master toggle to enable/disable the entire ribbon and glow (default: true). Note: Real Close Dot is independent.
o ATR Length (Glow): Lookback for ATR calculation (default: 3; higher = smoother glow).
o ATR Multiplier (Glow Size): Scales the glow width (default: 0.15; higher = wider zone).
o Show Real Close Dot: Toggle for the orange dot at real closes (default: true).
o Real Close Dot Color: Customize the dot's color (default: orange).
2. Structural Pivots:
o Show Pivot Labels: Toggle visibility of high/low symbols (default: true).
o Pivot Symbol Style: Choose from pairs like "︽ ︾" (low/high) or "•" (dots) (default: "•").
o Label Size: Adjust symbol size (Tiny to Huge; default: Normal).
o Pivot High/Low Label Colors: Set colors for labels (default: white).
o Show Breakout Lines: Toggle lines from pivot to breakout (default: true).
o Line Width: Thickness of breakout lines (default: 2).
o Line Style: Solid, Dashed, or Dotted (default: Solid).
o Resistance Break Line (Bullish): Color for upside breaks (default: green).
o Support Break Line (Bearish): Color for downside breaks (default: red).
No additional inputs are required for the ATR table, as it's always displayed on the last bar for quick reference.
Usage Tips
• Trend Identification: Use the EMA ribbon colors to gauge momentum—full green for strong bulls, red for bears. The glow zone can act as a dynamic entry/exit area (e.g., buy near bullish glow support).
• Breakout Trading: Watch for pivot labels and BOS lines as signals for trend reversals. Combine with volume or other indicators for confirmation.
• Volatility Awareness: The displayed ATR(14) helps in position sizing; for example, set stops at 1-2x ATR from entry.
• Chart Compatibility: Works best on candlestick or Heikin Ashi charts. For lower timeframes, reduce ATR length for faster reactivity; increase for higher timeframes.
• Limitations: Pivots are reactive and may lag in ranging markets. Glow is based on historical ATR, so it doesn't predict future volatility.
This indicator is in beta (v1.0) and open to feedback for improvements. Add it to your chart via TradingView's indicator search and experiment with settings to fit your strategy!

Notes de version
+Added color options for everything in the indicator.
Notes de version
+Added Alarms for 50EMA touch
+Added Alarms for Golden Candle
Notes de version
+Added Beta Zones Boxes for 1H, 4H, 1D. Colors of boxes are now adjustable also labels.
Notes de version
Update v1.9: Trade Projections, Traffic Lights & Master Alerts
This is a massive overhaul of the Beta Zones system. We have transitioned from a purely visual trend indicator to a complete Trade Management & Execution System. This update integrates precise trade planning tools, momentum confirmation, and a unified alert architecture.
1. New Feature: Automated Trade Projections
No more drawing manually. When a Golden Candle (Breakout) is confirmed, the script now automatically projects your trade setup on the chart.
• Smart Levels: Instantly draws Entry (Breakout + 1 tick), Stop Loss (Pivot Low/High), and Take Profit levels (TP1, TP2, TP3).
• The Golden Zone: Highlights the high-probability reversal area between 0.4R and 0.6R with a yellow fill.
• Smart Filtering (Clean Chart Logic):
o On: If price hits the Stop Loss before triggering the Entry, the projection lines are automatically deleted. This keeps your chart clean of "dead" setups.
o Off: You can choose to keep all historical projections visible for backtesting purposes.
• Customization: Fully adjustable line styles, colors, and projection length (in bars). A master toggle allows you to hide projections instantly.
2. Integrated "Traffic Lights" Momentum System
We have embedded the logic of the Traffic Lights indicator directly into Beta Zones to filter false breakouts. This system analyzes three layers of market data:
• Row 1 (Trend): Price location relative to the EMA (with an optional "Orange" indecision zone).
• Row 2 (Intent): RSI directional momentum (filtering noise).
• Row 3 (Power): MACD Histogram expansion combined with RSI zones.
• Visual Signals: Optional "Buy" and "Sell" labels appear on the chart when all three momentum conditions align.
3. The "Confluence" Setup
By combining Structural Pivots with Traffic Lights, we have created a new high-probability signal:
• Confluence Trigger: Occurs when a Golden Candle (Breakout) happens on the exact same bar as a Traffic Light Buy/Sell Signal. This indicates that structure and momentum are perfectly aligned.
4. New "Master Alert" Architecture
We have completely rewritten the alert system to be more powerful and easier to use.
• Old Way: You had to create separate alerts for EMA touches and Breakouts.
• New Way: A single dynamic alert handles everything.
• How to Setup:
1. Go to Indicator Settings -> Master Alert Settings.
2. Check the boxes for the alerts you want (e.g., EMA Touch, Golden Candle, Traffic Lights, or Confluence).
3. Create an Alert in TradingView and select "Any alert() function call".
4. The script will dynamically generate the correct message based on what triggered.
Summary of Changes
• Added: Automated Entry/SL/TP Lines with "Golden Zone" fill.
• Added: Logic to auto-remove invalidated setups.
• Added: Traffic Lights Momentum logic (3-Row System).
• Added: Master Alert Group (Unified alert() function).
• Improved: Settings menu organized into logical groups (Pivots, Projections, Traffic Lights, Alerts).

Notes de version
+Added a filter to show golden candles only if candle close is above/below EMA 50.
Notes de version
+Now you can choose to use same golden candles on standart chart but all calculations (pivot, breakout, candle close) are made according to heikin ashi prices. This makes the coloring exact same candles on standart chart and heikin ashi.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.