iAD Indicator

Overview

Calculates the Accumulation/Distribution indicator and returns its value.

Function Signature

double iAD(
  string      symbol,     // symbol
  int         timeframe,  // timeframe
  int         shift       // shift
);

Parameters

  • **symbol** [in]: Symbol name for calculation. NULL uses the current symbol.
  • **timeframe** [in]: Timeframe. Any ENUM_TIMEFRAMES value. 0 uses the current chart timeframe.
  • **shift** [in]: Index of the value from the indicator buffer (shift relative to the current bar).
  • Returned Value

    Numerical value of the Accumulation/Distribution indicator.

    Example

    double result = iAD(NULL, 0, 1);
    

    Related Indicators

  • [iAC](/indicators/iac)
  • [iADX](/indicators/iadx)