PROTECTED SOURCE SCRIPT
Atualizado Breakout Indicator + OB & FVG

📈 Breakout Indicator + OB & FVG
This script is designed to assist with identifying potential breakout zones following periods of low volatility or price consolidation. It integrates price structure analysis with optional lunar phase filtering for enhanced visual insights.
🔍 Key Features
Consolidation Detection: Automatically identifies price ranges with low volatility over a user-defined lookback period.
Breakout Signals: Highlights potential breakout zones when price moves beyond consolidation range highs or lows.
Take-Profit & Stop-Loss Levels: Automatically calculates three TP levels and one SL level based on user-defined multipliers.
Lunar Filter (Optional): Applies a visual overlay during full moon phases as a unique experimental timing filter.
Visual Elements:
Entry/TP/SL levels shown on chart with colored lines and labels.
Consolidation zones shaded with customizable colors.
Dynamic panel with volatility metrics and last signal info.
⚙️ Inputs & Customization
Adjustable lookback period, volatility threshold, and risk multipliers.
Optional lunar phase aggression multiplier.
Full customization of zone colors, label visibility, and transparency.
📌 Disclaimer
This indicator is a visual tool for analysis and does not provide financial advice or guaranteed outcomes. Its purpose is to support discretionary decision-making, not replace it. Past signals do not guarantee future performance. Always test tools thoroughly and use appropriate risk management.
🧠 Developer Notes
Based on simple volatility and price action mechanics.
The lunar filter is symbolic and not based on real astronomical data.
No repainting or future leaks; signals are generated based on confirmed candle closes.
This script is designed to assist with identifying potential breakout zones following periods of low volatility or price consolidation. It integrates price structure analysis with optional lunar phase filtering for enhanced visual insights.
🔍 Key Features
Consolidation Detection: Automatically identifies price ranges with low volatility over a user-defined lookback period.
Breakout Signals: Highlights potential breakout zones when price moves beyond consolidation range highs or lows.
Take-Profit & Stop-Loss Levels: Automatically calculates three TP levels and one SL level based on user-defined multipliers.
Lunar Filter (Optional): Applies a visual overlay during full moon phases as a unique experimental timing filter.
Visual Elements:
Entry/TP/SL levels shown on chart with colored lines and labels.
Consolidation zones shaded with customizable colors.
Dynamic panel with volatility metrics and last signal info.
⚙️ Inputs & Customization
Adjustable lookback period, volatility threshold, and risk multipliers.
Optional lunar phase aggression multiplier.
Full customization of zone colors, label visibility, and transparency.
📌 Disclaimer
This indicator is a visual tool for analysis and does not provide financial advice or guaranteed outcomes. Its purpose is to support discretionary decision-making, not replace it. Past signals do not guarantee future performance. Always test tools thoroughly and use appropriate risk management.
🧠 Developer Notes
Based on simple volatility and price action mechanics.
The lunar filter is symbolic and not based on real astronomical data.
No repainting or future leaks; signals are generated based on confirmed candle closes.
Notas de Lançamento
# 📊 Enhanced Breakout Indicator with Order Block & FVG Analysis## 🎯 Overview
This Pine Script indicator identifies high-probability breakout opportunities by detecting consolidation patterns and confirming breakouts with multiple filters. It combines traditional breakout analysis with modern order block theory and Fair Value Gap (FVG) detection to provide comprehensive market structure insights.
## 🔧 Key Features
### ✅ Smart Consolidation Detection
- **Volatility-based identification** of ranging markets using customizable threshold
- **Dynamic consolidation boxes** with visual representation
- **Real-time status tracking** (Consolidating/Ready/Waiting states)
### ✅ Advanced Breakout Confirmation
- **Multiple confirmation filters** to reduce false signals:
- Minimum bars between signals
- Optional confirmation close requirements
- Configurable breakout buffer percentage
- **State management** prevents duplicate signals from same consolidation
### ✅ Professional Risk Management
- **Automatic TP/SL calculation** based on consolidation range
- **Multiple take-profit levels** (TP1, TP2, TP3) with customizable multipliers
- **Risk-reward ratio display** for trade evaluation
- **Visual trade setup** with clear entry and exit levels
### ✅ Market Structure Analysis
- **Order Block detection** highlighting institutional interest zones
- **Fair Value Gap (FVG) identification** for liquidity analysis
- **Real-time market structure** assessment
### ✅ Enhanced User Experience
- **Clean visual presentation** showing only current signal levels
- **Comprehensive metrics panel** with trade details
- **Customizable styling** (colors, transparency, line widths)
- **Professional alerts** with detailed trade information
## ⚙️ Configuration Options
### 📈 Detection Parameters
- **Lookback Period**: Number of bars for consolidation analysis (Default: 20)
- **Volatility Threshold**: Percentage threshold for range detection (Default: 0.5%)
- **Breakout Buffer**: Additional percentage above/below consolidation levels (Default: 0.1%)
### 🎯 Risk Management
- **TP Multipliers**: Customizable target levels (1.0x, 1.5x, 2.0x)
- **SL Multiplier**: Stop-loss distance multiplier (Default: 1.0x)
- **Risk per Trade**: Position sizing reference (Default: 1.0%)
### 🔧 Signal Filtering
- **Minimum Bars Between Signals**: Prevents overtrading (Default: 10 bars)
- **Confirmation Close**: Requires multiple closes beyond breakout level
- **Lunar Phase Filter**: Optional market timing enhancement
### 🎨 Visual Customization
- **Zone Colors**: Bullish/Bearish consolidation box styling
- **Transparency Settings**: Adjustable opacity for all visual elements
- **Border Styling**: Customizable width and colors
## 📋 How to Use
### 1️⃣ Setup
- Add the indicator to your chart
- Configure parameters based on your trading style and timeframe
- Set up alerts for breakout notifications
### 2️⃣ Signal Identification
- Monitor the status panel for "Consolidating" periods
- Wait for "Ready" status indicating completed consolidation
- Look for breakout arrows (▲ for long, ▼ for short)
### 3️⃣ Trade Execution
- **Entry**: Price shown in metrics panel and orange line
- **Stop-Loss**: Red dashed line with calculated level
- **Targets**: Green lines for TP1, TP2, TP3 levels
- **Risk-Reward**: Automatically calculated ratio
### 4️⃣ Market Structure Confirmation
- Use Order Blocks for additional confluence
- Monitor FVG signals for liquidity insights
- Combine with your existing trading strategy
## ⚠️ Important Disclaimers
### 📊 Educational Purpose
This indicator is designed for **educational and analytical purposes**. It provides technical analysis tools to help identify potential trading opportunities based on price action and market structure.
### 🚫 Not Financial Advice
- This tool does **NOT constitute financial advice**
- Past performance does not guarantee future results
- All trading involves risk of loss
- Users should conduct their own research and risk assessment
### 💡 Risk Management Essential
- Always use proper position sizing
- Never risk more than you can afford to lose
- Consider market conditions and fundamental factors
- Practice on demo accounts before live trading
### 🎓 Skill Development Tool
This indicator is best used as:
- A learning tool for understanding breakout patterns
- A systematic approach to market structure analysis
- A framework for developing trading discipline
- A complement to comprehensive trading education
## 🔄 Version History
- **v1.0**: Initial release with basic breakout detection
- **v2.0**: Added Order Block and FVG analysis
- **v3.0**: Enhanced signal filtering and risk management
- **Current**: Professional-grade indicator with advanced feature
Script protegido
Esse script é publicada como código fechado. No entanto, você pode usar ele livremente e sem nenhuma limitação – saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode usar ele livremente e sem nenhuma limitação – saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.