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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Gabriel R. | AlphaScript
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Gabriel R. | AlphaScript
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.