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.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.