Chaikin Oscillator

The Chaikin Oscillator is an exponential MACD of Chaikin's Accumulation Distribution Line. The short period is normally set to 3 and the long period is normally set to 10.

Custom PCF Formula
((q - 1) * XAVG(Vz * (2 * Cz - Hz - Lz) / (Hz - Lz), q) - (p - 1) * XAVG(Vz * (2 * Cz - Hz - Lz) / (Hz - Lz), p)) / 2
p=ShortPeriod, q=LongPeriod, z=Offset

Where p is the short period and must be an integer (is usually 3).

Where q is the long period and must be an integer (is usually 10).

Where z is the offset. An offset of 1 would be 1 bar ago.

Examples

The current Chaikin Oscillator can be written as follows.

((10 - 1) * XAVG(V * (2 * C - H - L) / (H - L), 10) - (3 - 1) * XAVG(V * (2 * C - H - L) / (H - L), 3)) / 2

The Chaikin Oscillator from the previous bar can be written as follows.

((10 - 1) * XAVG(V1 * (2 * C1 - H1 - L1) / (H1 - L1), 10) - (3 - 1) * XAVG(V1 * (2 * C1 - H1 - L1) / (H1 - L1), 3)) / 2