ATR levels from the previous close: trigger lines, Golden Gate 38.2% and 61.8% levels, full ATR range, extensions, signals and dashboard.
Overview
This community script plots ATR-based levels around the previous period's close. It draws the previous close, call and put triggers, the 38.2% Golden Gate level, 50%, the 61.8% gate target, 78.6% and the full plus or minus one ATR range, with optional extensions beyond it.
It can also show previous period and premarket highs and lows, a 10-minute EMA8, entry and exit labels, Golden Gate candle colors, shaded trigger and gate areas, a dashboard, an info table and a legend.
How it works
The levels use ATR(14) from the period you choose (day trading by default) measured from the previous close. The trigger sits 0.236 of an ATR from the close by default.
Signals mark a confirmed close through the trigger (enter), a close back through it (exit), the gate opening at 38.2% and completing at 61.8%, pullbacks to the trigger or EMA8, and a first-hour reclaim of the previous close. Entries per direction, cooldown and buffers are adjustable.
One mode adds statistics researched on SPY/SPX on the 3-minute chart during regular hours; a universal mode keeps the same levels on any market and hides the statistics.
How to use it
- Use the levels as a daily map of how far price has moved relative to its average range.
- Some traders watch the 38.2% to 61.8% zone after price crosses a trigger.
- Use the dashboard to see distance to the next level.
- Switch to universal mode on other markets so the SPY-only statistics stay hidden.
These are ways some traders read it, for learning. They are not trade signals.
Settings
| Setting | Default |
|---|---|
| ModeOptions: P_MILK, P_UNIV, P_CUST | P_MILK |
| ② Levels | |
| Level PeriodOptions: day_trading, multiday_trading, swing_trading, position_trading, longterm_trading | day_trading |
| ATR Length | 14 |
| Trigger (share of ATR) | 0.236 |
| PDC / ATR SessionOptions: Regular (RTH), Extended | Regular (RTH) |
| Use the Forming Period Close (Saty "Use Current Close") | Off |
| ③ Signal Rules (Custom mode only) | |
| Signals Fire OnOptions: Strict 3m (Milkman), Any chart timeframe | Strict 3m (Milkman) |
| Signals Active DuringOptions: Regular hours only, Premarket + regular hours, Every bar (24h markets) | Regular hours only |
| Trigger Entries Per Direction Per Session | 1 |
| Re-arm Cooldown After an Exit (bars) | 3 |
Show all 85 settings
| Setting | Default |
|---|---|
| Entry Buffer Beyond Trigger (% of ATR) | 0.0 |
| Debounce Pullback Entries to First Touch | On |
| Gap-Safe Cross Detection | On |
| Hide Statistics Outside SPY/SPX · 3m · Day · RTH | On |
| ④ Display | |
| Simple Mode (essential levels only) | Off |
| Colour PaletteOptions: Default (gold / green / red), Colour-blind safe (Okabe-Ito) | Default (gold / green / red) |
| DashboardOptions: Full, Compact, Off | Full |
| Dashboard PositionOptions: Top Left, Top Right, Bottom Left, Bottom Right | Top Right |
| Dashboard Text SizeOptions: Small, Normal, Large | Small |
| Dashboard: Mode Row (Full only) | On |
| Dashboard: Distance-to-Level Row (Full only) | On |
| Dashboard: Status Row | On |
| Show Legend / Cheat Sheet | Off |
| Legend PositionOptions: Top Left, Top Right, Bottom Left, Bottom Right | Bottom Left |
| Show Range/ATR Info Table | On |
| Info Table PositionOptions: Top Right, Bottom Left, Bottom Right | Bottom Right |
| Info Table SizeOptions: Small, Normal, Large | Small |
| Use Calls/Puts Instead of Long/Short | On |
| ⑤ Chart Markers | |
| ENTER -- confirmed close through the trigger | On |
| EXIT -- confirmed close back through it | On |
| GG -- Golden Gate opens at 38.2% | On |
| T-PB -- pullback to the trigger (best EV) | On |
| EMA8 -- pullback to the 10-minute EMA8 | Off |
| PDC -- first-hour reclaim of the previous close | On |
| Colour the Golden Gate candle | On |
| Which Bars to ColourOptions: Entry bar only, Every bar inside the Gate | Entry bar only |
| Bull Gate Candle | color.rgb(255, 200, 40) |
| Bear Gate Candle | color.rgb(255, 160, 30) |
| ⑥ Levels: Colours & Visibility | |
| Show 50% and 78.6% | On |
| Show Extensions Beyond ±1 ATR | Off |
| Level Line Thickness | 2 |
| Previous Close | color.white |
| Put Trigger | color.rgb(247, 15, 15) |
| Call Trigger | color.rgb(63, 231, 21) |
| 38.2% (Gate opens) | color.rgb(255, 200, 50) |
| 50.0% (negative EV midpoint) | color.rgb(220, 100, 30) |
| 61.8% (Gate target) | color.rgb(255, 215, 0) |
| 78.6% (extension) | color.rgb(255, 140, 0) |
| ±1 ATR (full range) | color.white |
| Extensions | color.new(color.orange, 0) |
| ⑦ Session Levels | |
| Show Previous Period High / Low | On |
| Show Premarket High / Low | On |
| Show Their Labels | On |
| Previous High | color.rgb(0, 200, 220) |
| Previous Low | color.rgb(220, 80, 200) |
| Premarket High | color.rgb(70, 130, 255) |
| Premarket Low | color.rgb(170, 90, 255) |
| Line Thickness | 1 |
| Premarket Window | 0400-0930 |
| Regular Session Window | 0930-1600 |
| ⑧ 10-minute EMA8 | |
| Show 10-minute EMA8 | On |
| SourceOptions: Confirmed (matches signals), Live (tracks price, repaints) | Confirmed (matches signals) |
| Colour | color.rgb(120, 200, 255) |
| Thickness | 2 |
| Show Price Label | On |
| ⑨ Labels & Shading | |
| Level Label DetailOptions: Detailed, Summary, Off | Summary |
| Label Background | color.new(color.rgb(15, 15, 25), 80) |
| Label Text | color.white |
| Level Label SizeOptions: Tiny, Small, Normal | Small |
| Price Tag SizeOptions: Tiny, Small, Normal | Small |
| Show Price Tags on Levels | On |
| Show TARGET & STOP Tags | On |
| TARGET & STOP SizeOptions: Tiny, Small, Normal, Large, Huge | Tiny |
| Label Offset (bars right of price) | 6 |
| Shade the Trigger Box | Off |
| Shade the Golden Gate | Off |
| Trigger Box Shade | color.new(color.yellow, 88) |
| Gate Shade (bull) | color.new(color.green, 65) |
| Gate Shade (bear) | color.new(color.red, 65) |
| ⑩ Trend & Runner | |
| Fast EMA (info table trend colour only) | 8 |
| Pivot EMA | 21 |
| Slow EMA | 34 |
| Runner TargetOptions: 1.0 ATR (Classic), 1.236 ATR, 1.618 ATR (Golden Ratio), 2.0 ATR, 2.618 ATR, 3.0 ATR | 1.0 ATR (Classic) |
| ⑪ Alerts | |
| Enable Long Trigger Alert | On |
| Enable Short Trigger Alert | On |
Alerts
Members can create an alert on its conditions (for example "ENTER Long (trigger)", "EXIT Long", "Gate Open Long (38.2%)", "PDC Reclaim Bull") from the chart's alert dialog; alerts from indicators run while ZoroCharts is open in the browser.
Notes and limits
- The statistics are only shown for SPY/SPX on the 3-minute chart during regular hours.
- Levels reset each period based on the session setting.
- It draws many labels; Simple Mode keeps only the main levels.
Education only. Not financial advice. Indicators mark what happened on the chart; they do not predict what price will do. Trading futures, forex, crypto and other markets carries a high level of risk and may not be suitable for everyone.
