Hello Admin,
I'm trying to create a custom Accelerator/decelerator indicator where i can adjust the moving average. The formula I found online as a guide is as follows:
1. Count the difference of two Simple Moving Average, AO.
AO = SMA(Median Price, 5) - SMA(Median Price, 34)
2. The result is the difference between AO and the Moving Average of AO
AC = AO - SMA(AO, 5)
Substitute AO with DIF would be more self-explanatory. The only reason to use AO is that the AO (Can't find indicator/ao-awesome-oscillator to include!) also introduced by Bill Williams.
DIF = SMA(Median Price, 5) - SMA(Median Price, 34)
AC = DIF - SMA(DIF, 5)
http://kolier.li/indicator/accelerator-oscillator***The part that is confusing me is the equation AC = DIF - SMA(DIF, 5). How can I create a command asking for the SMA of AO??