mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
Fix filtering for bumped pairs
This commit is contained in:
parent
14cb29aae1
commit
d1cbc567e4
|
@ -281,8 +281,8 @@ class Edge:
|
||||||
#
|
#
|
||||||
# Removing Pumps
|
# Removing Pumps
|
||||||
if self.edge_config.get('remove_pumps', False):
|
if self.edge_config.get('remove_pumps', False):
|
||||||
results = results.groupby(['pair', 'stoploss']).apply(
|
results = results[results['profit_abs'] < 2 * results['profit_abs'].std()
|
||||||
lambda x: x[x['profit_abs'] < 2 * x['profit_abs'].std() + x['profit_abs'].mean()])
|
+ results['profit_abs'].mean()]
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
# Removing trades having a duration more than X minutes (set in config)
|
# Removing trades having a duration more than X minutes (set in config)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user