mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
removing only pumps from dataset
This commit is contained in:
parent
07ba14d1ea
commit
88854cba2d
|
@ -852,10 +852,9 @@ class Edge:
|
|||
###################################
|
||||
|
||||
|
||||
# Removing outliers (Pump&Dumps) from the dataset
|
||||
# Removing outliers (Only Pumps) from the dataset
|
||||
# The method to detect outliers is to calculate standard deviation
|
||||
# Then every value more than (standard deviation + 2*average) is out (pump)
|
||||
# And every value less than (standard deviation - 2*average) is out (dump)
|
||||
#
|
||||
# Calculating standard deviation of profits
|
||||
std = results[["profit_abs"]].std()
|
||||
|
@ -865,9 +864,6 @@ class Edge:
|
|||
#
|
||||
# Removing Pumps
|
||||
results = results[results.profit_abs < float(avg + 2*std)]
|
||||
#
|
||||
# Removing Dumps
|
||||
results = results[results.profit_abs > float(avg - 2*std)]
|
||||
##########################################################################
|
||||
|
||||
# Removing trades having a duration more than X minutes (set in config)
|
||||
|
|
Loading…
Reference in New Issue
Block a user