Page 1 of 99

Dynamic Zone indicators for MT4

Posted: Sat Feb 18, 2017 2:39 am
by mladen
Dynamic Zone Indicators for Metatrader 4

Example: Dynamic Zone RSI shown on a ProRealTime Chart

It seems that David Stendahl can not help him self :)
Where his name appears "attached" to some indicator or TA way, it sure is worth trying it out and studying it.

The basis for these were originally published in the Stocks & Commodities July 1996 issue (attached the original article here).

Many of the "dynamic zone" indicators floating around on the net are a simple Bollinger Bands applied to some indicator while, according to Leo Zamansky and David Stendahl we have :

To better understand dynamic zones, let's first describe them mathematically and then explain their use. The dynamic zones definition:

Find V such that:
For dynamic zone buy: P{X <= V}=P1

For dynamic zone sell: P{X >= V}=P2

Where P1 and P2 are the probabilities set by the trader, X is the value of the indicator for the selected period and V represents the value of the dynamic zone.

The probability input P1 and P2 can be adjusted by the trader to encompass as much or as little data as the trader would like. The smaller the probability, the fewer data values above and below the dynamic zones. This translates into a wider range between the buy and sell zones. If a 10% probability is used for P1 and P2, only those data values that make up the top 10% and bottom 10% for an indicator are used in the construction of the zones. Of the values, 80% will fall between the two extreme levels. Because dynamic zone levels are penetrated so infrequently, when this happens, traders know that the market has truly moved into overbought or oversold territory.

CALCULATING THE DYNAMIC ZONES

The algorithm for the dynamic zones is a series of steps. First, decide the value of the lookback period t. Next, decide the value of the probability Pbuy for buy zone and value of the probability Psell for the sell zone.

For i=1, to the last lookback period, build the distribution f(x) of the price during the lookback period i. Then find the value Vi1 such that the probability of the price less than or equal to Vi1 during the lookback period i is equal to Pbuy. Find the value Vi2 such that the probability of the price greater or equal to Vi2 during the lookback period i is equal to Psell. The sequence of Vi1 for all periods gives the buy zone. The sequence of Vi2 for all periods gives the sell zone.

In the algorithm description, we have: Build the distribution f(x) of the price during the lookback period i. The distribution here is empirical namely, how many times a given value of x appeared during the lookback period. The problem is to find such x that the probability of a price being greater or equal to x will be equal to a probability selected by the user.
Probability is the area under the distribution curve. The task is to find such value of x that the area under the distribution curve to the right of x will be equal to the probability selected by the user. That x is the dynamic zone.

So, nothing to do with Bollinger Bands :)

Dynamic zone calculation can be applied to a wide range of indicators and this thread is going to be a thread where I think those should be kept (simply in order to make them available in one place).

Re: Dynamic Zone indicators for MT4

Posted: Sat Feb 18, 2017 2:53 am
by mladen
Now a couple of words of additional explanation :

This is not going to be a copy of the original thread. Instead we are going to post mainly the newest code and completely new code of course. The basis used will be the code that calculates floating levels and quantile bands (since they can be treated as dynamic levels and since, quantile bands for example, are almost identical in values to dynamic zones) but also some of the code that is probably outstanding will be posted here too

Re: Dynamic Zone indicators for MT4

Posted: Sat Feb 18, 2017 2:55 am
by mladen
To start with (made by mrtools) :

Re: Dynamic Zone indicators for MT4

Posted: Sat Feb 18, 2017 2:58 am
by mladen
Dynamic zones PA (phase accumulation) adaptive MACD made to use either floating levels or quantiles.

Re: Dynamic Zone indicators for MT4

Posted: Sat Feb 18, 2017 2:59 am
by mladen
ADXm (the levels version) with a choice of floating or quantile levels (which makes it one of the "new dynamic zones" versions)

Re: Dynamic Zone indicators for MT4

Posted: Tue Feb 21, 2017 7:16 am
by mladen
New version of dynamic zones vhf adaptive cci
Optimized code. Optimized multi time frame mode (made lighter on the CPU in multi time frame mode).

Re: Dynamic Zone indicators for MT4

Posted: Sun Feb 26, 2017 4:13 am
by mrtools
This Mladen's dynamic zones of range on oma. The indicator has options for color change on slope change, color change on middle levels cross,color change on inner levels cross, or color change on outer levels cross. The alerts correspond to the color option selected.

Re: Dynamic Zone indicators for MT4

Posted: Sun Feb 26, 2017 4:45 am
by camisa
mrtools wrote:This Mladen's dynamic zones of range on oma. The indicator has options for color change on slope change, color change on middle levels cross,color change on inner levels cross, or color change on outer levels cross. The alerts correspond to the color option selected.

 
is it possible to add price options to this one?

Re: Dynamic Zone indicators for MT4

Posted: Sun Feb 26, 2017 5:27 am
by mrtools
camisa wrote:
is it possible to add price options to this one?
Hi Camisa, sorry no it is not possible since it is using high and low it's calculations.

Re: Dynamic Zone indicators for MT4

Posted: Mon Feb 27, 2017 3:02 am
by mrtools
New version of dynamic zone value chart with arrow and alert options on step ma pdf color change and or on the candles entering and exiting overbought zones.