OPEN-SOURCE SCRIPT
Relevant Levels Ritrade

Overview This indicator plots key price levels (Daily, Weekly, Monthly) with a unique "Smart Overlap" system. It is designed to keep charts clean by offsetting lines to the right of the price action and preventing labels from covering each other when price levels are identical.
Key Features
Smart Overlap Prevention: If two levels (e.g., Previous Day High and Weekly High) are at the exact same price, the script automatically shifts the second line to the right so both are visible side-by-side.
Origin Trace Lines: Faint, dotted grey lines connect the floating labels back to the specific candle where that High, Low, or Open actually occurred. This helps visualize exactly when the level was created.
Future Offset: Lines are drawn into the future (offset from the current bar) to avoid cluttering your analysis on current candles.
Exact Timing: The trace lines use precise time coordinates to find the exact swing high/low candle.
Included Levels (Toggleable)
PDH / PDL: Previous Day High & Low
PWH / PWL: Previous Week High & Low
DO / WO / MO: Daily, Weekly, and Monthly Opens
Settings You can customize the line colors, the offset distance (how far right the lines sit), the length of the lines, and the gap between overlapping lines.
Key Features
Smart Overlap Prevention: If two levels (e.g., Previous Day High and Weekly High) are at the exact same price, the script automatically shifts the second line to the right so both are visible side-by-side.
Origin Trace Lines: Faint, dotted grey lines connect the floating labels back to the specific candle where that High, Low, or Open actually occurred. This helps visualize exactly when the level was created.
Future Offset: Lines are drawn into the future (offset from the current bar) to avoid cluttering your analysis on current candles.
Exact Timing: The trace lines use precise time coordinates to find the exact swing high/low candle.
Included Levels (Toggleable)
PDH / PDL: Previous Day High & Low
PWH / PWL: Previous Week High & Low
DO / WO / MO: Daily, Weekly, and Monthly Opens
Settings You can customize the line colors, the offset distance (how far right the lines sit), the length of the lines, and the gap between overlapping lines.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.