From bcecaa69d4cedc651de5887b59e158a5b8377752 Mon Sep 17 00:00:00 2001 From: misagh Date: Tue, 6 Nov 2018 19:41:46 +0100 Subject: [PATCH] removing global variable modification --- freqtrade/edge/__init__.py | 2 -- freqtrade/strategy/interface.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/freqtrade/edge/__init__.py b/freqtrade/edge/__init__.py index 748f95a6e..648130e70 100644 --- a/freqtrade/edge/__init__.py +++ b/freqtrade/edge/__init__.py @@ -33,8 +33,6 @@ class Edge(): def __init__(self, config: Dict[str, Any], exchange=None) -> None: - # Increasing recursive limit as with need it for large datasets - sys.setrecursionlimit(10000) self.config = config self.exchange = exchange self.strategy: IStrategy = StrategyResolver(self.config).strategy diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index 4d613265a..de5fc1a60 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -203,7 +203,7 @@ class IStrategy(ABC): return buy, sell def should_sell(self, trade: Trade, rate: float, date: datetime, buy: bool, - sell: bool, force_stoploss=0) -> SellCheckTuple: + sell: bool, force_stoploss: float=0) -> SellCheckTuple: """ This function evaluate if on the condition required to trigger a sell has been reached if the threshold is reached and updates the trade record.