Skip to main content

roc

A momentum oscillator, which measures the percentage change between the current

Source Code: [link]

openbb.forecast.roc(dataset: pd.DataFrame, target_column: str = "close", period: int = 10)

Parameters

NameTypeDescriptionDefaultOptional
datasetpd.DataFrameThe dataset you wish to calculate withNoneFalse
target_columnstrThe column you wish to add the ROC tocloseTrue
periodintTime Span10True

Returns

TypeDescription
pd.DataFrameDataframe with added ROC column