We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e792baf commit 68e5424Copy full SHA for 68e5424
freqtrade/data/metrics.py
@@ -74,9 +74,10 @@ def combined_dataframes_with_rel_mean(
74
df_comb = combine_dataframes_by_column(data, column)
75
# Trim dataframes to the given timeframe
76
df_comb = df_comb.iloc[(df_comb.index >= fromdt) & (df_comb.index < todt)]
77
+ rel_mean = df_comb.pct_change().mean(axis=1).fillna(0).cumsum()
78
df_comb["count"] = df_comb.count(axis=1)
79
df_comb["mean"] = df_comb.mean(axis=1)
- df_comb["rel_mean"] = df_comb["mean"].pct_change().fillna(0).cumsum()
80
+ df_comb["rel_mean"] = rel_mean
81
return df_comb[["mean", "rel_mean", "count"]]
82
83
0 commit comments