OPEN-SOURCE SCRIPT

PumpC ATR Line Levels

243
PumpC ATR Line Levels

Overview
PumpC ATR Line Levels is a volatility-based indicator that projects potential expansion levels from the previous session’s close using the Average True Range (ATR). This tool builds upon the Previous OHLC framework created by Nephew_Sam_ by extending its session-handling logic and adding ATR-based levels, statistical tracking, and flexible visualization options.
How It Works
  • Calculates ATR from a user-selectable higher timeframe (default: Daily).
  • Projects levels above and below the previous session’s close (or current close when preview mode is enabled).
  • Supports up to 5 ATR multiples, each with independent toggles, colors, and labels.
  • Optionally displays only the most recent ATR session for clarity.
  • Includes a data table tracking how often ATR levels are reached or closed beyond.


Features
  • Configurable ATR timeframe and length (default: 21).
  • Default multiples: 0.30, 0.60, 0.90; optional: 1.236, 2.00.
  • Toggle for preview mode (using current close vs. locked prior session close).
  • Customizable line style, width, colors, and label placement.
  • Visibility filter to show only on chart TF ≤ 60 minutes.
  • Session statistics table with counts and percentages of level interactions.


Use Cases
  • Identify intraday expansion targets or stop placement zones based on volatility.
  • Evaluate historical tendencies of price respecting or breaking ATR bands.
  • Support volatility-adjusted trade planning with statistical validation.


Acknowledgment
This script was developed on top of the Previous OHLC indicator by Nephew_Sam_, with major modifications to implement ATR-driven levels, extended statistics, and customizable table output.

Notes
  • This indicator does not generate buy/sell signals.
  • Best applied to intraday charts anchored to a higher-timeframe ATR.
  • Keep charts clean and avoid non-standard bar types when publishing.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.