sto
Stochastic Oscillator %K and %D : A stochastic oscillator is a momentum indicator comparing a particular closing
Source Code: [link]
openbb.forecast.sto(dataset: pd.DataFrame, close_column: str = "close", high_column: str = "high", low_column: str = "low", period: int = 10)
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| dataset | pd.DataFrame | The dataset you wish to calculate for | None | False |
| period | int | Span of time to calculate over | 10 | True |
| close_column | str | The column name for the close price | close | True |
| high_column | str | The column name for the high price | high | True |
| low_column | str | The column name for the low price | low | True |
Returns
| Type | Description |
|---|---|
| pd.DataFrame | Dataframe with added STO K & D columns |