From bf832f87a0bd18f4d415bb68b2d2f3616b281dc8 Mon Sep 17 00:00:00 2001 From: Masoud Azizi Date: Sat, 5 Jun 2021 15:04:57 +0430 Subject: [PATCH] Fixed bug #190 and #191 by deleting dropna --- user_data/strategies/Zeus.py | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/user_data/strategies/Zeus.py b/user_data/strategies/Zeus.py index 64dd4c5..1d9038c 100644 --- a/user_data/strategies/Zeus.py +++ b/user_data/strategies/Zeus.py @@ -3,7 +3,7 @@ # Author: @Mablue (Masoud Azizi) # github: https://github.com/mablue/ # IMPORTANT: INSTALL TA BEFOUR RUN(pip install ta) -# freqtrade hyperopt --hyperopt-loss SharpeHyperOptLoss --spaces buy sell roi trailing --strategy Zeus +# freqtrade hyperopt --hyperopt-loss SharpeHyperOptLoss --spaces buy sell roi --strategy Zeus # --- Do not remove these libs --- import logging from freqtrade.strategy.hyper import CategoricalParameter, DecimalParameter @@ -25,36 +25,36 @@ import numpy as np class Zeus(IStrategy): - # 53/167: 167 trades. 96/66/5 Wins/Draws/Losses. Avg profit 3.00%. Median profit 2.70%. Total profit 0.16479843 BTC ( 164.80Σ%). Avg duration 22:04:00 min. Objective: -63.49577 + # * 1/43: 86 trades. 72/6/8 Wins/Draws/Losses. Avg profit 12.66%. Median profit 11.99%. Total profit 0.10894395 BTC ( 108.94Σ%). Avg duration 3 days, 0:31:00 min. Objective: -48.48793 + # "max_open_trades": 10, + # "stake_currency": "BTC", + # "stake_amount": 0.01, + # "tradable_balance_ratio": 0.99, + # "timeframe": "4h", + # "dry_run_wallet": 0.1, # Buy hyperspace params: buy_params = { "buy_cat": " DataFrame: # Add all ta features - # Clean NaN values - dataframe = dropna(dataframe) dataframe['trend_ichimoku_base'] = ta.trend.ichimoku_base_line( dataframe['high'],