ao
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.ao(high: ArrayLike,low: ArrayLike,fast_period: int = 5,slow_period: int = 34) -> np.ndarrayAwesome oscillator: the fast average of the median price minus the slow one.
Parameters
| Name | Type | Default |
|---|---|---|
| high | ArrayLike | |
| low | ArrayLike | |
| fast_period | int | 5 |
| slow_period | int | 34 |
NaN for the first slow_period - 1 bars.
Classpython
forge.ta.AO(**inputs: Any) -> NoneMomentum 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 |
AO = SMA(median, fast_period) - SMA(median, slow_period), median = (high + low) / 2