Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2010.01.26 11:02
Indicators

Accumulation/Distribution - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
3496
Rating:
votes: 30
ad.mq5 (3.26 KB)view

Accumulation/Distribution technical indicator is determined by the changes in price and volume. The volume acts as a weighting coefficient at the change of price — the higher the coefficient (the volume) is, the greater the contribution of the price change (for this period of time) will be in the value of the indicator.

In fact, this indicator is a variant of the more commonly used indicator On Balance Volume. They are both used to confirm price changes by means of measuring the respective volume of sales.

When the Accumulation/Distribution indicator grows, it means accumulation (buying) of a particular security, as the overwhelming share of the sales volume is related to an upward trend of prices. When the indicator drops, it means distribution (selling) of the security, as most of sales take place during the downward price movement.

Divergences between the Accumulation/Distribution indicator and the price of the security indicate the upcoming change of prices. As a rule, in case of such divergences, the price tendency moves in the direction in which the indicator moves. Thus, if the indicator is growing, and the price of the security is dropping, a turnaround of price should be expected.

Accumulation/Distribution

Calculation:

A certain share of the daily volume is added to or subtracted from the current accumulated value of the indicator. The nearer the closing price to the maximum price of the day is, the higher the added share will be. The nearer the closing price to the minimum price of the day is, the greater the subtracted share will be. If the closing price is exactly in between the maximum and minimum of the day, the indicator value remains unchanged.

A/D(i) =((CLOSE(i) - LOW(i)) - (HIGH(i) - CLOSE(i)) * VOLUME(i) / (HIGH(i) - LOW(i)) + A/D(i-1)

where:

  • A/D(i) - value of the Accumulation/Distribution indicator for the current bar;
  • CLOSE(i) - close price of the bar;
  • LOW(i) - the lowest price of the bar;
  • HIGH(i) - the highest price of the bar;
  • VOLUME(i) - volume;
  • A/D(i-1) - value of the Accumulation/Distribution indicator for the previous bar.

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/6

Plombiers - oscillator in the channel. Plombiers - oscillator in the channel.

Sometimes this is useful - to observe the behavior of the oscillator in the channel. Greatly simplifies the evaluation of the situation.

Awesome Oscillator (AO) Awesome Oscillator (AO)

Bill Williams's Awesome Oscillator Indicator (AO) is a 34-period simple moving average, plotted through the middle points of the bars (H+L)/2, which is subtracted from the 5-period simple moving average, built across the central points of the bars (H+L)/2. It shows us quite clearly what’s happening to the market driving force at the present moment.

Alligator Alligator

The Alligator Indicator is a combination of Balance Lines (Moving Averages).

Bollinger Bands ® Bollinger Bands ®

The Bollinger Bands ® Indicator (BB) is similar to Envelopes. The only difference is that the bands of Envelopes are plotted a fixed distance (%) away from the moving average, while the Bollinger Bands are plotted a certain number of standard deviations away from it.