PROTECTED SOURCE SCRIPT

SG Predictive Ranges v4.1

14
Predictive Ranges — v4.1 (Renko) - Predictive Ranges with Renko Integration - All-in-One Multi-Method Trading System

Short Description
Advanced ATR-based predictive range system combined with full Renko chart analysis, Break of Structure detection, multi-timeframe trends, and automated backtesting—all unified in one powerful indicator.

Main Description
📊 Overview

Predictive Ranges v4.1 is a comprehensive, all-in-one trading system that combines dynamic support/resistance zones with advanced Renko chart analysis to identify high-probability reversal opportunities. Unlike traditional indicators that require multiple overlays, this system integrates predictive ATR-based ranges, complete Renko chart visualization, Break of Structure (BOS) detection, multi-timeframe trend analysis, and automated backtesting into a single, intelligent tool.
Whether you're a beginner seeking clear buy/sell signals with visual TP/SL levels, or an experienced trader wanting granular control over Renko trends, breakout strategies, and confluence filters, this indicator adapts to your needs. The predictive ranges automatically calculate dynamic support (S1, S2) and resistance (R1, R2) zones that adjust to market volatility, while the integrated Renko system provides noise-filtered trend analysis with customizable brick sizing (Traditional or ATR-based). The smart touch management system prevents signal spam with three re-arm modes (Zone-Change, Leave-Return, Time), ensuring you only get quality setups.
With automated TP/SL calculations, real-time backtesting stats (win rate, profit factor, skipped signals), multi-timeframe trend dashboard, volume filters, EMA trend alignment, and intelligent same-bar fill resolution, Predictive Ranges replaces 5+ separate indicators while providing institutional-grade risk management and performance tracking.

✨ Key Features
🎯 Dynamic Predictive Ranges

ATR-based support/resistance zones that adapt to volatility
5 levels: R2, R1, Mid, S1, S2 (2 upper zones, 2 lower zones)
Multi-timeframe calculation (apply on any timeframe)
Visual "+" markers when new ranges form
Automatic zone updates without repainting

📊 Complete Renko Chart System

Dual Modes: Traditional (fixed brick) or ATR-based (adaptive)
Visual Styles: Candle, Area, or Hidden (data-only)
6 Color Themes: Green/Red, Blue/Red, Yellow/Blue, Lime/Red, Orange/Blue, White/Yellow
Renko Breakout Strategy: Automatic detection of breakout trends with customizable length
Main Trend Indicator: EMA-based Renko trend with threshold zones and reversal logic
Optional Candle Coloring: Color your regular candles based on Renko trend
Entry Filter: Use Renko trend direction to filter signals (only buy when Renko bullish, sell when bearish)

🧱 Break of Structure (BOS)

Automatic swing high/low detection
Bullish and bearish BOS identification
Optional "close beyond swing" requirement for confirmation
Time-based BOS filter (require BOS within N bars for signals)
Prevents duplicate BOS on same swing

🔄 Intelligent Touch Management (Anti-Spam)

3 Re-arm Modes:

Zone-Change: Re-arm when range values change
Leave-Return: Re-arm when price leaves and returns to zone
Time-Based: Re-arm after specified number of bars


Cooldown period between touches (minimum bars)
Leave buffer using ATR multiplier for precise zone exit detection

📈 Multi-Timeframe Trend Dashboard

Monitors 7 timeframes simultaneously (Monthly, Weekly, Daily, 4H, 2H, 1H, 30M)
5 MA types supported (SMA, EMA, WMA, RMA, HMA)
Real-time trend arrows (▲ Bullish, ▼ Bearish, → Neutral)
Color-coded for instant visual clarity
Non-repainting higher timeframe analysis

🎯 Advanced TP/SL System

ATR-based stop loss and 3 take profit targets
Customizable risk-to-reward ratio (1-10x)
Visual labels showing Entry, SL, TP1, TP2, TP3 with prices
Slippage Buffer: Conservative buffer for realistic fill simulation
Precision decimal formatting (up to 8 decimals)

📊 Real-Time Backtesting Dashboard

Live performance metrics: Wins, Losses, Total Trades
Win Rate % and Profit Factor calculations
Skipped Signals: Track signals missed due to already being in trade
Uncertain Fills: Track borderline TP hits for transparency
Renko Trend Indicator: Current Renko trend direction in dashboard
Relative Volume: Real-time volume multiple vs average
Customizable position (6 locations) and theme (Dark/Light)
Adjustable opacity for chart clarity

🔍 Smart Signal Filters

3 EMA Filter: Optional trend alignment (50, 100, 200 default)
Volume Filter: Relative volume with directional confirmation option
BOS Filter: Require recent Break of Structure for entries
Renko Filter: Align entries with Renko trend direction
Show Options: Both, Buy only, or Sell only signals

⚡ Intelligent Fill Logic

Smart Same-Bar Resolution: Uses candle direction to determine which level hit first
3 Priority Modes: Smart, Stop-first, or TP-first
Prevents stuck trades with validity checks
Tracks invalid level skips (early bars before ATR ready)

🎨 Visual Clarity

Clean range zone fills with transparency
Optional Renko chart overlay (doesn't interfere with price action)
Threshold zones showing Renko trend strength
Small triangle signals at entry points
Customizable label positioning and decimals

🔔 Comprehensive Alert System

Buy/Sell signal alerts (filtered touches)
BOS Up/Down alerts
Renko Main Trend change alerts
Renko Breakout Up/Down alerts
Customizable alert messages
All alerts available through TradingView alert dialog


🎯 Best For

Mean reversion traders using dynamic support/resistance
Renko enthusiasts wanting integrated Renko analysis on regular charts
Swing traders seeking confluence between ranges, structure, and trend
Scalpers using volume and Renko filters for precise entries
Anyone wanting to combine multiple strategies in one clean system


⚙️ Recommended Settings

Range Factor: 6.0 for volatile markets, 4.0-5.0 for stable markets
Renko Mode: ATR for adaptive analysis, Traditional for fixed brick size
Re-arm Mode: Leave-Return for active markets, Zone-Change for swing trading
BOS Filter: 10-20 bars for swing trades, 0 (off) for more signals
Volume Multiplier: 1.2-1.5x for quality confirmation
TP Targets: TP1 (0.7), TP2 (1.2), TP3 (1.5) for balanced R:R


📝 Notes

Works on all timeframes and markets (Forex, Stocks, Crypto, Indices)
Renko calculations are real-time and don't repaint
Backtesting uses conservative fill assumptions (slippage buffer available)
Dashboard stats track actual performance including edge cases
Multi-timeframe analysis uses non-repainting security calls
Compatible with TradingView's strategy tester for validation


🔧 Unique Technical Features

Smart Touch Detection: Prevents signal spam with intelligent re-arming
Dual Renko Systems: Both breakout and main trend strategies available
Transparent Backtesting: Tracks skipped signals and uncertain fills for honesty
Same-Bar Intelligence: Resolves TP/SL conflicts using candle direction logic
Renko Integration: Full Renko analysis without switching to Renko chart type


🚀 Master mean reversion and trend following in one system—predictive zones meet Renko precision with institutional-grade risk management.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。