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