Professional TradingView Scripts
Advanced indicators and tools to enhance your trading analysis
Time Confluence Windows — 50% Levels + Next-Close Scanner
Find stacked time windows and the exact prior-bar 50% levels across multiple timeframes — in one panel and on your chart.
This tool highlights when several timeframes are simultaneously "in play" (post-close & pre-close windows), and plots the previous bar midpoint (50%) for each TF so you can judge mean-revert vs. continuation risk at a glance.

What it shows
Confluence Shading
Counts active windows from selected TFs (30m→8h) plus optional pre-close anticipation for 3h/4h/6h/8h. Tiers at 5/6/7/8/≥9 stacks with configurable colors.
Panel with Details
TF list (tinted to match line colors), Next Close countdown for each TF, and Prev 50% = exact midpoint of the previous bar (▲ if price above, ▼ if below).
50% Lines on Chart
Optional lines for intraday TFs plus optional D/W/M. Labels can show price. Close markers (triangles) show when a TF just closed.
Smart Scan Header
Auto-adds higher TFs (multi-day/week/month bars) only if their next close is within X hours (default 22h), keeping the panel focused on relevant windows.
Alerts
One alert condition when the stack reaches your threshold - never miss a confluence opportunity.
Exact & Efficient
50% computed with one request per TF using hl2[1] on the requested basis. Keeps table and lines in perfect sync and reduces request usage.
Key Inputs
Timeframe Settings
- •Tracked TFs: 30m, 1h, 2h, 3h, 4h, 6h, 8h (toggle each)
- •Basis: Heikin-Ashi on/off, RTH vs. Extended sessions
- •Post-close & Pre-close window lengths per TF
Display Options
- •Line options: width, style, span, label side, show price
- •TF-follow: hide intraday lines when chart TF is higher
- •Alert: threshold for confluence stack
How to Use
Add the indicator and pick your tracked TFs
Choose your basis (Regular vs Extended / Heikin-Ashi)
Set scan hours (e.g., 22h) to show higher-TF rows/lines only when relevant
Optionally enable lines & labels for the TFs you actively trade
(Optional) Create an alert: Time Confluence Stack ≥ Threshold
Tips & FAQ
Lines don't match the table?
Make sure Auto Fit to screen is on (or zoom so lines are within view), and confirm you're using the same basis (RTH/Extended, Heikin-Ashi) as the panel. This version uses the same midpoint source for both, so values match exactly.
Hitting request limits?
Disable unused TFs, turn off D/W/M lines, or increase "Scan ≤ hours" selectivity. This build already halves midpoint requests via hl2[1].
No-repaint note
50% levels use previous bar data on each TF with lookahead_off, so the plotted midpoints do not repaint. Shading/countdowns update in real time as windows open/close.
Ready to enhance your trading?
Get instant access to all our professional TradingView scripts
Disclaimer: This is an educational tool, not financial advice. Always confirm signals within your own plan and manage risk.