Skip to main content

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

NameTypeDescriptionDefaultOptional
datasetpd.DataFrameThe dataset you wish to calculate forNoneFalse
periodintSpan of time to calculate over10True
close_columnstrThe column name for the close pricecloseTrue
high_columnstrThe column name for the high pricehighTrue
low_columnstrThe column name for the low pricelowTrue

Returns

TypeDescription
pd.DataFrameDataframe with added STO K & D columns