OPEN-SOURCE SCRIPT
PumpC ATR Line Levels

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
Features
Use Cases
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
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.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
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 de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
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.