OPEN-SOURCE SCRIPT
Zaktualizowano Key Levels By Spartan - Compression Safe

Key Levels Suite - Compression Safe
A confluence-level indicator that won't compress your chart. It plots HTF opens/highs/lows, day levels, moving averages, and volume profile POC/VA, but only draws what's close enough to price to matter, so distant levels never stretch the y-axis and squash your recent candles.
How it avoids compression: every level is checked against its distance from price before drawing. Close levels get a solid line and a full label with price and percent distance. Levels a bit further out still get a dashed line with just a name tag, faded down. Anything beyond that isn't drawn at all — it literally cannot affect auto-scale. Both distance thresholds are adjustable.
Overlapping levels: when two levels land on the same price (say a daily high and a weekly high coincide), most scripts either stack duplicate labels or hide one. This script merges them into a single label listing every contributing name with the price shown once, while each source keeps its own line and color.
Modules (each toggled independently):
HTF levels — daily through yearly, open/high/low/mid, current and previous period
Three configurable moving averages (EMA, SMA, WMA, HMA)
Volume profile POC/VAH/VAL for your chosen timeframe, current and previous period
Day levels — open/high/low/mid, previous day at reduced opacity
HTF and previous-period values are non-repainting: current period updates live, previous period is locked from its final confirmed close.
Settings cover line width, label size, extension length, what shows in labels, same-price merge tolerance, and which modules are active.
A confluence-level indicator that won't compress your chart. It plots HTF opens/highs/lows, day levels, moving averages, and volume profile POC/VA, but only draws what's close enough to price to matter, so distant levels never stretch the y-axis and squash your recent candles.
How it avoids compression: every level is checked against its distance from price before drawing. Close levels get a solid line and a full label with price and percent distance. Levels a bit further out still get a dashed line with just a name tag, faded down. Anything beyond that isn't drawn at all — it literally cannot affect auto-scale. Both distance thresholds are adjustable.
Overlapping levels: when two levels land on the same price (say a daily high and a weekly high coincide), most scripts either stack duplicate labels or hide one. This script merges them into a single label listing every contributing name with the price shown once, while each source keeps its own line and color.
Modules (each toggled independently):
HTF levels — daily through yearly, open/high/low/mid, current and previous period
Three configurable moving averages (EMA, SMA, WMA, HMA)
Volume profile POC/VAH/VAL for your chosen timeframe, current and previous period
Day levels — open/high/low/mid, previous day at reduced opacity
HTF and previous-period values are non-repainting: current period updates live, previous period is locked from its final confirmed close.
Settings cover line width, label size, extension length, what shows in labels, same-price merge tolerance, and which modules are active.
Informacje o Wersji
Update: Hide Mitigated LevelsAdded an option to hide a level once price has traded through it. This only applies to levels that are fixed once set: current-period opens, and everything from a completed previous period (previous O/H/L/Mid across all timeframes, previous volume profile POC/VAH/VAL). Current-period highs/lows/mids and moving averages are excluded, since those update every bar and can't be meaningfully "mitigated."
Informacje o Wersji
fixed a rare crash when only one level is queuedSkrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.