Skip to main content

omega_ratio

Calculate the Omega Ratio.

The Omega Ratio is a sophisticated metric that goes beyond traditional performance measures by considering the probability of achieving returns above a given threshold. It offers a more nuanced view of risk and reward, focusing on the likelihood of success rather than just average outcomes.

Example​

from openbb import obb

stock_data = obb.equity.price.historical(symbol="TSLA", start_date="2023-01-01", provider="fmp").to_df()
returns = stock_data["close"].pct_change().dropna()
obb.quantitative.omega_ratio(data=returns, target="close")

Parameters​

NameTypeDescriptionDefaultOptional
dataList[Data]Time series data.False
targetstrTarget column name.False
threshold_startfloatStart threshold, by default 0.00.0False
threshold_endfloatEnd threshold, by default 1.51.5False

Returns​

OBBject
results : OmegaModel]
Omega ratios.