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.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。