PROTECTED SOURCE SCRIPT
已更新

Magnetick Prior Levels [MagnetickAI]

54
Magnetick Prior Levels draws subtle reference lines for the key levels that intraday traders watch on 1-minute charts: prior day high/low/close, premarket range, the RTH opening print, and optionally prior week levels. When a level gets "taken out" (price closes beyond it), the line switches from solid to dotted so you can instantly see what's been tested vs. untouched.

It also includes a Multi-Day H/L Stack that shows highs and lows from up to 10 prior sessions — but only the ones that have NEVER been taken out. An untouched -3 day high that has survived two full sessions of price action is a stronger reference than one that was already breached and reclaimed.


THE 9 PRIMARY LEVELS

- Prior Day High (PDH) — soft green line
- Prior Day Low (PDL) — soft red line
- Prior Day Close (PDC) — gray line, the gap-fill magnet
- Prior Day Mid — gray line with 30% transparency, the equilibrium of yesterday's range
- Premarket High (PMH) — purple line (requires extended hours data)
- Premarket Low (PML) — purple line (requires extended hours data)
- RTH Opening Print — blue line, today's 9:30 ET opening tick
- Prior Week High (PWH) — light gray, off by default
- Prior Week Low (PWL) — light gray, off by default


MULTI-DAY H/L STACK

Shows highs and lows from -1 to -N prior sessions (configurable, default 5 days). Only levels that have never been taken out in any subsequent session are drawn. Once price closes beyond a historical level during any session, that level is permanently hidden.

- Highs in soft green, lows in soft red (same palette as PDH/PDL)
- Older levels are progressively more transparent
- Dashed line style to visually distinguish from primary levels
- Labels show day offset: "-1D H", "-2D L", etc.

The logic: if -4 day's high has survived 3 full sessions without being breached, it's likely a meaningful resistance level. If it was taken out 2 days ago, you don't need to see it.


"TAKEN OUT" BEHAVIOR

Primary levels (PDH, PDL, PDC, etc.) track whether price has closed on the opposite side from where the session opened. Once taken out:
- The line style changes from solid to dotted
- The color fades (extra transparency added)
- The change is permanent for the rest of the session

Multi-Day levels use a stricter rule: if a level was taken out at ANY point since it was established (across any session), it's hidden entirely rather than shown as dotted.

The Opening Print is exempt — it's today's reference point, not a prior level to be "broken."


HOW TO USE IT

These levels are context, not signals. They're designed to sit quietly behind your hand-drawn levels and other indicators without competing for attention. All lines are width 1 and there are no background fills or proximity highlights.

When your setup lines up near an untouched (solid) level — PDH, PMH, or PDC — that's useful confirmation. When a level has already been taken out (dotted), it's still worth watching for a retest, but it carries less weight.

The Multi-Day stack helps you spot levels that have survived multiple sessions. If you see a cluster of untouched -2D, -3D, and -4D highs near the same price, that's a significant resistance zone that multiple sessions failed to break.


SETTINGS

- Toggle each of the 9 primary levels independently
- Multi-Day H/L Stack: on/off toggle + configurable number of days (1-10)
- Configurable session times (default: 9:30-16:00 ET market, 4:00-9:30 premarket)
- Timezone selection (ET, CT, PT, UTC)
- Label offset (how far right of current bar to place labels)
- Taken-out transparency (how much to fade breached primary levels)


ALERTS

- Individual alerts when each primary level is first taken out during the session
- "Any Level Taken Out" catch-all alert


LIMITATIONS

