Indicators: Average Directional Movement Index Wilder
tr(i) = Max(ABS(High(i) - High(i-1)), ABS(High(i) - Close(i-1)), ABS(Low(i) - Close(i-1)))
description error

tr(i) = Max(ABS(High(i) - Low(i)), ABS(High(i) - Close(i-1)), ABS(Low(i) - Close(i-1)))
First, the positive (dm_plus) and negative (dm_minus) changes at each bar are calculated, as well as the true range of tr:
If Low(i-1) - Low(i) > 0 dm_minus(i) = Low(i-1) - Low(i), otherwise dm_minus(i) = 0.

If Low(i-1) - Low(i) > 0 dm_minus(i) = Low(i-1) - Low(i), else dm_minus(i) = 0.
If (dm_plus(i)>dm_minus(i)) dm_minus(i) = 0;
otherwise {
if (dm_plus(i)<dm_minus(i)) dm_plus(i)=0;
otherwise dm_minus(i) = 0,dm_plus(i)=0;
}
Please post codes for ADX Wilder for MT4.....
adonis
Average Directional Movement Index Wilder:
Average Directional Movement Index Wilder (ADX Wilder) helps to determine if there is a market trend.
This technical indicator is constructed as a strict correspondence with the algorithm described by Welles Wilder in his book "New concepts in technical trading systems".
Trading rules of this indicator are described in the Average Directional Movement Index.
Author: MetaQuotes Software Corp.