Indicator · Pine Script v5 · On the chart

ATR Levels + CALL/PUT

by g-moe· code credited to goodgains

This overlay indicator plots ATR-based horizontal levels around the previous close of a selected higher timeframe.

View on GitHub

Repaints

GitHub stars3on the repository
Pine versionv5runs as is
Lines of code198
Settings18inputs
LicenceNone stated
Last update5 months ago27 May 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

A trading-type input maps day, multiday, swing, position, and long-term modes to daily through yearly periods. It draws trigger bands from a percentage of ATR, optional Fibonacci multiples, and extensions, and can label directional bias as CALL or PUT. Fast, pivot, and slow EMAs define a stacked bullish or bearish trend. An info label and level colors are optional. It requests higher-timeframe data with lookahead enabled, so levels can use unfinished period values.

Details

Published by

g-moe on GitHub

Code credit

goodgains, as written in the script's header

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Volatility & bands, Support & resistance, Moving averages, Breakout

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)
  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Trading Typestringday_tradingtrading_type
Use Options Labelsbooltrueuse_options_labels
ATR Lengthint14atr_length
Trigger Percentagefloat0.236trigger_percentage
Previous Close Level Colorcolorcolor.whiteprevious_close_level_color
Lower Trigger Level Colorcolorcolor.yellowlower_trigger_level_color
Upper Trigger Level Colorcolorcolor.aquaupper_trigger_level_color
Key Target Level Colorcolorcolor.silverkey_target_level_color
ATR Target Level Colorcolorcolor.whiteatr_target_level_color
Intermediate Target Level Colorcolorcolor.grayintermediate_target_level_color
Show All Fibonacci Levelsboolfalseshow_all_fibonacci_levels
Show Extensionsbooltrueshow_extensions
Show all 18 settings
SettingTypeDefaultVariable
Level Sizeint2level_size
Show Info Labelbooltrueshow_info
Use Current Closeboolfalseuse_current_close
Fast EMAint8fast_ema
Pivot EMAint21pivot_ema
Slow EMAint34slow_ema
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Dereköy-Darvas

by Kalumur
4 stars

The Dereköy-Darvas indicator combines Darvas Box boundary levels with dual Bollinger Bands plotted directly on the main price chart. It calculates top and bottom box lines based on recent high and low extremes to outline price consolidation zones. Simultaneous

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Dereköy-Darvas

Snag - VWAP

by dearvn
257 stars

This indicator plots a custom Anchored Volume-Weighted Average Price (VWAP) directly on the price chart along with optional standard deviation bands. Users can anchor the VWAP to standard time periods like sessions, weeks, or months, or to corporate events suc

Indicator v5 Moving averagesVolatility & bands Repaints
Updated 6 weeks ago · None stated GitHub repository of Snag - VWAP

Acceleration Bands

by capissimo
114 stars

Acceleration Bands is an overlay indicator that plots a volatility envelope around a central simple moving average. It calculates upper and lower boundary bands scaled by the high-to-low bar range relative to the midpoint price, smoothed by an SMA over a user-

Indicator v4 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Acceleration Bands

Donchian Channels (DC)

by mihakralj
99 stars

This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Donchian Channels (DC)

Moon Dev GEX Walls & Trap

by moondevonyt
92 stars

This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Walls & Trap

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers