fix backtesting bug, undo move of label stat calc, fix example strat exit logic

This commit is contained in:
robcaulk
2022-07-29 17:27:35 +02:00
parent 08d3ac7ef8
commit f22b140782
4 changed files with 12 additions and 15 deletions

View File

@@ -235,7 +235,7 @@ class FreqaiExampleStrategy(IStrategy):
if (
"prediction" + entry_tag not in pair_dict[pair]
or pair_dict[pair]["prediction" + entry_tag] > 0
or pair_dict[pair]["prediction" + entry_tag] == 0
):
with self.freqai.lock:
pair_dict[pair]["prediction" + entry_tag] = abs(trade_candle["&-s_close"])