From fe36b08fcec9e2f4b52349e1aa6dbd4db0f3eaf7 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sun, 29 May 2022 16:26:34 +0200 Subject: [PATCH] fix key error in example strat --- freqtrade/templates/FreqaiExampleStrategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/templates/FreqaiExampleStrategy.py b/freqtrade/templates/FreqaiExampleStrategy.py index 94fa0266d..13df1f846 100644 --- a/freqtrade/templates/FreqaiExampleStrategy.py +++ b/freqtrade/templates/FreqaiExampleStrategy.py @@ -252,7 +252,7 @@ class FreqaiExampleStrategy(IStrategy): self.model.bridge.data_drawer.save_drawer_to_disk() else: if pair_dict[pair]['prediction' + entry_tag] > 0: - roi_price = abs(trade_candle['prediction' + entry_tag]) + roi_price = abs(trade_candle['prediction']) else: with self.model.bridge.lock: self.model.bridge.data_drawer.pair_dict[pair][