# Awesome oscillator

`ao`

Momentum from the gap between a fast and a slow average of the median price.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| fast_period | int | 5 | 1 to 5000 |
| slow_period | int | 34 | 1 to 5000 |

## Outputs

| Name | Kind |
| --- | --- |
| ao | value |

Warm-up: slow_period - 1 bars (33 at the defaults).

Repaints: No.

## Formula

AO = SMA(median, fast_period) - SMA(median, slow_period), median = (high + low) / 2
