trading.analyzer.graphing.risk_return_overview
trading.analyzer.graphing.risk_return_overview
build_risk_return_overview
build_risk_return_overview(df: DataFrame, color_by: str = 'calmar_ratio') -> go.Figure
Builds the risk/return overview scatter plot.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
Experiment DataFrame from |
required |
color_by
|
str
|
Column to color points by. Defaults to "calmar_ratio" so warmer colors highlight the best risk-adjusted performers. Pass a parameter column name instead to color by a swept parameter. |
'calmar_ratio'
|
Returns:
| Type | Description |
|---|---|
Figure
|
A plotly Figure. |
Source code in src\contango\trading\analyzer\graphing\risk_return_overview.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | |