Hi, I just realized in MQL4 iADX is defined as:
in MQL5 some options are missing - or am I wrong:
the "timeframe" and "applied_price" - have they been lost or is there another way of getting that?
Timeframe has become period and i guess they dropped the base price enumeration because when trend moves up the average direction of all these price bases will also move up and when there is a down trend, all prices will also have a decreasing direction.
So the question will be why do you need them ?
I just re-coded a mql5 indicator for mql4 and I realized the difference of the parameters. Yes, I have overseen the existence of timeframe, but the applied_price - I don't need it in my case, but generally speaking?
Ok, PRICE_HIGH and PRICE_LOW or PRICE_OPEN are probably very seldom used, but what about Median, Weighted, ...?
Well it's a directional indicator so if one moves up they all move up.
One can not simply stay behind.
Median for example is Ask+Bid / 2 so if the trend direction is up those two will also move up and there will be no difference in the directional output of said indicator.
Well that depends on which median you are looking for of course you can also use High and Low or Open and Close and etc.
The maximum price for the period
The minimum price for the period
Median price, (high + low)/2
Typical price, (high + low + close)/3
Weighted close price, (high + low + close + close)/4
Reduced to one if you ask me.
This is related to the actual indicator.
If you look at for example iMacd it's still there.
The function returns the
handle of the Moving Averages Convergence/Divergence indicator. In
systems where OsMA is called MACD Histogram, this indicator is shown as
two lines. In the client terminal the Moving Averages
Convergence/Divergence looks like a histogram.