Files
OpenBB/website/versioned_docs/version-v3/sdk/reference/forecast/roc.md
Theodore Aptekarev f72bc8ccec Add Versioned Documentation (#5470)
* Adding versioning to docs

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: tehcoderer <me@tehcoderer.com>
2023-09-29 11:49:05 +02:00

824 B
Vendored

title, description
title description
roc OpenBB SDK Function

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

Name Type Description Default Optional
dataset pd.DataFrame The dataset you wish to calculate with None False
target_column str The column you wish to add the ROC to close True
period int Time Span 10 True

Returns

Type Description
pd.DataFrame Dataframe with added ROC column