The “Acceleration/Deceleration Oscillator” indicator (eng. Accelerator / Decelerator Oscillator, AC) is calculated based on the median price on simple moving averages with periods of 5/34 and 5.
This modification allows you to calculate the indicator based on any combination of 4 main prices: Close, Open, High and Low; choose the periods and the method of averaging the moving average: simple (SMA), exponential (EMA), smoothed (SMMA), linear-weighted (LWMA), double exponential (DEMA), triple exponential (TEMA).
Input parameters:
- Fast period – the period of the fast moving average;
- Slow period – the period of the slow moving average;
- AC period – the period of the fast moving average for AC;
- Moving average mode-averaging method: Simple (Simple, SMA), exponential (Exponential, EMA), Smoothed (Smoothed, SMMA), Linear Weighted (Linear Weighted, LWMA), Double exponential (Double Exponential, DEMA) or Triple exponential (Triple Exponential, TEMA);
- Close – the weight factor of the CLOSE price for calculating the individual price;
- Open-the OPEN price weighting factor for calculating the individual price;
- High – the HIGH price weighting factor for calculating the individual price;
- Low – the LOW price weighting factor for calculating the individual price.
[spoiler title=”Read More…”]
Example 1. Calculate the indicator based on the OPEN price: Close=0, Open=1, High=0, Low=0.
Example 2. Calculate the indicator based on the WEIGHTED price: Close=2, Open=0, High=1, Low=1.
Example 3. Calculate the indicator based on an individual price constant: Close=6, Open=7, High=1, Low=3. Price=(6*Close 7*Open 1*High 3*Low)/17.
[/spoiler]