Ticker by TradingView

Indicators / TE-004

TE Previous Session Structure

Eleven prior levels, prior day, prior session, overnight and prior week, each with a lifecycle state.

The decision it changes: Which reference levels from earlier sessions are still untouched and which have already been taken out.

Open it free on TradingView

Free and open-source. Add it from the script page, no membership needed.

What it reads

The highs, lows and closes of the prior day, the prior session, the overnight session and the prior week.

How it is computed

Each level is fixed when its session closes and reads SET. A close beyond it makes it BROKEN ABOVE or BROKEN BELOW. A close back on the original side makes it RECLAIMED. A level that stays broken for the number of bars you choose becomes EXPIRED. Every change needs a close, so a wick through a level changes nothing.

Worked example. The prior day high is 21,040. Overnight trades up to 21,032 and stops short, and no bar closes above it, so the level still reads SET at the open.

Why it matters

Prior highs and lows are where resting orders tend to sit. Knowing which are still intact saves you from planning around a level that is already spent.

What it does not tell you

A level that still reads SET has not been closed beyond. That does not mean it will hold when price arrives.

Inputs

Read from the script's own settings, so this list matches what you see in TradingView.

SettingDefaultWhat it does
ThemeDarkWhich chart background this is drawn for. Changing it re-picks every colour so text and lines stay legible. It cannot detect your theme automatically, so set it to match your chart.
Hover tooltips (on-chart explanations)trueShows or hides the explanation that appears when you hover a table cell or a label on the chart. Off removes that hover text only: every printed value, line, zone and alert is unchanged, and nothing is recomputed.…
Previous trading day (PDH, PDL, PDC)trueThe high, low and close of the previous TRADING day, which is not the calendar day: it comes from the exchange's own trading-day boundary, so a futures session that opens the previous evening is one day. A shortened or…
Previous regular session (RTHH, RTHL, RTHC)trueThe high, low and close of the previous REGULAR session, taken from the exchange's own declared hours - no session string, no hour literal and no timezone argument, so there is no offset that could be right in summer and…
Overnight (ONH, ONL)trueThe high and low of the stretch between the last regular-session close and the next open - the bars outside the exchange's regular hours. On a market with no out-of-hours trading this group never publishes, and the…
Previous week (PWH, PWL, PWC)trueThe high, low and close of the previous week. The week boundary comes from Pine's own calendar rather than from a bar count, so a holiday-shortened week is a short week and nothing is skipped or double-counted.
Retire after N consecutive broken bars (0 = never)0Clean retirement. A level that has been broken and NOT reclaimed for N consecutive closed bars becomes EXPIRED and stops being drawn. The counter resets on any close back on the level's original side, so a level that…
Keep drawing retired levelsfalseDraws EXPIRED levels in a muted colour instead of removing them. Useful while you are choosing a retirement setting, because it lets you see what the rule is actually discarding before you trust it to discard things…
Extend lines to the righttrueExtends each level line to the right edge of the chart so it stays visible as price moves away. Off draws each line only across recent bars, which is quieter on a chart that already carries other structure.
Show level tagstrueDraws the hover-enabled tag beside each level carrying its key and its price. Every tag explains its own source, its lifecycle state, how many times price has touched it and how long it has existed. Turn tags off to keep…
Line start, bars back120How far to the left each level line begins, in bars. This is cosmetic only and changes no computed value: the lifecycle is evaluated against every closed bar since the level was published, whatever is drawn.
Show readout tabletrueLists the live levels nearest to the current price, with the state of each and its distance. Retired levels are excluded from the list whether or not they are still drawn.
Levels listed5How many of the nearest live levels the table lists. Levels exactly equidistant above and below are ordered by their fixed declaration order, so the table never reshuffles itself between bars for no visible reason.
Table anchorTop rightWhere the readout table is anchored on the chart. Move it if it overlaps something you need to read.
Compact modefalseSteps the table font down one size and drops the distance column, for small screens. The state of each level is kept, because that is the column the product exists for.

Every tool, one membership

TE Previous Session Structure is part of the Trader's Edge indicator set, alongside APOLLO ONE.

Get access: $49.99/monthSee all indicators

Decision support, not financial advice. Trading carries risk of loss.

Platforms named on this page: TradingView.

Free newsletter

The daily issue, in your inbox.

Today's recap, tomorrow's event clock, and what the desk is watching. Free, by email. Unsubscribe whenever you want.