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!
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.