MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Technical indicators  iAC

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
double iAC( string symbol, int timeframe, int shift)
Calculates the Bill Williams' Accelerator/Decelerator oscillator.
Parameters:
symbol   -   Symbol name of the security on the data of which the indicator will be calculated. NULL means the current symbol.
timeframe   -   Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.
shift   -   Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
Sample:
  double result=iAC(NULL, 0, 1);