trading.analyzer.graphing.equity_curve_overlay
trading.analyzer.graphing.equity_curve_overlay
build_equity_curve_overlay
build_equity_curve_overlay(df: DataFrame, rank_by: str = 'calmar_ratio', default_top_n: int = 8, max_traces: int = 40) -> go.Figure
Builds an equity curve with the top amount of points, adjustable with a slider.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
df
|
DataFrame
|
The experiment DataFrame. |
required |
rank_by
|
str
|
Metric column to rank by (descending = best first). |
'calmar_ratio'
|
default_top_n
|
int
|
How many traces are visible when the chart first loads. |
8
|
max_traces
|
int
|
How many experiments get a trace at all (available in the slider). |
40
|
Returns:
| Type | Description |
|---|---|
Figure
|
A plotly Figure with an embedded slider. |
Source code in src\contango\trading\analyzer\graphing\equity_curve_overlay.py
23 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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |