OPEN-SOURCE SCRIPT
Hardwaybets' Protected Highs / Protected Lows Trading

# **🔸 Protected Highs & Lows (TTrades Concept) – Automated Identifier**
This indicator automatically detects **Protected Highs (PHigh)** and **Protected Lows (PLow)** — a price-action concept widely discussed and popularized by the YouTuber TTrades. I loved the logic and simplicity of the trading system and the trading entry model, so I decided to create this indicator to help me identify these key levels to the strategy.
In TTrades’ trading framework, a "protected high" level is formed when price takes liquidity (breaks the previous high) but closes back inside the prior candle’s range and then proceeds to break and close below the opening price of the series (it could be just one candle) of upclose (green) candles, signaling a potential reversal to the downside and creating a high level that remains “protected” until broken. The indicator draws a shape or a label, whichever the user prefers.
A "protected low" is the same only in reverse. A "protected low" price level is formed when price takes liquidity (breaks the previous low) but closes back inside the prior candle’s range and then proceeds to break and close above the opening price of a series (it could be just one candle) of downclose (red) candles, signaling a potential reversal to the upside and creating a low price level that remains “protected” until broken. Again, the indicator draws a shape or a label, whichever the user prefers.
This indicator locates those moments and visually marks the chart with your preferred style.
---
## **✨ What This Indicator Does**
✔ **Identifies Protected Highs (PHigh)**
✔ **Identifies Protected Lows (PLow)**
✔ **Auto-clears violated levels**
If a protected level is later breached, the indicator automatically removes the marker — just like a real protected high/low should “fail.”
✔ **Flexible visual customization**
You can choose between:
* Labels (text markers)
* Shape markers (diamond, circle, square, etc.)
* Custom colors for highs and lows
* Placement offsets for cleaner visuals
✔ **Clean and non-intrusive display**
Markers are plotted with adjustable spacing so they do not overlap candles.
---
## **💡 How Traders Use Protected Levels**
Protected highs/lows help traders:
* Confirm shifts in structure
* Identify liquidity grabs & failed breaks
* Mark potential reversal zones
* Spot continuation pressure after a sweep
* Build bias around where the market defended liquidity
These zones are often used in ICT-inspired and TheStrat-inspired analysis as well.
I strongly encourage you to learn more about this trading method from TTrades. I am eternally grateful to him for teaching this method.
---
## **📌 Notes**
* Works on any timeframe and any asset.
* Designed to stay accurate and uncluttered by automatically removing invalidated levels.
* Ideal for traders who follow concepts from TTrades, ICT, Wyckoff, or structural price-action methodologies.
This indicator automatically detects **Protected Highs (PHigh)** and **Protected Lows (PLow)** — a price-action concept widely discussed and popularized by the YouTuber TTrades. I loved the logic and simplicity of the trading system and the trading entry model, so I decided to create this indicator to help me identify these key levels to the strategy.
In TTrades’ trading framework, a "protected high" level is formed when price takes liquidity (breaks the previous high) but closes back inside the prior candle’s range and then proceeds to break and close below the opening price of the series (it could be just one candle) of upclose (green) candles, signaling a potential reversal to the downside and creating a high level that remains “protected” until broken. The indicator draws a shape or a label, whichever the user prefers.
A "protected low" is the same only in reverse. A "protected low" price level is formed when price takes liquidity (breaks the previous low) but closes back inside the prior candle’s range and then proceeds to break and close above the opening price of a series (it could be just one candle) of downclose (red) candles, signaling a potential reversal to the upside and creating a low price level that remains “protected” until broken. Again, the indicator draws a shape or a label, whichever the user prefers.
This indicator locates those moments and visually marks the chart with your preferred style.
---
## **✨ What This Indicator Does**
✔ **Identifies Protected Highs (PHigh)**
✔ **Identifies Protected Lows (PLow)**
✔ **Auto-clears violated levels**
If a protected level is later breached, the indicator automatically removes the marker — just like a real protected high/low should “fail.”
✔ **Flexible visual customization**
You can choose between:
* Labels (text markers)
* Shape markers (diamond, circle, square, etc.)
* Custom colors for highs and lows
* Placement offsets for cleaner visuals
✔ **Clean and non-intrusive display**
Markers are plotted with adjustable spacing so they do not overlap candles.
---
## **💡 How Traders Use Protected Levels**
Protected highs/lows help traders:
* Confirm shifts in structure
* Identify liquidity grabs & failed breaks
* Mark potential reversal zones
* Spot continuation pressure after a sweep
* Build bias around where the market defended liquidity
These zones are often used in ICT-inspired and TheStrat-inspired analysis as well.
I strongly encourage you to learn more about this trading method from TTrades. I am eternally grateful to him for teaching this method.
---
## **📌 Notes**
* Works on any timeframe and any asset.
* Designed to stay accurate and uncluttered by automatically removing invalidated levels.
* Ideal for traders who follow concepts from TTrades, ICT, Wyckoff, or structural price-action methodologies.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.