OPEN-SOURCE SCRIPT

Bassi's Consolidation Breakout — ULTIMATE PRO + VP

161
Overview

Bassi’s Consolidation Breakout — ULTIMATE PRO + VP is a professional-grade breakout detection system that combines price structure, volume confirmation, volatility compression, and custom volume profile logic.

The indicator automatically detects compressed consolidation zones, confirms breakouts with multi-layer filters, and plots full trade setups including:
Entry level
Stop-loss
TP1, TP2, TP3 (R:R based)
Trend filters + MTF EMA
Retest validation
Volume Profile confirmation (POC / VAH / VAL)

This is one of the most complete breakout frameworks for TradingView.
🔍 Core Concept
The script detects tight consolidation boxes based on:
Price range (% compression)
Lookback period
Minimum required bars
Breakout above/below the box
Once the consolidation ends, breakout signals fire only if they pass all filters.
This focuses your trading on high-probability breakouts only.

🔥 Key Features
1️⃣ Automated Consolidation Box Detection
Draws consolidation boxes dynamically
Identifies tight range compression
Supports advanced range logic for high accuracy

2️⃣ Smart Breakout + Retest Engine
Breakouts and breakdowns require:
Structure break
Minimum breakout expansion (0.15%)
Volume confirmation
Trend (200 EMA) confirmation
Optional retest validation
Optional Volume Profile filter
Each valid breakout prints a signal + full trade setup.

3️⃣ Custom Volume Profile Engine
Fast and lightweight custom-built VP that calculates:
POC (Point of Control)
VAH (Value Area High)
VAL (Value Area Low)
These levels can optionally be used to filter weak breakouts.

4️⃣ Multi-Timeframe Trend Filter
Uses 200 EMA from any selected higher timeframe
Helps avoid counter-trend fakeouts
Fully optional

5️⃣ Automatic Trade Setup Projection
Each breakout generates:
Stop-loss (ATR × multiplier)
TP1 (R:R)
TP2 (R:R)
TP3 (optional)
Clean signal labels
Only keeps the last 2 signals to maintain clarity

6️⃣ Alerts Included
Alerts fire instantly when a valid breakout occurs:
“Bassi LONG + VP”
“Bassi SHORT + VP”
Alerts include ticker + entry price.

📘 Usage Guide & Trading Rules
✔ Recommended Trading Steps
1. Wait for a confirmed consolidation box
Box must be narrow
Must meet minimum bar requirement

2. Wait for a confirmed breakout signal
Signal requires:
Breakout above/below box
Volume confirmation
Trend & MTF confirmation if enabled
Optional retest
Optional VP filter (close outside VAH/VAL)

3. Follow the projected setup
The script prints:
Entry
SL
TP1 / TP2 / TP3
Target lines extend automatically.

📖 How to Use the Script (Trading Rules)
1️⃣ Long Entry Rules
Enter Long when:
Price breaks above trend confirmation level
Momentum signal turns bullish
Candle closes above trigger line
Volatility filter is satisfied
Exit Long:
TP1/TP2/TP3 levels
Reversal signal
Trailing stop hit

2️⃣ Short Entry Rules
Enter Short when:
Price breaks below trend confirmation level
Momentum signal turns bearish
Candle closes below trigger line
Volatility filter is satisfied
Exit Short:
TP1/TP2/TP3 levels
Trend reversal

Trailing stop hit
✔ Recommended Markets
Crypto
Forex
Indices
Futures
Stocks
Works on all timeframes from 1-minute to daily.

✔ Best Practice
Avoid taking signals against HTF trend
Prefer signals that break away from VAH/VAL
Use TP1 to secure partial profits
Move SL to breakeven after TP1 if desired
Always follow personal risk management


👤 Author

Created by: Mahdi Bassi
Professional trader & systems designer
Focused on structural, volume-based and volatility-based strategies.

⚠️ Disclaimer

This script is for educational purposes only.
No indicator can guarantee profits.
Always use proper risk management and trade responsibly.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.