OPEN-SOURCE SCRIPT

Detecting Breakout Candles Using ATR Calculations

This script detects strong breakout candles by analyzing price movement and volume. It first calculates a moving average of volume and the Average True Range (ATR) to measure volatility. A candle is flagged as a breakout if its price movement exceeds a user-defined multiple of the ATR. The script also checks if the breakout is supported by unusually high volume. If a candle meets these conditions, it is colored lime for a bullish breakout or orange for a bearish breakout; otherwise, it remains silver. It then calculates target price levels by adding or subtracting a percentage of the candle's range and plots arrows at these levels to indicate potential breakout targets.

Aviso legal