Learn · TradingView · rails
Plot Confluence rails on TradingView
Overlay your call wall, put wall, gamma flip, and optional magnet on a SPY (or QQQ) chart using our Pine script. Levels come from your Confluence stack — Decision Desk, morning Discord card, or the Rails API — not a third-party gamma vendor overlay.
What you are drawing
These are horizontal context lines for structure. They help you see when price is pressing a dealer rail. They do not grade setups, read flow, or fire alerts. Level + candle + confluence still rule before any trade. Background: gamma walls explained.
1. Get today’s levels
- Decision Desk — open desk.html (Bundle/Pro live; public sample shows a prior-session fixture).
-
API —
GET /v1/rails/spywith a Gamma Rails / Bundle / Developer key (API docs). QQQ/SPX when enabled on your stack. -
Discord —
#morning-desklists the same rails before the open (morning desk guide).
Copy call_wall, put_wall, gamma_flip, and magnet
when present. Refresh intraday when the map updates — trading yesterday’s wall is how fades get run over.
2. Add the Pine script
- In TradingView, open your SPY chart and the Pine Editor (bottom panel).
-
Paste the contents of
tradingview/confluence_rails.pinefrom this site (or open the file from your clone). - Click Add to chart.
- Open indicator settings and paste today’s levels into the inputs (call wall, put wall, flip, magnet). Leave unused fields blank or at defaults.
Colors match Decision Desk convention: green call wall, red put wall, blue flip, gray magnet.
3. Suggested chart hygiene
- Use a 1-minute or 5-minute RTH chart for 0DTE structure work.
- Update inputs after major morning map refreshes (and after big OI / regime shifts).
- Do not treat a line touch alone as a trade — wait for a closed candle and your own rules.
- Index charts (SPX) need SPX rails from
/v1/rails/spxwhen that lane is enabled — do not paste SPY strikes onto SPX.
4. What this is not
The Pine script is not an auto-trade bot, not a graded alert, and not a substitute for Discord or MCP. Options involve substantial risk of loss. This is educational chart context only — not investment advice.
Related
Get live rails on Desk + Discord
Desk Bundle and Pro unlock live Decision Desk; Discord plans include morning rails.
Open Decision Desk Get an API key