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が提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。