Syntax
public AccelerationDeceleration(Bars bars, int period1, int period2, int smoothing, string description)
public static AccelerationDeceleration Series(Bars bars, int period1, int period2, int smoothing)
Parameter Description
  
    | bars | A Bars object | 
  
    | period1 | First moving average period | 
  
    | period2 | Second moving average period | 
  
    | smoothing | Thrid moving average period | 
Description
Acceleration/Deceleration by Bill Williams measures acceleration and deceleration of the current market trend.
It's the difference between the value of a 5/34-period Awesome Oscillator and its 5-period smoothed version:
Median price = (High+Low) / 2
Awesome Oscillator = SMA(median price, 5)-SMA(median price, 34)
AD = Awesome Oscillator-SMA(Awesome Oscillator, 5)
Interpretation
Example
The following example will plots Acceleration/Deceleration:
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
using Community.Indicators;
namespace WealthLab.Strategies
{
	public class ADDemo : WealthScript
	{
		protected override void Execute()
		{
			AccelerationDeceleration ad = AccelerationDeceleration.Series(Bars,5,34,5);
			HideVolume();
			ChartPane pAD = CreatePane( 30, false, false );
			PlotSeries( pAD, ad, Color.Red, LineStyle.Histogram, 2 );
		}
	}
}