OPEN-SOURCE SCRIPT
Highs and Lows By Scalpr

Highs & Lows (HL) – Multi-Time-Frame Levels
What It Does
Highs & Lows plots the most important reference levels for up to four different time-frames at once. It displays divider lines that mark the start of each new period, opening lines showing the first price of the period, highs lines tracking the highest price reached, and lows lines tracking the lowest price reached in each period. Use it to read market structure at a glance, trade opening-range returns, gap fills, sweeps and other level-based setups.
Key Features
Choose from 4 Hour, 1 Hour, 30 minutes, 15 minutes, 10 minutes, 5 minutes, Daily, Weekly or Monthly for each of the four slots. Turn individual slots on/off from one global panel for easy management.
For every active slot you can independently toggle divider lines, opening lines, highs lines, lows lines, and hide current opening to keep only completed periods visible.
Keep charts clean by limiting history. Control how many recent periods to show for lines and how many recent text labels to display. For example, show only the last 2 hours on a 1-hour chart.
Automatically hide any highs or lows that price has traded through, keeping your chart clean and focused only on unswept levels that remain relevant.
Add optional custom text for highs and lows like "H1" and "L1". Labels automatically position above highs and below lows with horizontal alignment options of left, center, or right. Adjust color, size and font weight to match your preferences.
Independent color, line style including solid, dashed, or dotted options, and width settings for each level type. Transparency is applied automatically when hiding current period information.
How to Use
Start by enabling the time-frame slots you need in Global Settings. In Multi-Time-Frame Settings, pick the interval for each slot and toggle which lines you want displayed. Fine-tune visibility using "Show Last X" in Time-Frame Lines to limit historical lines, and "Show Last X" in Text to limit labels. Adjust colors and widths in the Time-Frame Lines sections to match your chart theme.
Notes
The script is lightweight and deletes old objects in real time to maintain TradingView's limits. It works on any symbol and chart resolution with levels updating live. Text labels are purely textual with no background boxes to maximize clarity and reduce chart clutter.
Happy trading and stay level-headed!
What It Does
Highs & Lows plots the most important reference levels for up to four different time-frames at once. It displays divider lines that mark the start of each new period, opening lines showing the first price of the period, highs lines tracking the highest price reached, and lows lines tracking the lowest price reached in each period. Use it to read market structure at a glance, trade opening-range returns, gap fills, sweeps and other level-based setups.
Key Features
- Multi-Time-Frame Engine
Choose from 4 Hour, 1 Hour, 30 minutes, 15 minutes, 10 minutes, 5 minutes, Daily, Weekly or Monthly for each of the four slots. Turn individual slots on/off from one global panel for easy management.
- Per-Time-Frame Display Controls
For every active slot you can independently toggle divider lines, opening lines, highs lines, lows lines, and hide current opening to keep only completed periods visible.
- Smart "Show Last X" Filters
Keep charts clean by limiting history. Control how many recent periods to show for lines and how many recent text labels to display. For example, show only the last 2 hours on a 1-hour chart.
- Hide Swept Highs/Lows
Automatically hide any highs or lows that price has traded through, keeping your chart clean and focused only on unswept levels that remain relevant.
- Text Labels
Add optional custom text for highs and lows like "H1" and "L1". Labels automatically position above highs and below lows with horizontal alignment options of left, center, or right. Adjust color, size and font weight to match your preferences.
- Styling Freedom
Independent color, line style including solid, dashed, or dotted options, and width settings for each level type. Transparency is applied automatically when hiding current period information.
How to Use
Start by enabling the time-frame slots you need in Global Settings. In Multi-Time-Frame Settings, pick the interval for each slot and toggle which lines you want displayed. Fine-tune visibility using "Show Last X" in Time-Frame Lines to limit historical lines, and "Show Last X" in Text to limit labels. Adjust colors and widths in the Time-Frame Lines sections to match your chart theme.
Notes
The script is lightweight and deletes old objects in real time to maintain TradingView's limits. It works on any symbol and chart resolution with levels updating live. Text labels are purely textual with no background boxes to maximize clarity and reduce chart clutter.
Happy trading and stay level-headed!
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.