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 • 42 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 • 37 days ago #

      Thank you very much!

  2. Claudio • 18 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 • 16 days ago #

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

avatar
Register or

Likes

avatar avatar avatar avatar avatar
Related users ' posts
francis59 Hello Ivan, thanks for this very nice and powerfull indicator. Could you have time to create...
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
Gio56 Super idée. j'ai juste un souci. j'ai pas de barre verte mais plusieurs lignes de couleurs.....
DeathMetal change line in histgram, (click on indicator name, click on tool (
Gio56 Super merci.
KumoNoJuzza Thank you @philippe59139 !! We finally have the VAL / VAH to play with. Could you attach th...
yanntorp Merci @pilippe59139 pour le travail que vous partagez. Vos programmes sont vraiment au top.
philippe59139 Merci Yanntorp
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Fgats https://www.prorealcode.com/topic/indicateur-3-sigma-documentation/ lien pour la documentat...
DELBERT Bonjour , merci pour le partage et la traduction , je vais essayer d'assimiler ce nouvelle i...
Iván
3 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
3 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
Iván
3 months ago
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
philippe59139 Bravo super travail
gidien
4 months ago
gidien Thanks for the hint. I think i know now, why this happen. The "settings" block was added by ...
LucasBest Thank you for sharing your work, both original and very disconcerting. When I went through t...
gidien Hello LucasBest, thanks for your comment. Point 1: Yes your are right. The Zigzag ve...
gidien
4 months ago
Cram13 Bonjour, qu'elles sont les valeurs des variables ? Avec mes remerciements Marc
gidien This indicator will not return any value. You can change the last line to : return ao...
gidien SMA1 = MovingAverage Length applied to the source candles (high , low, op...
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
Msport71 Thank You very much
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...

Top