OPEN-SOURCE SCRIPT
Previous High/Low Only

Prev H/L
This indicator displays the Previous Day, Previous Week, and Previous Month High/Low levels with the option to choose how many periods back you want to view.
Unlike most Previous High/Low indicators that only show the latest levels, this one lets you select older levels. For example, setting **Days Ago = 3** will display the High and Low from **3 trading days ago**. The same applies to Weeks and Months.
The horizontal lines start from the candle where the High or Low was actually created instead of stretching across the entire previous session, making the chart cleaner and easier to read.
--Features
* Previous Day High & Low
* Previous Week High & Low
* Previous Month High & Low
* Choose how many Days, Weeks, or Months back to display
* Optional EQ (Midpoint)
* Custom line styles and colors
* Clean labels
* Lightweight and easy to use
--Best For
* Support & Resistance
* Liquidity Levels
* ICT / SMC Concepts
* Day Trading
* Swing Trading
* Scalping
--Known Issues
This indicator is mainly designed for lower and matching timeframes.
For example:
* **Previous Day** works correctly on **1H** and **1D** charts, but it may not display correctly on the **1W** chart.
* **Previous Week** works correctly on **1H**, **1D**, and **1W** charts, but it may not display correctly on the **1M** chart.
* **Previous Month** is intended for lower timeframes and may not behave as expected on higher timeframe charts.
This is a known limitation of the current version and may be improved in future updates.
---
If you find any bugs or have suggestions for new features, feel free to leave a comment. Feedback is always appreciated!
This indicator displays the Previous Day, Previous Week, and Previous Month High/Low levels with the option to choose how many periods back you want to view.
Unlike most Previous High/Low indicators that only show the latest levels, this one lets you select older levels. For example, setting **Days Ago = 3** will display the High and Low from **3 trading days ago**. The same applies to Weeks and Months.
The horizontal lines start from the candle where the High or Low was actually created instead of stretching across the entire previous session, making the chart cleaner and easier to read.
--Features
* Previous Day High & Low
* Previous Week High & Low
* Previous Month High & Low
* Choose how many Days, Weeks, or Months back to display
* Optional EQ (Midpoint)
* Custom line styles and colors
* Clean labels
* Lightweight and easy to use
--Best For
* Support & Resistance
* Liquidity Levels
* ICT / SMC Concepts
* Day Trading
* Swing Trading
* Scalping
--Known Issues
This indicator is mainly designed for lower and matching timeframes.
For example:
* **Previous Day** works correctly on **1H** and **1D** charts, but it may not display correctly on the **1W** chart.
* **Previous Week** works correctly on **1H**, **1D**, and **1W** charts, but it may not display correctly on the **1M** chart.
* **Previous Month** is intended for lower timeframes and may not behave as expected on higher timeframe charts.
This is a known limitation of the current version and may be improved in future updates.
---
If you find any bugs or have suggestions for new features, feel free to leave a comment. Feedback is always appreciated!
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.