OPEN-SOURCE SCRIPT
Aggiornato

Breakout Targets [AlgoAlpha]

1 665
🟠OVERVIEW
This script identifies consolidation zones and provides automated breakout targets with risk management levels. It focuses on finding periods where price action compresses and then tracks the subsequent breakout from these ranges. When a price breakout is confirmed, the script automatically projects three take-profit (TP) levels and a stop-loss (SL) based on current market volatility. This helps traders move from identifying a range to executing a trade with predefined exit points without manual calculation.

🟠CONCEPTS
The script uses a relationship between Weighted Moving Averages (WMA) and Exponential Moving Averages (EMA) of price ranges to detect consolidation. When these moving averages cross, it triggers the detection of recent pivot highs and lows to draw a visual "box" or channel. This channel represents the current trading range. Once price closes outside this box, the script uses the Average True Range (ATR) to determine the volatility-adjusted distance for the stop loss. The take-profit levels are then calculated as multiples of this risk distance, ensuring a consistent reward-to-risk approach.

🟠FEATURES
  • Dynamic box drawing that highlights potential supply and demand zones within the range.
    istantanea
  • Real-time breakout signals with bullish (green) and bearish (red) markers.
    istantanea
  • Automated trade projection including Entry, SL, and three TP levels.
    istantanea
  • Integrated alert system for breakouts and hits on any profit or loss target.
    istantanea


🟠USAGE
  1. Setup: Add the script to your chart and adjust the "Range Detection Period." A higher period will find larger, more significant ranges, while a lower period will find smaller, short-term consolidation zones.
  2. Read the chart: Look for the grey boxes on your chart; these represent areas where the market is "coiling." A green arrow label indicates a bullish breakout from the top of the box, while a red arrow indicates a bearish breakout from the bottom. Once a breakout occurs, follow the projected horizontal levels for your trade management.
  3. Settings that matter: The Stop Loss ATR Multiplier is the most critical setting for risk; increasing it will give the trade more room to breathe but will also push your TP levels further away. The Prevent Overlap toggle is useful for keeping the chart clean by ensuring the script doesn't draw new boxes until the current range has been resolved.
Note di rilascio
Thumbnail

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.