Variable AWESOME_OSCILLATORConst

AWESOME_OSCILLATOR: IndicatorDescriptor = ...

Awesome Oscillator — the gap between a fast and a slow midpoint average.

The reference hard-codes 5 and 34 and exposes no inputs, so neither does this: the two periods are the definition of the study, not a preference. Colour is the second half of the signal — green while the histogram is building against the previous bar, red while it is fading — and that is a per-bar decision, hence colorBy on one column rather than two plots that would each carry holes. On the first printed bar the previous value is na, and the reference na <= 0 is false, so it starts green.