PROTECTED SOURCE SCRIPT
S&P Edge Levels - Trade Plan Companion

S&P Edge Levels
A fast, flexible level-plotting overlay for ES/S&P 500 traders. Paste a formatted string of price levels into the settings and the indicator instantly draws color-coded lines, labels, zones, and a compact dashboard — no manual drawing required. Built for traders who work from a daily trade plan and want their key levels on the chart in seconds.
How It Works
Open the indicator settings and paste your levels into the "Paste Levels Here" text input. Each level goes on its own line using a simple pipe-delimited format:
Pine Script®
The indicator parses the string, maps each code to a specific color and line style, and plots everything as an overlay directly on your price chart. Lines extend left from the current bar, color-coded labels appear to the right, and an optional dashboard in the corner gives you a clean summary of every active level.
Format Examples
Single level:
Pine Script®
Level with a note (appears as a tooltip on hover):
Pine Script®
Zone — draws two lines with a shaded fill between them:
Pine Script®
Timeframe Codes
Each timeframe has a preset color and line style so you can instantly distinguish Monthly from Daily from 4-Hour levels at a glance:
Custom Color Codes
Beyond timeframe codes, you have full control over color and style. Every color comes in three variants — solid, dashed, and dotted. Append D for dashed or DOT for dotted to any base code.
That gives you 42 unique color + style combinations to categorize any type of level — put walls, call walls, POC, value areas, custom levels, or anything else in your trading plan.
Features
Typical Workflow
No manual drawing. No dragging lines. No forgetting a level. Paste and go.
Important Notes
A fast, flexible level-plotting overlay for ES/S&P 500 traders. Paste a formatted string of price levels into the settings and the indicator instantly draws color-coded lines, labels, zones, and a compact dashboard — no manual drawing required. Built for traders who work from a daily trade plan and want their key levels on the chart in seconds.
How It Works
Open the indicator settings and paste your levels into the "Paste Levels Here" text input. Each level goes on its own line using a simple pipe-delimited format:
price|name|CODE
The indicator parses the string, maps each code to a specific color and line style, and plots everything as an overlay directly on your price chart. Lines extend left from the current bar, color-coded labels appear to the right, and an optional dashboard in the corner gives you a clean summary of every active level.
Format Examples
Single level:
5900.00|MO|M
Level with a note (appears as a tooltip on hover):
5900.00|Key Pivot|Bullish above|M
Zone — draws two lines with a shaded fill between them:
5825.50-5819.25|Demand Zone|GR
Timeframe Codes
Each timeframe has a preset color and line style so you can instantly distinguish Monthly from Daily from 4-Hour levels at a glance:
- M — Monthly — Purple Solid
- W — Weekly — Purple Dashed
- D — Daily — Pink Dotted
- 4H — 4-Hour — Green Dotted
- 1H — 1-Hour — Yellow Dotted
- TM — Tested Monthly — Red Solid
- TW — Tested Weekly — Red Dashed
- TD — Tested Daily — Red Dotted
- T4 — Tested 4-Hour — Green Dashed
Custom Color Codes
Beyond timeframe codes, you have full control over color and style. Every color comes in three variants — solid, dashed, and dotted. Append D for dashed or DOT for dotted to any base code.
- Orange: O · OD · ODOT
- Blue: B · BD · BDOT
- Aqua: A · AD · ADOT
- Red: R · RD · RDOT
- Yellow: Y · YD · YDOT
- Lime: L · LD · LDOT
- Green: GR · GRD · GRDOT
- Purple: P · PD · PDOT
- Pink: PK · PKD · PKDOT
- Fuchsia: F · FD · FDOT
- Teal: T · TD2 · TDOT
- Gray: G · GD · GDOT
- White: WH · WHD · WHDOT
- Silver: S · SD · SDOT
That gives you 42 unique color + style combinations to categorize any type of level — put walls, call walls, POC, value areas, custom levels, or anything else in your trading plan.
Features
- Proximity Highlighting — When price is within a configurable distance of a level (default 15 points), the line automatically thickens so you can see at a glance which levels are in play. Adjustable or toggle off entirely.
- Zone Support — Use a dash between two prices to define a zone. The indicator draws both boundary lines and fills the area between them with a semi-transparent shade — perfect for demand/supply zones, value areas, or any price range.
- Dashboard — A compact table in the corner of your chart lists every active level with its color dot, name, and price. Position it in any corner or along the middle edges. Toggle on or off.
- Tooltips — Add a note field to any level and it appears as a tooltip when you hover the label — useful for trade instructions or context without adding visual clutter.
- Manual Level Slots — 5 additional manual level inputs in the settings panel, each with its own price, name, note, color, and style controls. Use for levels you want to add on the fly without editing the import string.
- Configurable Display — Line width (1–5), label size (Tiny/Small/Normal), label offset, line extension (10–1000 bars), dashboard position, and independent toggles for dashboard, labels, zone fills, and proximity highlighting.
Typical Workflow
- Generate your daily trade plan with key support, resistance, and pivot levels
- Copy the formatted level string from the bottom of the plan
- Open the S&P Edge Levels indicator settings in TradingView
- Paste the string into the "Paste Levels Here" field
- Every level is instantly plotted, color-coded, and labeled on your chart — ready to trade
No manual drawing. No dragging lines. No forgetting a level. Paste and go.
Important Notes
- The string import supports up to 100 levels per paste. Use the 5 manual slots for additional levels if needed.
- The indicator is an overlay — it draws directly on your price chart, not in a separate pane.
- Codes are case-insensitive — m, M, 4h, and 4H all work the same.
- Built in Pine Script v6.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Ryan Bailey
S&P Edge
S&P Edge
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Ryan Bailey
S&P Edge
S&P Edge
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.