diff --git a/freqtrade/optimize/hyperopt_tools.py b/freqtrade/optimize/hyperopt_tools.py index 006bc4ce0..90976d34e 100755 --- a/freqtrade/optimize/hyperopt_tools.py +++ b/freqtrade/optimize/hyperopt_tools.py @@ -25,6 +25,9 @@ NON_OPT_PARAM_APPENDIX = " # value loaded from strategy" def hyperopt_serializer(x): if isinstance(x, np.integer): return int(x) + if isinstance(x, np.bool_): + return bool(x) + return str(x)