Danger Zones Indicator

Danger Zones Indicator

Introduction

The Danger Zones indicator is crafted to alert traders about potential danger zones that precede significant shifts in market direction.

Trend Identification

The core of the Danger Zones indicator lies in its ability to determine the current market trend using two key components: the Hull Moving Average (HMA) and the Parabolic SAR.

The indicator considers a trend to be bullish when the closing price is above both the HMA and the Parabolic SAR, and bearish otherwise. When the price does not meet these conditions, the trend is considered neutral.

Identification of Danger Zones

The indicator takes a step further by analyzing buying and selling volume, as well as the position of the RSI relative to a moving average, to identify “Danger Zones.” These zones are signaled when the volume shows a significant slowdown compared to the average, indicating a potential loss of strength in the current trend.

Indicator Functionality

Danger Zones employs a series of calculations to assess the rate of change in volume and the position of the RSI. When a slowdown in buying volume is identified during an uptrend, accompanied by a negative movement in net price and the RSI below its moving average, a danger zone for the uptrend is signaled.

Similarly, danger zones for downtrends are identified under opposite criteria. The indicator uses visual signals, such as changes in background color, to alert about these danger zones.

Practical Applications

The Danger Zones indicator can be utilized to adjust entry and exit strategies, looking for signs of weakness in current trends that may suggest a reversal.

It is crucial to adjust the indicator’s settings, such as the length of the HMA or the parameters of the Parabolic SAR, to accommodate different time frames or assets.

Implementation in ProRealTime

To implement and customize the Danger Zones indicator in ProRealTime, users have the ability to modify a series of variables according to their preferences or specific trading strategies. Below are the key variables that can be adjusted:

Length of HMA (Hull Moving Average):

  • length = 200
  • This variable determines the period of the Hull Moving Average used to identify the market trend. A higher value makes the average smoother and less reactive to price changes.

Parameters of the Parabolic SAR:

  • start = 0.02
  • increment = 0.02
  • maximum = 0.2
  • These variables control the behavior of the Parabolic SAR, including the start, increment, and maximum. Adjusting these parameters can make the indicator more or less sensitive to price movements.

Period of Slowdown in Buying and Selling Volume:

  • buyingVolumeSlowdownPeriod = 5
  • sellingVolumeSlowdownPeriod = 5
  • These variables define the period over which the slowdown in buying and selling volume is calculated, respectively. A longer period can help filter out minor changes in volume.

Type and Length of Moving Average for the RSI:

  • maTypeInput = 0 (0 for SMA, other values for different types of moving averages)
  • maLengthInput = 14
  • These variables allow the user to define the type and length of the moving average applied to the RSI. The choice of moving average type and its length can influence the indicator’s sensitivity to RSI variations.

Length of the RSI:

  • rsiLengthInput = 14
  • Determines the period of the RSI used to calculate the Relative Strength Index. A higher value produces a smoother RSI.

Source of the RSI:

  • rsiSourceInput = close
  • Specifies the data source for the RSI calculation, typically the closing price, but it can be adjusted to use other prices like the high, low, or average.

By modifying these variables, users can tailor the Danger Zones indicator to different trading styles, time frames, or personal preferences. It is crucial to experiment with these settings in a testing environment to determine the optimal combination that aligns with your trading objectives.

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. P. Marlowe • 227 days ago #

    Quite an impressive work, as usual. You share extremely useful tools and show an stunning background each day. Keep it up and congratulations. You are a dar hand!

    • Iván • 221 days ago #

      Thank you very much!

  2. Claudio • 203 days ago #

    Good morning Ivan. I try to use this indicator but I receive the automatic message on line 75 and 76

    75 backgroundcolor(255,152,0,70)
    76 elsif downtrendDangerZone then
    The words in subtitled in red are …backgroundcolor…….and elsif.
    Could you please check it?
    Tks a lot
    Claudio

    • Iván • 201 days ago #

      Hi Claudio
      The indicator works fine. Maybe you are with PRT11 instead PRT12?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Iván
4 days ago
atlante buenas tardes pero es un sistema que repinta por que pasa eso si repinta no sirve.gracias d...
Iván
2 weeks ago
Madrosat Bonjour ivan Quelle différence il y a t il entre Extra trend et ultra trend lequel est le p...
P. Marlowe Muy bueno. ¿Podría hacerse para señalar extremos por el lado bajista? Lo mismo a la inversa....
Miro Esta es una versión del indicador, para ambos extremos. //-------------------------------...
P. Marlowe Muchas gracias ¡¡
Iván Hi. You could add these lines of code: if intradaybarindex=0 then varhigh=round((dhigh(...
RTR Edit
@toniyecla ¡gracias! más capturas aqui: https://www.prorealcode.com/wp-content/uploads/2024/10/IC...
robert123 I had a go at the 'order block' version- badly done I'm sure....but a start. // Sonarlabs ...
robert123 take ''sens1 = 5'' out and put ''rango'' in as variable
@toniyecla captura: https://www.prorealcode.com/wp-content/uploads/2024/10/sesiones_v3.png
@toniyecla y más opciones: añade una línea también en sesiones EUROPA y USA (configurable) y un texto o...
@toniyecla // Author: toniyecla - contact@rescommunesomnium.com // VARIABLES // EspHorarioVerano (b...
Alai-n Hello, take a look at this formulation made by "Blade106", Topic link attached post #227334....
@toniyecla ¡interesante acercamiento! (no lo conocía, simplemente tuve la necesidad y lo programé) pers...
Iván
1 month ago
MaoRai54 dear Ivan, it seems to be very interesting but please clarify what are all the lines I see i...
Iván Hi! you have the answer in the last line of code... MacdMiddle as "histo" style(histogra...
kats Le Top , a utiliser avec le nuage violet et alerte TN pour plus de précision.
roccafragius Hello Ivan, another great Indicator, very useful to trace the trend ( blue line) and the pos...
roccafragius Hello Ivan, very good job! May I ask you to translate teh script from TradingView named Tre...
Iván Hi! yes. You can ask for it here: https://www.prorealcode.com/free-code-conversion/
roccafragius Thank you so much Ivan! I created this request in english Translate from TradingView Indicat...
Regisnew très bel indicateur merci
jordan //---settings MAmode=0 Period=150 NumberOfMA=100 //---end of settings MA2=undefined ...
jordan dites moi si cela correspond à ce que vous cherchez
kats bonjour merci de ta reponse mais non ca fonctionne pas sympa quand même d'avoir essayé cdlt
Jean2139 Bonjour Yvan, Merci pour ton indicateur que je trouve très intéressant. Je suppose que tu ...
Suffi Hier eine kleine Korrektur: //-----Inputs-----------------------------------------// MALengt...
adeelq79 Hi Ivan, thank you for this indicator. Is it possible to include the volume of buys and sell...
achel J'ai la même erreur sur ligne 1 avec une importation dans les règles de l'art. Comment faire?
Iván Cela est probablement dû au fait que vous avez une ancienne version de l'outillage. Vérifi...
Iván
4 months ago
Iván Hola javier gracias! es importante realizar buenos backtest antes de lanzarse al mercado y ...
achel I have an error with "fillcolor" - How to solve this? / J'ai une erreur avec "fillcolor" - C...
Iván Hi! This is because you are not with V12. Just delete fillcolor

Top