From 36eba0f110a2551bfdfb2c96045e93a770fcdeaa Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 17 May 2021 21:05:48 +0200 Subject: [PATCH] Don't use "r+" memmap, but "r2 --- freqtrade/optimize/hyperopt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index d28373c2f..11a1a36f2 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -271,7 +271,7 @@ class Hyperopt: self.backtesting.strategy.trailing_only_offset_is_reached = \ d['trailing_only_offset_is_reached'] - processed = load(self.data_pickle_file, mmap_mode='r+') + processed = load(self.data_pickle_file, mmap_mode='r') bt_results = self.backtesting.backtest( processed=processed,