Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.
Williams' Accumulation/Distribution, W_A/D is the accumulated sum of positive "accumulative" price movements and negative "distributive" ones. The term "accumulation" is used to denote the market controlled by buyers, "distribution" denotes that the market is controlled by sellers.
Thus, if the current closing price is higher than the previous one, W_A/D is enlarged by the difference between the current closing price and the true minimum. If the current closing price is less than the previous, W_A/D is diminished by the difference between the current closing price and the true maximum.
As trade signals of this indicator, Williams recommends using divergences:
-
when price reaches a new maximum and W_A/D cannot reach the new maximum, it means the security distribution takes place. This is a signal to sell;
Protect profits effectively with the smart Trailing Stop Expert Advisor. Advanced trailing options for MT4/MT5. See it in action.
-
when prices reaches a new minimum and W_A/D cannot reach the new minimum, it means the security accumulation takes place. This is a signal to buy.

Complement community code with advanced automation from RobotFX.
7064