fix key error in example strat

This commit is contained in:
robcaulk 2022-05-29 16:26:34 +02:00
parent ce365eb9e3
commit fe36b08fce
1 changed files with 1 additions and 1 deletions

View File

@ -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][