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 • 04/04/2024 #

    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 • 04/04/2024 #

      Thank you very much!

  2. Claudio • 04/04/2024 #

    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 • 04/04/2024 #

      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
geroniman Merci Ivan, super indicateur. Question: comment modifier la transparence des rectangles?
roccafragius Hi Ivan sorry another question, in order to create a bot that open the trade, I'm tryng to c...
roccafragius ////////////////////////////////////////// 0825-liquidity-test //--------------------------...
Iván no it wasn't
xpe74 could be interesting to do so as visually it works well ....
xpe74 Hi ivan, still working on your indicator. Is there a way (as i'm not a coder) to integrate i...
Chrisinobi Hallo Iván Ein sehr schöner guter Indikator, nach meinen ersten Tests ist er sehr Effektiv ...
Iván Danke, ich werde es berücksichtigen.
hartgeld Hallo Ivan, das ich das noch erleben darf....QQE in dieser Qualität bei ProRealTime...vielen...
bertrandpinoy thank you for the work, can you improve by displaying the price level and the time of the si...
Iván Hi! you can do it adding below current signal lines. c=close // define price to show in gra...
Alessandro Furlani
1 month ago
Delphic Combo 1.0
Delphic Combo 1.0
2
Indicators
Alessandro Furlani I want to add the setup for Spot Gold and Spot Silver with 1H timeframe. Spot Gold 1H Per...
Alessandro Furlani I have just upload the ProOrder robot in the Strategies section. Enjoy
ThibauldR_Weekenday
2 months ago
HULL MA + SIGNALS
HULL MA + SIGNALS
1
Indicators
Indicolite Hi, there appears to be errors in lines 90 & 91, I can't run it on ProRealTime.
BaderBader Hello Iván, I wanted to take a look at your indicator. Thank you very much for making it av...
Iván Hello, I just copied and pasted the indicator and I don’t have any problem...
Marc Boliart Hi! i do not know why _v.1.1"] was on 1st line, remember to remove it!
Iván
2 months ago
roccafragius Hi Ivan, unfortunatelly I still hace some problem using timeframe 3 minutes in 1 minutes, th...
Dron No se puede importar a la PRTV12 porque formato es incorrecto, intente copiar codigo que has...
Iván Hola. No puedo arreglarlo. Puedes copiar/pegar (2 segundos) y tienes el indicador... La V...
Iván
2 months ago
Violet Ivan, it looks as if something is really wrong with this indicator. When I import and apply ...
Iván Hello! For proper visualization, it is recommended to have more than 1k bars loaded.
Violet Thanks Ivan. Though it does not remove the 'tapering at the beginning' phenomenon, it does m...
2 Fast Two things stand out to me: I see a lot of horizontal blocks in the chart instead of vertica...
lkiklkik thanks for the hard work and sharing
adeelq79 Great work Ivan. Thanks

Top