From 617a58402f82b4cb19623a6d7fe7260a901eadfb Mon Sep 17 00:00:00 2001 From: misagh Date: Fri, 9 Nov 2018 20:52:03 +0100 Subject: [PATCH] putting edge adjust function in _process not in create_trade --- freqtrade/freqtradebot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index babe0a1da..4a17e889e 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -192,6 +192,7 @@ class FreqtradeBot(object): # with delta value (klines only from last refresh_pairs) if self.edge: self.edge.calculate() + self.active_pair_whitelist = self.edge.adjust(self.active_pair_whitelist) # Refreshing candles self.exchange.refresh_tickers(self.active_pair_whitelist, self.strategy.ticker_interval) @@ -406,10 +407,6 @@ class FreqtradeBot(object): raise DependencyException('No currency pairs in whitelist') # running get_signal on historical data fetched - # to find buy signals - if self.edge: - whitelist = self.edge.adjust(whitelist) - for _pair in whitelist: (buy, sell) = self.strategy.get_signal(_pair, interval, self.exchange.klines.get(_pair)) if buy and not sell: