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.


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'.
Image
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.
These users thanked the author mladen for the post (total 3):
KAESER444, ChuChu Rocket, BeatlemaniaSA

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.
These users thanked the author mrtools for the post (total 9):
rudiarius, josi, Jimmy, KevK212, Krunal Gajjar, alexm, RodrigoRT7, Manu9710, Jedidiah


Re: Dynamic zone indicators ...

850
mntiwana wrote: Thu Sep 14, 2017 3:47 pm Value chart Oma & alerts nmc
Though Value chart indicators do not belongs to this thread but posting here to keep these at one place for ease of our value members/users for to find and access easily
This version of value chart using OMA - with unique ID - number of bars/periods - line chart true/false - OMA parameters including adaptive - alerts and some more too
Image

Image

Image
hello mntiwana, do you have this indicator, if yes, you can share it,
Attachments


Who is online

Users browsing this forum: Amazon [Bot], ChatGPT [Bot], Dego, Google [Bot], IBM oBot [Bot], Majestic-12 [Bot], Proximic [Bot], Woodyz and 86 guests