Add test_pairlist method

This commit is contained in:
Matthias
2019-11-30 19:53:22 +01:00
parent e0e0bad7c1
commit 153434561d
3 changed files with 33 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ class PrecisionFilter(IPairList):
"""
Filters and sorts pairlists and assigns and returns them again.
"""
stoploss = None
if self._config.get('stoploss') is not None:
# Precalculate sanitized stoploss value to avoid recalculation for every pair
stoploss = 1 - abs(self._config.get('stoploss'))