OPEN-SOURCE SCRIPT
Key Level Matrix | AlphaScript

Key Level Matrix brings the high-timeframe and session levels traders watch most onto a single chart, then groups any that share the same price into one clean line through its confluence merge engine.
You get a complete map of where significant prices sit across every timeframe and session at once — without the chart turning into a stack of overlapping lines.
🧠 Concept
Markets repeatedly react to a specific set of reference prices: the opens, highs, lows, and midpoints of higher timeframes and sessions, where prior auctions concluded and resting orders concentrate.
What makes a given price matter is how many independent references land on it.
A level that is simultaneously the daily high, the weekly open, and the Asia session mid carries far more weight than any one of them alone — and finding those overlaps by eye, across a dozen sources, is exactly what this tool removes the work from.
🔍 What it does
Plots reference levels across the market's natural cycles, each labeled and color-coded by source and extended to the right of price:
Timeframes — 4H, Daily, Weekly, Monthly, Quarterly, Yearly: open, high, low, mid, and the prior period's high, low, and mid
Sessions — Asia, London, New York (windows configurable, in New York time): high, low, mid, and the prior session's levels
Monday Range — high, low, and mid of the week's opening day
⚙️ How it works
Every enabled level is sorted by price, and any group falling within your Merge Threshold — set in ticks, so it scales to each instrument — collapses into a single line carrying one combined label that names each contributing source, for example "Daily High / Weekly Open / Asia Mid." One line, with an instant read on how much agreement sits behind it.
All values are retrieved with non-repainting historical requests. Levels from closed periods and sessions are final; the active period and session develop in real time and lock once they close.
📈 How to use it
Treat merged, multi-source levels as your highest-conviction zones — primary areas for entries, targets, and invalidation — and single-source levels as secondary structure between them.
Enable only what matches your timeframe: an intraday trader might run New York, London, and Daily; a swing trader Weekly, Monthly, and Quarterly.
Widen the Merge Threshold on volatile, large-tick symbols; tighten it on indices and FX where prices sit closer together.
Every level, session, color, and style is independently configurable. It's a reference and confluence framework meant to complement your analysis, not a buy/sell signal generator, and it works on any market and timeframe.
📝 Notes
A decision-support tool, not a strategy. Levels are drawn from confirmed data and don't repaint. They mark where price has reacted before — not where it will. Always apply your own risk management.
You get a complete map of where significant prices sit across every timeframe and session at once — without the chart turning into a stack of overlapping lines.
🧠 Concept
Markets repeatedly react to a specific set of reference prices: the opens, highs, lows, and midpoints of higher timeframes and sessions, where prior auctions concluded and resting orders concentrate.
What makes a given price matter is how many independent references land on it.
A level that is simultaneously the daily high, the weekly open, and the Asia session mid carries far more weight than any one of them alone — and finding those overlaps by eye, across a dozen sources, is exactly what this tool removes the work from.
🔍 What it does
Plots reference levels across the market's natural cycles, each labeled and color-coded by source and extended to the right of price:
Timeframes — 4H, Daily, Weekly, Monthly, Quarterly, Yearly: open, high, low, mid, and the prior period's high, low, and mid
Sessions — Asia, London, New York (windows configurable, in New York time): high, low, mid, and the prior session's levels
Monday Range — high, low, and mid of the week's opening day
⚙️ How it works
Every enabled level is sorted by price, and any group falling within your Merge Threshold — set in ticks, so it scales to each instrument — collapses into a single line carrying one combined label that names each contributing source, for example "Daily High / Weekly Open / Asia Mid." One line, with an instant read on how much agreement sits behind it.
All values are retrieved with non-repainting historical requests. Levels from closed periods and sessions are final; the active period and session develop in real time and lock once they close.
📈 How to use it
Treat merged, multi-source levels as your highest-conviction zones — primary areas for entries, targets, and invalidation — and single-source levels as secondary structure between them.
Enable only what matches your timeframe: an intraday trader might run New York, London, and Daily; a swing trader Weekly, Monthly, and Quarterly.
Widen the Merge Threshold on volatile, large-tick symbols; tighten it on indices and FX where prices sit closer together.
Every level, session, color, and style is independently configurable. It's a reference and confluence framework meant to complement your analysis, not a buy/sell signal generator, and it works on any market and timeframe.
📝 Notes
A decision-support tool, not a strategy. Levels are drawn from confirmed data and don't repaint. They mark where price has reacted before — not where it will. Always apply your own risk management.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Gabriel R. | AlphaScript
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
Gabriel R. | AlphaScript
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。