## Dynamic Zone indicators for MT4

Moderators: xard777, mrtools, Banzai

### Re: Dynamic Zone indicators for MT4

#841
mrtools wrote:
Thu Nov 18, 2021 5:00 am
I adjusted the indicator a bit to make it more "tradable" (of course this is only my very subjective perspective).
But now the colouring doesn't work well.
Colour change on slope change would be better
or at least colour change on signal line crossing
Maybe - if you find the time - you want to look at it yourself to check if I am correct.
dz ma atr - nma 3_2 mtf.mq4

### Re: Dynamic Zone indicators for MT4

#842
Woodyz wrote:
Fri Nov 19, 2021 10:23 am
Natural Moving Average (NMA)
I'm not disputing there is such a thing as 'natural ma' but in the context of it being in a sub window indicator I still suspect it stands for 'normalised'.

### Re: Dynamic Zone indicators for MT4

#843
Ogee wrote:
Fri Nov 19, 2021 9:30 pm
I'm not disputing there is such a thing as 'natural ma' but in the context of it being in a sub window indicator I still suspect it stands for 'normalised'.
NMA is calculated when iNma() function is called, for example in this line :

Code: Select all

``      double ma    = iNma(price,iTema(price,TemaLength,i,0),Length,i,0);``
The lines of code the you have shown have nothing in common with the NMA itself

PS: The NMA (Natural Moving Average) definition by Jim Sloman :
7 . The Natural Moving Average

Effort* to develop a natural moving average were in the background ol
my mind for a long time. It seemed to me that the simple concept of a
moving average was the most powerful idea ever discovered in the Search
to analyze series ot numbers. Here was something that could summarize,
in die most powerful way, what was happening.

Due the simple moving average had some powerful defects too. One,
it weighed all its time points equally, without adjusting for nearness to the
now moment. And second, an arbitrary constant gets introduced which
radically determines what you see. A 10-day moving average of a market
looks far different than a 200-day moving average.

A big improvement, in my opinion, was the EMA, or exponential
moving average. I don’t know who discovered it, but they did some fine
work. The great insight of the exponential is that the distance itself

between the average and .lie price is always adjusted, in this ease by <he
constant. To take a simple example, if the price moves to 100 and the
EMA is at 90 and the constant is 0.1, then the new EMA becomes 91.
The EMA moved 0.1 of the distance which separated it from the price.

In addition, if we analyse the EMA mathematically, we find that it
gives price points more weight as they get closer to the now moment. 1 lie
exact way in which it does this, of course, is determined by the constant
you supply.

And there’s the rub. Ikcause once again were introducing a constant
which, depending on what we supply, radically alters the “window”
through which we're looking at die market or number series.

To remedy this shortcoming, some fine work hv Clundc and others
lias been done to vary the constant based on the volatility o< the market.

I would now like to add modestly to these el forts.

As always, 1 was looking for something where this adjustment for
volatility would he non-arbitrary in that there would he no introduction
of new constants. And where the adjustment for volatility would not he
programmed in (if die volatility changes this much, change the constant
that much), but rather where the volatility-adjustment would naturally
arise somehow from the market itself.

In calculating the exponential constant, I used the absolute value of
NMR for the numerator, which provides a natural falling-off in influence
as the price moves farther from the now momenr. The denominator
became simply the sum of the (absolute value of the) ols over the period
of rime in which data is supplied for calculating the NMR. If we supply
40 days (or units) of data to calculate the NMR. then we supply 40 days
(or units) of ols for the denominator.

The resulting ratio is then used as the constant in calculating an hMA
in the normal way.

The denominator of that ratio is the sum of the absolute changes in
the natural log of the price. The numerator is also those same changes,
but naturally adjusted (by the differences in the square roots of time) for
the falling away in influence as time goes away from the now moment.

The result, the Natural Moving Average or NMA, automatically
adjusts for volatility without being programmed to do so. and without
introducing any constants.

### Re: Dynamic Zone indicators for MT4

#844
Fri Nov 19, 2021 10:17 pm
NMA is calculated when iNma() function is called, for example in this line :

Code: Select all

``      double ma    = iNma(price,iTema(price,TemaLength,i,0),Length,i,0);``
The lines of code the you have shown have nothing in common with the NMA itself
PS: The NMA (Natural Moving Average) definition by Jim Sloman :
OK, thanks for clearing that up.

### Re: Dynamic Zone indicators for MT4

#845
josi wrote:
Fri Nov 19, 2021 8:57 pm
I adjusted the indicator a bit to make it more "tradable" (of course this is only my very subjective perspective).
But now the colouring doesn't work well.
Colour change on slope change would be better
or at least colour change on signal line crossing
Maybe - if you find the time - you want to look at it yourself to check if I am correct.
Now it has options for color on slope change, or on signal cross, zeroline cross, or no color.
dz ma atr - nma 3_3 mtf.mq4

### Re: Dynamic Zone indicators for MT4

#846
mrtools wrote:
Sat Nov 20, 2021 5:22 am
Now it has options for color on slope change, or on signal cross, zeroline cross, or no color.

indicaror windows is blank, does it need a special DLL?

### Re: Dynamic Zone indicators for MT4

#847
camisa wrote:
Sat Nov 20, 2021 6:37 am
indicaror windows is blank, does it need a special DLL?
Yes the dynamic zone dll, should be on page 1 of this thread.

### Re: Dynamic Zone indicators for MT4

#848
mrtools wrote:
Sat Nov 20, 2021 5:22 am
Now it has options for color on slope change, or on signal cross, zeroline cross, or no color.
Very nice!

For beginners:
If you use it as it is now: make sure you are certain about directional bias beforehand.

### Re: Dynamic Zone indicators for MT4

#849
Hi, does anyone know where I can find a working version of the attached? This used to be working when I last used it in March but now the dynamic zones aren't showing up on the indicator and the stochastic line sometimes gets truncated or disappears when switching timeframes...
Dynamic Zone Stochastic.ex4

1. ### Similar Topics

1. #### ACTION ZONE:ORIGINAL MATRIX

265 Replies 12422 Views

by amdudus, Sat Aug 14, 2021 7:52 pm in Trading Systems

265 Replies
12422 Views
2. #### How can I find the Bars number corresponding to different time zone

2 Replies 286 Views

by mbastem, Sat Sep 18, 2021 4:29 am in MT4 Indicators

2 Replies
286 Views
3. #### Need Help with Fibonacci Golden Zone

6 Replies 351 Views