Protected Highs & Lows

Protected Highs & Lows

The Protected Highs & Lows indicator is an advanced tool that helps traders identify critical support and resistance points on a chart. These levels are based on the identification of high and low pivots that meet specific confirmation criteria. Through these pivots, the indicator signals potential changes in price direction and helps validate breakouts or structural changes in the market, known as “BOS” (Break of Structure) and “MSS” (Market Structure Shift).

This indicator is especially useful in trading stocks, forex, and futures, where accurately identifying support and resistance can improve decision-making by providing clarity in volatile markets.

How the Indicator Works

The functionality of the indicator is based on detecting protected high and low pivots. These pivot points are determined by using a combination of the high and low price levels and the Average True Range (ATR) to establish the confirmation distance.

  1. Pivot Detection: The indicator examines recent prices to find conditions that qualify a point as a high or low pivot. To do this, it evaluates whether the current price exceeds certain levels and meets high or low conditions within a defined period.
  2. Protected Level Confirmation: Once a pivot has been identified, the indicator assesses whether the price has held or surpassed that level, turning it into a protected level. These points are highlighted on the chart and serve as critical support or resistance zones.
  3. BOS and MSS Labels: At confirmed pivot points, the indicator can display “BOS” or “MSS” labels based on the structural change. These terms help interpret whether the price is breaking an existing structure or shifting market structure.

Configuration Parameters

The indicator offers a range of customizable settings to adjust its behavior based on user preferences or specific analysis needs. Here are some key parameters:

  • ps (Analysis Period): Defines the number of bars the indicator uses to determine whether the price meets the pivot conditions. Higher values make the indicator more conservative in detecting pivots.
  • ATR (Average True Range): The ATR is a key component in calculating the confirmation distances for pivots. By default, the ATR period is set to 14 bars, though it can be adjusted to fit different time frames or volatilities.
  • Coefficient (coef): This parameter adjusts the sensitivity of the confirmation level relative to the ATR. A higher coefficient increases the protective distance for pivots, while a lower value decreases this distance, showing more pivot points.
  • Labels (showLabels and labelType): Users can decide whether to display labels at pivots and, if so, choose the label type: only market structure shifts (MSS), breakouts of structure (BOS), or both.
  • Show Protected Highs & Lows (showphl): Activates or deactivates the display of ▲ and ▼ symbols indicating the presence of protected highs and lows on the chart.

Implementation and ProBuilder Code

Below is the ProBuilder code for the Protected Highs & Lows indicator.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. atlante • 132 days ago #

    buenas tardes pero es un sistema que repinta
    por que pasa eso si repinta no sirve.gracias de todas formas decirte que eres un crack

  2. Madrosat • 127 days ago #

    Bonjour Ivan je ne sais pas si je dois écrire en Français ,anglais ,espagnol ,il y a les 3 langues utilisées et il n’y a pas de drapeau , Roberto qui passe son temps à nous dire qu’on utilise pas le bon langage
    va encore réagir, ce serait mieux Roberto que tu nous donnes de temps en temps une stratégie qui fonctionne..
    Ivan ton travail sur les indicateurs est remarquable mais il faut aller plus loin et nous donner si possible à chaque nouvel indicateur une stratégie qui pourrait s’adapter à cet indicateur.
    Ou une façon de l’utiliser en stratégie automatique. Je t’en crois capable.
    Bonne journée

    • Iván • 127 days ago #

      Bonjour, la vérité est que ce n’est pas aussi facile qu’il n’y paraît…. Un indicateur peut être utilisé dans une stratégie uniquement pour ouvrir des positions, uniquement pour fermer des positions, les deux options, pour filtrer des valeurs, pour combiner avec d’autres indicateurs… Bref, cela ouvre un monde beaucoup plus vaste.
      J’ai également commencé à créer des screeners et j’espère pouvoir montrer un jour un système automatisé avec ces indicateurs que je partage.

  3. Madrosat • 126 days ago #

    Merci Ivan j’espère que ce jour viendra bientôt , je sais que ce n’est pas facile car les indicateurs ne prédisent pas l’avenir j’ai moi même essayé plusieurs stratégies avec moyennement de succès
    ce qui me parait le plus difficile s’est de ne pas sortir d’un canal pour éviter les coups de boutoirs des grandes bougies ou des grandes mèches.
    Tes connaissances et tes facilités à traduire les indicateurs sont remarquables j”ai confiance en toi pour aller plus loin.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
juju333 Merci Nicolas, j'utilisais avec bonheur ce code dans la 10.3, il ne tourne plus dans la v11....
Nicolas Remplacer les lignes 11 et par 12 avec: yearlyHigh = Highest[max(1,BarIndex - lastYearBarI...
juju333 merci !!!
rajiwas Hello Nicolas, With Daily Pivot, it easy for me to show current day pivot e.g. if Date = T...
Nicolas You'll find many other pivots points indicators in the library, just use the search box of t...
rajiwas Thanks for the suggestion.
Doctrading Thanks, man !
rajiwas How is it possible to add currentWeekHigh and currentWeekLow, currentWeekOpen and currentWee...
Takeshi Totally don't match the PRT basic pivots on weekly
Grantx When I add this code, the indicator appears in the panel below price. How do I get it to dis...
Patrik72 Hello, thank you very much for the great indicator. One question, is it possible just have l...
datageek is it possible to add Mid pivot points (midR1 and MidS1)?

Top