OPEN-SOURCE SCRIPT

Highs and Lows By Scalpr

367
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
  • 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!

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。