Untouched Levels [Zen]

870
Untouched Levels [Zen] marks the previous-day and previous-week highs and lows that price has not traded through yet, and shows them for up to 12 symbols in one table. Each level is judged only on closed candles of a confirmation timeframe (4H by default), so the table tells a level that was swept by a wick and closed back apart from a level that was broken by a close.

WHAT IT DOES
- Keeps a pool of untouched levels for each symbol: the high and low of every finished UTC day (PDH / PDL) and of every finished week (PWH / PWL, weeks start Monday 00:00 UTC). A level stays in the pool until price trades beyond it; it is not replaced when the next day or week starts.
- Levels expire after a set age: 20 days for daily levels and 8 weeks for weekly levels by default.
- For each symbol the table shows the nearest untouched level above and below price, the distance to each in %, the last event and its age.
- On the chart it draws the nearest untouched levels of the chart symbol.

HOW IT WORKS
A level is taken by the first confirmation candle whose wick goes beyond it: strictly above a high level or strictly below a low level, one tick is enough. That candle's close decides the state:
- SWEPT: the candle closed back on the level's side (at or below a high level, at or above a low level).
- BROKEN: the candle closed beyond the level.
A taken level leaves the pool, so it is not checked again later.
If one candle takes several levels, the table shows one event: weekly before daily, then SWEPT before BROKEN, then the farthest level on that side; if both sides are equal, the low side.
Age counts confirmation candles since the event; 0 means the last closed candle.
When a daily and a weekly level share the same price, the weekly name is shown.

HOW TO USE
- Use a chart timeframe at or below the confirmation timeframe (for 4H: 4H, 1H, 15m and so on). If the chart timeframe is higher, the table shows a notice and the lines and alerts are off.
- A highlighted row means a SWEPT event on one of the last closed candles (the last 2 by default). Those are the symbols to open and read on their own chart.
- BSL above and SSL below give the nearest untouched level on each side and how far away it is.
- Tip: the indicator's "More" menu has "Move tables to bottom panel". It puts the table under the chart so it never covers the candles.

TABLE
Columns: symbol, Close (of the last closed confirmation candle), BSL above (type and price), %, SSL below (type and price), %, Last event, Age. The header shows the confirmation timeframe and the UTC time of the last close. A symbol that returns no data shows "no data".

LINES
The nearest untouched levels of the chart symbol, up to 3 per side by default. Weekly levels are solid, daily levels are dashed, and the levels are labelled at the last bar. Levels closer to each other than 8% of the chart's price range (the drawn levels and the last 100 bars) keep their own lines but share one label, one row per level. Colours follow the chart theme, light or dark.

ALERTS
- "Any alert() function call": one message per confirmation close that lists every table symbol with a new event, for example "AAVE: PDH 155.48 SWEPT ↑ · close 153.58". An alert fires only for a close the script saw live, not at the moment the alert is created.
- Four conditions for the chart symbol: High level swept, Low level swept, High level broken, Low level broken.
Display settings (lines, table) never change detection or alerts.

INPUTS
Confirmation timeframe (4H), Keep daily levels in days (20), Keep weekly levels in weeks (8), Highlight a fresh SWEPT in candles (2), Show levels on the chart, Levels per side on the chart (3), Table position, Table text size, Alert on new events of all table coins, and 12 symbol slots, each with its own on/off box (defaults on Binance: BTC, ETH, SOL, XRP, ADA, AAVE, NEAR, ONDO, LINK, DOGE, AVAX, SUI).

NON-REPAINTING
Every value comes from the last closed confirmation candle. The state of a closed candle never changes, and the live candle is not judged until it closes.

LIMITS
- Days and weeks are counted in UTC. That fits 24/7 crypto markets; on markets with sessions the levels can differ from the exchange's own daily candles.
- History used: the longer keep window plus 14 days of confirmation candles.
- One data request per symbol plus one for the chart symbol, 13 in total with all slots on.
- The lines follow the chart symbol and the table rows follow their slots, so BTCUSDT and BTCUSDT.P are different symbols.
- Only the last event of each symbol is shown, and the level behind it has already left the pool.

WHAT IS ORIGINAL
Levels of past days and weeks stay in play until price actually takes them instead of being replaced every period. Each take is classified by the close of a confirmation candle, not by the current price, so a wick is never reported as a break and the state does not flicker inside a candle. The distance to the nearest untouched level on each side, the age of the last event and many symbols in one table turn this into a scan of where the untouched levels are and which of them were just swept.

This is an analysis tool, not a trading strategy: it gives no entries, targets or performance claims.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.