WilliamsAccumDistr

Category: Indicators

The Williams Accumulation Distribution (WilliamsAccumDistr) is a technical analysis indicator used to determine the buying and selling pressure in the market. It helps in identifying divergences which can signal potential reversal points in the price of a stock or other financial instrument.

Syntax:

WilliamsAccumDistr(price)

Calculation:

  • TRH (True Range High): The higher value between yesterday’s close and today’s high.
  • TRL (True Range Low): The lower value between yesterday’s close and today’s low.
  • The Accumulation/Distribution (A/D) value is calculated based on the comparison between today’s close and yesterday’s close:
    • If today’s close is greater than yesterday’s close, A/D = today’s close – TRL.
    • If today’s close is less than yesterday’s close, A/D = today’s close – TRH.
    • If today’s close equals yesterday’s close, A/D = 0.
  • The final Williams Accumulation Distribution value is the sum of today’s A/D and yesterday’s A/D.

Example:


i1 = WilliamsAccumDistr(close)
bullish = 0
bearish = 0
IF(i1 > 0) THEN
    bullish = bullish + 1
    bearish = bearish - 1
ELSIF(i1 < 0) THEN
    bullish = bullish - 1
    bearish = bearish + 1
ENDIF
RETURN bullish, bearish

This example calculates the Williams Accumulation Distribution value based on the close prices. Depending on the indicator's value, it increments or decrements counters for bullish and bearish signals, which could be used to make trading decisions.

Additional Information:

The Williams Accumulation Distribution indicator is particularly useful for spotting divergences. A bullish divergence occurs when the price records lower lows while the indicator forms higher lows, suggesting a potential upward reversal. Conversely, a bearish divergence happens when the price makes higher highs while the indicator makes lower highs, indicating a potential downward reversal. These divergences can be key signals for traders regarding potential changes in market trends.

Logo Logo
Loading...