Can you program this formula ?
1. We use Larry Williams Accumulation Distribution indicator (LWAccDis).
2. Calculate the difference between the LWAccDis of current bar and prior bar.
F1 = LWAccDis - LWAccDis[1]
3. Compute a 14-bar exponential moving average (EMA) of this difference
F2 = EMA (F1, 14)
4. Smooth this average with a 7-bar exponential moving average (EMA).
Indic A/D = EMA (F2,7)
5. Plot "Indic A/D"
1. We use Larry Williams Accumulation Distribution indicator (LWAccDis).
2. Calculate the difference between the LWAccDis of current bar and prior bar.
F1 = LWAccDis - LWAccDis[1]
3. Compute a 14-bar exponential moving average (EMA) of this difference
F2 = EMA (F1, 14)
4. Smooth this average with a 7-bar exponential moving average (EMA).
Indic A/D = EMA (F2,7)
5. Plot "Indic A/D"