OPEN-SOURCE SCRIPT
Multi-Session Levels

Multi-Session Levels is a clean, all-in-one levels and sessions tool. It plots the key higher-timeframe reference levels — previous day, week and month highs and lows — alongside live session ranges with gradient fills, and summarises everything in a dashboard that shows your distance to each level at a glance.
- Built to stay readable
The aim is a chart that gives context without clutter. Levels are drawn as single labelled lines colour-coded by period, the session ranges use soft gradient fills rather than hard boxes, and the numeric detail lives in one compact dashboard instead of being scattered across the chart. Price-scale markers mirror each level on the axis, so you can still see where they sit even when scrolled away from the labels.
-Reference levels (previous day / week / month)
The script tracks the running high and low of the current day, week and month, and when each period rolls over it locks the completed range as the "previous" level:
- Previous day high/low (PDH/PDL), previous week high/low (PWH/PWL), previous month high/low (PMH/PML).
- The daily boundary rolls at 22:00 GMT (around the New York close / forex day boundary), so "previous day" reflects the prior trading day rather than the calendar midnight.
- Each level extends to the right by a configurable number of bars and is labelled with its price; line colour, style and width are set per period.
-Equilibrium lines (optional)
For each period the script can plot the 50% midpoint between its high and low — the equilibrium — a level many traders watch for mean reversion or as a decision point inside the range.
-Session ranges with gradient fill
Four sessions are tracked by GMT time windows — Sydney, Tokyo, London and New York — each drawn as a high/low band with labels. The band is shaded with a gradient fill so you can watch a session's range build as it progresses and tell sessions apart at a glance:
- Vertical mode tints the band with your chosen bullish colour toward the top and bearish colour toward the bottom.
- Horizontal mode tints the fill by short-term momentum, using a smoothed measure of candle direction, so the session shades toward green while price is pushing up and red while it is pushing down.
To keep charts responsive, the gradient fill is limited to roughly the last 35 days of data; the lines and labels for the active sessions remain.
-Dashboard
A compact table (position and text size configurable) shows, for every reference level, its price and your current distance to it. Distance can be displayed as a percentage, in pips (with automatic handling of 5-digit and 3-digit JPY pricing) or in ticks. It also shows the current active session and highlights the single nearest level, with an arrow indicating whether each level sits above or below the current price. Ten colour themes are included.
-How to use it
These are reference and context levels, not entry signals — the levels mark where reactions are likely, and you bring your own entry trigger and risk management. Some common approaches:
Reversion at a level. Previous day, week and month highs and lows often act as support and resistance, especially the first time price reaches them. A move into a level that then stalls and prints a rejection (a reaction candle, or a shift in structure on a lower timeframe) is a fade back toward the middle of the range. Risk sits just beyond the level; the opposite level or the equilibrium is a natural target.
Breakout and retest. When price closes decisively through a level, that level often flips role — a broken high becomes support, a broken low becomes resistance. Rather than chasing the break, many traders wait for price to come back and retest the level from the other side, then enter in the breakout direction with risk on the wrong side of the level. The six break alerts are designed for exactly this: they tell you the moment a level gives way so you can watch for the retest.
Equilibrium as a bias line. The 50% midpoint of a period's range splits it into a premium half and a discount half. Trading in the upper half leans bullish for that period and the lower half bearish; some traders only look for longs while price holds above equilibrium and shorts below it, using the line as a simple filter.
Session framing. Use the session ranges to read the rhythm of the day. A common pattern is the Asian range setting the boundaries, then London or New York expanding out of it — watch whether a session breaks the prior session's high or low and holds, or sweeps it and reverses back inside. The gradient fill makes the direction of the active session easy to read at a glance.
Confluence. The strongest reactions tend to come where more than one thing lines up — for example, a previous week high meeting the top of the London range, or a daily level sitting right at equilibrium. Use the dashboard's distance readouts to see how close price is to the nearest level before you commit, so you are trading into a level rather than into open space.
Whatever the approach, the levels define where to be interested; your own confirmation defines when to act.
-Alerts
Six separate, individually-selectable alerts fire when price closes across a level: previous day high or low, previous week high or low, and previous month high or low. Set them to "Once Per Bar Close" so they match the close-based logic.
-Credits
The gradient session colouring was inspired by Session Streaks [LuxAlgo], an open-source script where I first came across the idea of shading sessions by their bullish or bearish bias. The gradient fill here is built with Pine Script's standard fill() and color.from_gradient() functions, and the rest of the script — level tracking, session ranges, dashboard and alerts — is my own work. Credit and thanks to LuxAlgo.
-Inputs
Previous Day / Week / Month (show toggles, colours, line style, width), Extend lines, Equilibrium Lines (per period), Session Ranges (show toggles and colours per session, line width), Session Style (gradient colours, transparency, direction), and Dashboard (show, position, text size, colour theme, distance format).
-Disclaimer
This indicator is for educational and informational purposes only and is not financial or investment advice. Past performance does not guarantee future results. Always do your own analysis and manage your own risk.
- Built to stay readable
The aim is a chart that gives context without clutter. Levels are drawn as single labelled lines colour-coded by period, the session ranges use soft gradient fills rather than hard boxes, and the numeric detail lives in one compact dashboard instead of being scattered across the chart. Price-scale markers mirror each level on the axis, so you can still see where they sit even when scrolled away from the labels.
-Reference levels (previous day / week / month)
The script tracks the running high and low of the current day, week and month, and when each period rolls over it locks the completed range as the "previous" level:
- Previous day high/low (PDH/PDL), previous week high/low (PWH/PWL), previous month high/low (PMH/PML).
- The daily boundary rolls at 22:00 GMT (around the New York close / forex day boundary), so "previous day" reflects the prior trading day rather than the calendar midnight.
- Each level extends to the right by a configurable number of bars and is labelled with its price; line colour, style and width are set per period.
-Equilibrium lines (optional)
For each period the script can plot the 50% midpoint between its high and low — the equilibrium — a level many traders watch for mean reversion or as a decision point inside the range.
-Session ranges with gradient fill
Four sessions are tracked by GMT time windows — Sydney, Tokyo, London and New York — each drawn as a high/low band with labels. The band is shaded with a gradient fill so you can watch a session's range build as it progresses and tell sessions apart at a glance:
- Vertical mode tints the band with your chosen bullish colour toward the top and bearish colour toward the bottom.
- Horizontal mode tints the fill by short-term momentum, using a smoothed measure of candle direction, so the session shades toward green while price is pushing up and red while it is pushing down.
To keep charts responsive, the gradient fill is limited to roughly the last 35 days of data; the lines and labels for the active sessions remain.
-Dashboard
A compact table (position and text size configurable) shows, for every reference level, its price and your current distance to it. Distance can be displayed as a percentage, in pips (with automatic handling of 5-digit and 3-digit JPY pricing) or in ticks. It also shows the current active session and highlights the single nearest level, with an arrow indicating whether each level sits above or below the current price. Ten colour themes are included.
-How to use it
These are reference and context levels, not entry signals — the levels mark where reactions are likely, and you bring your own entry trigger and risk management. Some common approaches:
Reversion at a level. Previous day, week and month highs and lows often act as support and resistance, especially the first time price reaches them. A move into a level that then stalls and prints a rejection (a reaction candle, or a shift in structure on a lower timeframe) is a fade back toward the middle of the range. Risk sits just beyond the level; the opposite level or the equilibrium is a natural target.
Breakout and retest. When price closes decisively through a level, that level often flips role — a broken high becomes support, a broken low becomes resistance. Rather than chasing the break, many traders wait for price to come back and retest the level from the other side, then enter in the breakout direction with risk on the wrong side of the level. The six break alerts are designed for exactly this: they tell you the moment a level gives way so you can watch for the retest.
Equilibrium as a bias line. The 50% midpoint of a period's range splits it into a premium half and a discount half. Trading in the upper half leans bullish for that period and the lower half bearish; some traders only look for longs while price holds above equilibrium and shorts below it, using the line as a simple filter.
Session framing. Use the session ranges to read the rhythm of the day. A common pattern is the Asian range setting the boundaries, then London or New York expanding out of it — watch whether a session breaks the prior session's high or low and holds, or sweeps it and reverses back inside. The gradient fill makes the direction of the active session easy to read at a glance.
Confluence. The strongest reactions tend to come where more than one thing lines up — for example, a previous week high meeting the top of the London range, or a daily level sitting right at equilibrium. Use the dashboard's distance readouts to see how close price is to the nearest level before you commit, so you are trading into a level rather than into open space.
Whatever the approach, the levels define where to be interested; your own confirmation defines when to act.
-Alerts
Six separate, individually-selectable alerts fire when price closes across a level: previous day high or low, previous week high or low, and previous month high or low. Set them to "Once Per Bar Close" so they match the close-based logic.
-Credits
The gradient session colouring was inspired by Session Streaks [LuxAlgo], an open-source script where I first came across the idea of shading sessions by their bullish or bearish bias. The gradient fill here is built with Pine Script's standard fill() and color.from_gradient() functions, and the rest of the script — level tracking, session ranges, dashboard and alerts — is my own work. Credit and thanks to LuxAlgo.
-Inputs
Previous Day / Week / Month (show toggles, colours, line style, width), Extend lines, Equilibrium Lines (per period), Session Ranges (show toggles and colours per session, line width), Session Style (gradient colours, transparency, direction), and Dashboard (show, position, text size, colour theme, distance format).
-Disclaimer
This indicator is for educational and informational purposes only and is not financial or investment advice. Past performance does not guarantee future results. Always do your own analysis and manage your own risk.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.