Skip to main content

sortino

Calculates the sortino ratio

Source Code: [link]

openbb.qa.sortino(data: pd.DataFrame, target_return: float = 0, window: float = 252, adjusted: bool = False)

Parameters

NameTypeDescriptionDefaultOptional
datapd.DataFrameselected dataframeNoneFalse
target_returnfloattarget return of the asset0True
windowfloatlength of the rolling window252True
adjustedbooladjust the sortino ratioFalseTrue

Returns

TypeDescription
pd.DataFramesortino ratio