- Premarket levels require extended hours data enabled on your chart
- Only draws on the current trading day — no historical levels shown
- Multi-Day levels need enough chart history to populate (N+1 trading days)
- Prior Week levels use request.security() on the weekly timeframe
- If price opens exactly at a level (extremely rare), that level won't trigger a taken-out state
- Best suited for 1-minute charts; Opening Print precision decreases on higher timeframes
- Multi-Day -1D levels are automatically hidden when PDH/PDL are enabled (they're identical values)


Built by MagnetickAI — open source tools for active traders.
發行說明
Magnetick Prior Levels draws subtle reference lines for the key levels that intraday traders watch on 1-minute charts: prior day high/low/close, premarket range, the RTH opening print, and optionally prior week levels. When a level gets "taken out" (price closes beyond it), the line switches from solid to dotted so you can instantly see what's been tested vs. untouched.

It also includes a Multi-Day H/L Stack that shows highs and lows from up to 10 prior sessions — but only the ones that have NEVER been taken out. An untouched -3 day high that has survived two full sessions of price action is a stronger reference than one that was already breached and reclaimed.


THE 9 PRIMARY LEVELS

- Prior Day High (PDH) — soft green line
- Prior Day Low (PDL) — soft red line
- Prior Day Close (PDC) — gray line, the gap-fill magnet
- Prior Day Mid — gray line with 30% transparency, the equilibrium of yesterday's range
- Premarket High (PMH) — purple line (requires extended hours data)
- Premarket Low (PML) — purple line (requires extended hours data)
- RTH Opening Print — blue line, today's 9:30 ET opening tick
- Prior Week High (PWH) — light gray, off by default
- Prior Week Low (PWL) — light gray, off by default


MULTI-DAY H/L STACK

Shows highs and lows from -1 to -N prior sessions (configurable, default 5 days). Only levels that have never been taken out in any subsequent session are drawn. Once price closes beyond a historical level during any session, that level is permanently hidden.

- Highs in soft green, lows in soft red (same palette as PDH/PDL)
- Older levels are progressively more transparent
- Dashed line style to visually distinguish from primary levels
- Labels show day offset: "-1D H", "-2D L", etc.

The logic: if -4 day's high has survived 3 full sessions without being breached, it's likely a meaningful resistance level. If it was taken out 2 days ago, you don't need to see it.


"TAKEN OUT" BEHAVIOR

Primary levels (PDH, PDL, PDC, etc.) track whether price has closed on the opposite side from where the session opened. Once taken out:
- The line style changes from solid to dotted
- The color fades (extra transparency added)
- The change is permanent for the rest of the session

Multi-Day levels use a stricter rule: if a level was taken out at ANY point since it was established (across any session), it's hidden entirely rather than shown as dotted.

The Opening Print is exempt — it's today's reference point, not a prior level to be "broken."


HOW TO USE IT

These levels are context, not signals. They're designed to sit quietly behind your hand-drawn levels and other indicators without competing for attention. All lines are width 1 and there are no background fills or proximity highlights.

When your setup lines up near an untouched (solid) level — PDH, PMH, or PDC — that's useful confirmation. When a level has already been taken out (dotted), it's still worth watching for a retest, but it carries less weight.

The Multi-Day stack helps you spot levels that have survived multiple sessions. If you see a cluster of untouched -2D, -3D, and -4D highs near the same price, that's a significant resistance zone that multiple sessions failed to break.


SETTINGS

- Toggle each of the 9 primary levels independently
- Multi-Day H/L Stack: on/off toggle + configurable number of days (1-10)
- Configurable session times (default: 9:30-16:00 ET market, 4:00-9:30 premarket)
- Timezone selection (ET, CT, PT, UTC)
- Taken-out transparency (how much to fade breached primary levels)


ALERTS

- Individual alerts when each primary level is first taken out during the session
- "Any Level Taken Out" catch-all alert


LIMITATIONS

- Premarket levels require extended hours data enabled on your chart
- Only draws on the current trading day — no historical levels shown
- Multi-Day levels need enough chart history to populate (N+1 trading days)
- Prior Week levels use request.security() on the weekly timeframe
- If price opens exactly at a level (extremely rare), that level won't trigger a taken-out state
- Best suited for 1-minute charts; Opening Print precision decreases on higher timeframes
- Multi-Day -1D levels are automatically hidden when PDH/PDL are enabled (they're identical values)


Built by MagnetickAI — open source tools for active traders.
發行說明
Magnetick Prior Levels draws subtle reference lines for the key levels that intraday traders watch on 1-minute charts: prior day high/low/close, premarket range, the RTH opening print, and optionally prior week levels. When a level gets "taken out" (price closes beyond it), the line switches from solid to dotted so you can instantly see what's been tested vs. untouched.

It also includes a Multi-Day H/L Stack that shows highs and lows from up to 10 prior sessions — but only the ones that have NEVER been taken out. An untouched -3 day high that has survived two full sessions of price action is a stronger reference than one that was already breached and reclaimed.


THE 9 PRIMARY LEVELS

- Prior Day High (PDH) — soft green line
- Prior Day Low (PDL) — soft red line
- Prior Day Close (PDC) — gray line, the gap-fill magnet
- Prior Day Mid — gray line with 30% transparency, the equilibrium of yesterday's range
- Premarket High (PMH) — purple line (requires extended hours data)
- Premarket Low (PML) — purple line (requires extended hours data)
- RTH Opening Print — blue line, today's 9:30 ET opening tick
- Prior Week High (PWH) — light gray, off by default
- Prior Week Low (PWL) — light gray, off by default


MULTI-DAY H/L STACK

Shows highs and lows from -1 to -N prior sessions (configurable, default 5 days). Only levels that have never been taken out in any subsequent session are drawn. Once price closes beyond a historical level during any session, that level is permanently hidden.

- Highs in soft green, lows in soft red (same palette as PDH/PDL)
- Older levels are progressively more transparent
- Dashed line style to visually distinguish from primary levels
- Labels show day offset: "-1D H", "-2D L", etc.

The logic: if -4 day's high has survived 3 full sessions without being breached, it's likely a meaningful resistance level. If it was taken out 2 days ago, you don't need to see it.


"TAKEN OUT" BEHAVIOR

Primary levels (PDH, PDL, PDC, etc.) track whether price has closed on the opposite side from where the session opened. Once taken out:
- The line style changes from solid to dotted
- The color fades (extra transparency added)
- The change is permanent for the rest of the session

Multi-Day levels use a stricter rule: if a level was taken out at ANY point since it was established (across any session), it's hidden entirely rather than shown as dotted.

The Opening Print is exempt — it's today's reference point, not a prior level to be "broken."


HOW TO USE IT

These levels are context, not signals. They're designed to sit quietly behind your hand-drawn levels and other indicators without competing for attention. All lines are width 1 and there are no background fills or proximity highlights.

When your setup lines up near an untouched (solid) level — PDH, PMH, or PDC — that's useful confirmation. When a level has already been taken out (dotted), it's still worth watching for a retest, but it carries less weight.

The Multi-Day stack helps you spot levels that have survived multiple sessions. If you see a cluster of untouched -2D, -3D, and -4D highs near the same price, that's a significant resistance zone that multiple sessions failed to break.


TIP: PRICE AXIS AUTO-SCALE

If double-clicking the price axis doesn't zoom as expected, right-click the price axis and enable "Scale price chart only." This is a TradingView platform behavior — any overlay indicator that draws lines at specific price levels will be included in the auto-scale range calculation. Enabling this setting tells TradingView to only consider the candle data when auto-scaling.


SETTINGS

- Toggle each of the 9 primary levels independently
- Multi-Day H/L Stack: on/off toggle + configurable number of days (1-10)
- Configurable session times (default: 9:30-16:00 ET market, 4:00-9:30 premarket)
- Timezone selection (ET, CT, PT, UTC)
- Label offset (how far right of current bar to place labels)
- Taken-out transparency (how much to fade breached primary levels)


ALERTS

- Individual alerts when each primary level is first taken out during the session
- "Any Level Taken Out" catch-all alert


LIMITATIONS

- Premarket levels require extended hours data enabled on your chart
- Only draws on the current trading day — no historical levels shown
- Multi-Day levels need enough chart history to populate (N+1 trading days)
- Prior Week levels use request.security() on the weekly timeframe
- If price opens exactly at a level (extremely rare), that level won't trigger a taken-out state
- Best suited for 1-minute charts; Opening Print precision decreases on higher timeframes
- Multi-Day -1D levels are automatically hidden when PDH/PDL are enabled (they're identical values)

NOTE: You may want to do "Scale price chart only" on the price axis to avoid this indicator squeezing the chart.

Built by MagnetickAI — open source tools for active traders.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。