From b2952cd42ad22ecb0e623909524c07ac273803f3 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Fri, 13 Mar 2020 03:58:16 +0300 Subject: [PATCH] remove redundant dict --- freqtrade/plot/plotting.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index cfbda6714..220056d2d 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -454,10 +454,8 @@ def load_and_plot_trades(config: Dict[str, Any]): for pair, data in plot_elements["ohlcv"].items(): pair_counter += 1 logger.info("analyse pair %s", pair) - ohlcv = {} - ohlcv[pair] = data - dataframe = strategy.analyze_ticker(ohlcv[pair], {'pair': pair}) + dataframe = strategy.analyze_ticker(data, {'pair': pair}) trades_pair = trades.loc[trades['pair'] == pair] trades_pair = extract_trades_of_period(dataframe, trades_pair)