The Fixed MacheteV8b strategy file for Freqtrade 2024.1 (Patreon)
Downloads
Missing 1 file, as this post has not yet been imported.
Content
In this post I will provide you the fixed MacheteV8b strategy file for the Docker version 2024.1
However ALL CREDITS GO TO YOU AS A COMMUNITY!
Special credits go to Frederic Auricombe, Nikos, Nacho Villamil and all other Patrons that helped fix this error! For background information about the solution and more fixes of other strategies, please go to the comments section of the 1.000.000 Dollar Algo Strategy Post.
One warning though and that is that the algo has been changed and thus can cause different results than the original file. So please check this before making any definitive conclusions!
The way I fixed this problem on my test laptop is as follows:
Create the Docker compose and Docker custom file. My examples are below and they work on my Linux Mint laptop:
> cat docker-compose.yml
---
version: '3'
services:
freqtrade:
image: freqtrade_custom
build:
context: .
dockerfile: "./Dockerfile.custom"
restart: unless-stopped
container_name: freqtrade
volumes:
- "./user_data:/freqtrade/user_data"
ports:
- "127.0.0.1:8080:8080"
command: >
trade
--logfile /freqtrade/user_data/logs/freqtrade.log
--db-url sqlite:////freqtrade/user_data/tradesv3.sqlite
--config /freqtrade/user_data/config.json
--strategy SampleStrategy
> cat Dockerfile.custom
FROM freqtradeorg/freqtrade:stable
RUN pip install --user ta finta
Next you can download the Docker image and build it with the additional TA libraries.
> docker-compose run --rm freqtrade --version
Building freqtrade
Step 1/2 : FROM freqtradeorg/freqtrade:stable
stable: Pulling from freqtradeorg/freqtrade
2f44b7a888fa: Pull complete
3f00b3697662: Pull complete
9f2fc8d8f9bd: Pull complete
4ea8b799d366: Pull complete
d7d8cad868ee: Pull complete
d425f42ce5ea: Pull complete
4f4fb700ef54: Pull complete
591a93cb0262: Pull complete
214ff5b36efe: Pull complete
ff2d48e52088: Pull complete
62265a5880a3: Pull complete
Digest: sha256:03af37c14248dfca3f526f89f9b670f9b178847f5d32aa6c8e9386e5a23c0d88
Status: Downloaded newer image for freqtradeorg/freqtrade:stable
---> 753e49c5dd3a
Step 2/2 : RUN pip install --user ta finta
---> Running in f3396cd2be72
Collecting ta
Downloading ta-0.11.0.tar.gz (25 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting finta
Downloading finta-1.3-py3-none-any.whl (29 kB)
Requirement already satisfied: numpy in /home/ftuser/.local/lib/python3.11/site-packages (from ta) (1.26.3)
Requirement already satisfied: pandas in /home/ftuser/.local/lib/python3.11/site-packages (from ta) (2.1.4)
Requirement already satisfied: python-dateutil>=2.8.2 in /home/ftuser/.local/lib/python3.11/site-packages (from pandas->ta) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /home/ftuser/.local/lib/python3.11/site-packages (from pandas->ta) (2023.4)
Requirement already satisfied: tzdata>=2022.1 in /home/ftuser/.local/lib/python3.11/site-packages (from pandas->ta) (2023.4)
Requirement already satisfied: six>=1.5 in /home/ftuser/.local/lib/python3.11/site-packages (from python-dateutil>=2.8.2->pandas->ta) (1.16.0)
Building wheels for collected packages: ta
Building wheel for ta (setup.py): started
Building wheel for ta (setup.py): finished with status 'done'
Created wheel for ta: filename=ta-0.11.0-py3-none-any.whl size=29413 sha256=5d929963c0c014f21d0a865a3a173c73caaa2c38a54b08543c33aafc1af860e0
Stored in directory: /home/ftuser/.cache/pip/wheels/a1/d7/29/7781cc5eb9a3659d032d7d15bdd0f49d07d2b24fec29f44bc4
Successfully built ta
Installing collected packages: ta, finta
Successfully installed finta-1.3 ta-0.11.0
[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: pip install --upgrade pip
---> Removed intermediate container f3396cd2be72
---> f6d8d187ea51
Successfully built f6d8d187ea51
Successfully tagged freqtrade_custom:latest
WARNING: Image for service freqtrade was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating ft_userdata_freqtrade_run ... done
freqtrade 2024.1
I recreated this Docker container in a directory that already contained all the configurations so I do not have to create these. I now can just run the freqtrade code.
> docker-compose run --rm freqtrade list-strategies
Creating ft_userdata_freqtrade_run ... done
2024-02-11 15:57:54,943 - freqtrade - INFO - freqtrade 2024.1
2024-02-11 15:57:54,943 - freqtrade.configuration.load_config - INFO - Using config: user_data/config.json ...
2024-02-11 15:57:54,945 - freqtrade.loggers - INFO - Verbosity set to 0
2024-02-11 15:57:54,968 - freqtrade.configuration.configuration - INFO - Using user-data directory: /freqtrade/user_data ...
2024-02-11 15:57:54,968 - freqtrade.configuration.configuration - INFO - Using data directory: /freqtrade/user_data/data/binance ...
2024-02-11 15:57:54,970 - freqtrade.exchange.check_exchange - INFO - Checking exchange...
2024-02-11 15:57:54,984 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team.
2024-02-11 15:57:54,984 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration.
2024-02-11 15:57:54,984 - freqtrade.configuration.config_validation - INFO - Validating configuration ...
Add {
"method": "AgeFilter",
"min_days_listed": 30
},
to your pairlists in config (Under StaticPairList)
+----------------+--------------------+----------+----------------+--------------+---------------+
| name | location | status | hyperoptable | buy-Params | sell-Params |
|----------------+--------------------+----------+----------------+--------------+---------------|
| GodStra | GodStra.py | OK | No | 0 | 0 |
| MacheteV8b_Fixed | MacheteV8b_Fixed.py | OK | Yes | 17 | 12 |
| SampleStrategy | sample_strategy.py | OK | Yes | 2 | 2 |
+----------------+--------------------+----------+----------------+--------------+---------------+
Next download the data to that information is most recent:
> docker-compose run --rm freqtrade download-data --config user_data/config.json --days 712 -t 12h 1h 5m
Creating ft_userdata_freqtrade_run ... done
2024-02-11 16:28:19,739 - freqtrade - INFO - freqtrade 2024.1
2024-02-11 16:28:19,739 - freqtrade.configuration.load_config - INFO - Using config: user_data/config.json ...
2024-02-11 16:28:19,740 - freqtrade.loggers - INFO - Verbosity set to 0
2024-02-11 16:28:19,762 - freqtrade.configuration.configuration - INFO - Using user-data directory: /freqtrade/user_data ...
2024-02-11 16:28:19,763 - freqtrade.configuration.configuration - INFO - Using data directory: /freqtrade/user_data/data/binance ...
2024-02-11 16:28:19,763 - freqtrade.configuration.configuration - INFO - timeframes --timeframes: ['12h', '1h', '5m']
2024-02-11 16:28:19,763 - freqtrade.configuration.configuration - INFO - Detected --days: 712
2024-02-11 16:28:19,764 - freqtrade.exchange.check_exchange - INFO - Checking exchange...
2024-02-11 16:28:19,778 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team.
2024-02-11 16:28:19,778 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration.
2024-02-11 16:28:19,778 - freqtrade.configuration.config_validation - INFO - Validating configuration ...
2024-02-11 16:28:19,783 - freqtrade.exchange.exchange - INFO - Instance is running with dry_run enabled
2024-02-11 16:28:19,783 - freqtrade.exchange.exchange - INFO - Using CCXT 4.2.25
2024-02-11 16:28:19,810 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance"
2024-02-11 16:28:19,810 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'...
2024-02-11 16:28:19,810 - freqtrade.exchange.exchange - INFO - Markets were not loaded. Loading them now..
2024-02-11 16:28:26,908 - freqtrade.data.history.history_utils - INFO - About to download pairs: ['BTC/USDT', 'HBAR/USDT', 'GALA/USDT'], intervals: ['12h', '1h', '5m'] to /freqtrade/user_data/data/binance
2024-02-11 16:28:26,949 - freqtrade.data.history.history_utils - INFO - (1/3) - Download history data for "BTC/USDT", 12h, spot and store in /freqtrade/user_data/data/binance. From 2022-03-01T00:00:00 to now
2024-02-11 16:28:27,791 - freqtrade.exchange.exchange - INFO - Downloaded data for BTC/USDT with length 1426.
2024-02-11 16:28:27,809 - freqtrade.data.history.history_utils - INFO - (1/3) - Download history data for "BTC/USDT", 1h, spot and store in /freqtrade/user_data/data/binance. From 2022-03-01T00:00:00 to now
2024-02-11 16:28:29,632 - freqtrade.exchange.exchange - INFO - Downloaded data for BTC/USDT with length 17105.
2024-02-11 16:28:29,730 - freqtrade.data.history.history_utils - INFO - (1/3) - Download history data for "BTC/USDT", 5m, spot and store in /freqtrade/user_data/data/binance. From 2022-03-01T00:00:00 to now
2024-02-11 16:28:36,849 - freqtrade.exchange.exchange - INFO - Downloaded data for BTC/USDT with length 205254.
2024-02-11 16:28:37,368 - freqtrade.data.history.history_utils - INFO - (2/3) - Download history data for "HBAR/USDT", 12h, spot and store in /freqtrade/user_data/data/binance. From 2022-03-01T00:00:00 to now
2024-02-11 16:28:39,763 - freqtrade.exchange.exchange - INFO - Downloaded data for HBAR/USDT with length 1426.
2024-02-11 16:28:39,777 - freqtrade.data.history.history_utils - INFO - (2/3) - Download history data for "HBAR/USDT", 1h, spot and store in /freqtrade/user_data/data/binance. From 2022-03-01T00:00:00 to now
2024-02-11 16:28:41,392 - freqtrade.exchange.exchange - INFO - Downloaded data for HBAR/USDT with length 17105.
2024-02-11 16:28:41,488 - freqtrade.data.history.history_utils - INFO - (2/3) - Download history data for "HBAR/USDT", 5m, spot and store in /freqtrade/user_data/data/binance. From 2022-03-01T00:00:00 to now
2024-02-11 16:28:48,512 - freqtrade.exchange.exchange - INFO - Downloaded data for HBAR/USDT with length 205254.
2024-02-11 16:28:48,957 - freqtrade.data.history.history_utils - INFO - (3/3) - Download history data for "GALA/USDT", 12h, spot and store in /freqtrade/user_data/data/binance. From 2022-03-01T00:00:00 to now
2024-02-11 16:28:49,804 - freqtrade.exchange.exchange - INFO - Downloaded data for GALA/USDT with length 1426.
2024-02-11 16:28:49,817 - freqtrade.data.history.history_utils - INFO - (3/3) - Download history data for "GALA/USDT", 1h, spot and store in /freqtrade/user_data/data/binance. From 2022-03-01T00:00:00 to now
2024-02-11 16:28:52,050 - freqtrade.exchange.exchange - INFO - Downloaded data for GALA/USDT with length 17105.
2024-02-11 16:28:52,146 - freqtrade.data.history.history_utils - INFO - (3/3) - Download history data for "GALA/USDT", 5m, spot and store in /freqtrade/user_data/data/binance. From 2022-03-01T00:00:00 to now
2024-02-11 16:28:59,761 - freqtrade.exchange.exchange - INFO - Downloaded data for GALA/USDT with length 205254.
Then check the data to see if its all there:
> docker-compose run --rm freqtrade list-data
Creating ft_userdata_freqtrade_run ... done
2024-02-11 16:31:01,282 - freqtrade - INFO - freqtrade 2024.1
2024-02-11 16:31:01,282 - freqtrade.configuration.load_config - INFO - Using config: user_data/config.json ...
2024-02-11 16:31:01,284 - freqtrade.loggers - INFO - Verbosity set to 0
2024-02-11 16:31:01,306 - freqtrade.configuration.configuration - INFO - Using user-data directory: /freqtrade/user_data ...
2024-02-11 16:31:01,306 - freqtrade.configuration.configuration - INFO - Using data directory: /freqtrade/user_data/data/binance ...
2024-02-11 16:31:01,308 - freqtrade.exchange.check_exchange - INFO - Checking exchange...
2024-02-11 16:31:01,322 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team.
2024-02-11 16:31:01,322 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration.
2024-02-11 16:31:01,322 - freqtrade.configuration.config_validation - INFO - Validating configuration ...
Found 10 pair / timeframe combinations.
+-----------+------------------+--------+
| Pair | Timeframe | Type |
|-----------+------------------+--------|
| BTC/USDT | 5m, 15m, 1h, 12h | spot |
| GALA/USDT | 5m, 1h, 12h | spot |
| HBAR/USDT | 5m, 1h, 12h | spot |
+-----------+------------------+--------+
Now I can start backtesting with the adjused strategy file:
> docker-compose run --rm freqtrade backtesting --config user_data/config.json --strategy MacheteV8b_Fixed
Creating ft_userdata_freqtrade_run ... done
2024-02-11 16:39:02,367 - freqtrade - INFO - freqtrade 2024.1
2024-02-11 16:39:02,380 - freqtrade.configuration.load_config - INFO - Using config: user_data/config.json ...
2024-02-11 16:39:02,381 - freqtrade.loggers - INFO - Verbosity set to 0
2024-02-11 16:39:02,382 - freqtrade.configuration.configuration - INFO - Using max_open_trades: 3 ...
2024-02-11 16:39:02,405 - freqtrade.configuration.configuration - INFO - Using user-data directory: /freqtrade/user_data ...
2024-02-11 16:39:02,405 - freqtrade.configuration.configuration - INFO - Using data directory: /freqtrade/user_data/data/binance ...
2024-02-11 16:39:02,406 - freqtrade.configuration.configuration - INFO - Parameter --cache=day detected ...
2024-02-11 16:39:02,407 - freqtrade.exchange.check_exchange - INFO - Checking exchange...
2024-02-11 16:39:02,421 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team.
2024-02-11 16:39:02,421 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration.
2024-02-11 16:39:02,421 - freqtrade.configuration.config_validation - INFO - Validating configuration ...
2024-02-11 16:39:02,427 - freqtrade.commands.optimize_commands - INFO - Starting freqtrade in Backtesting mode
2024-02-11 16:39:02,427 - freqtrade.exchange.exchange - INFO - Instance is running with dry_run enabled
2024-02-11 16:39:02,427 - freqtrade.exchange.exchange - INFO - Using CCXT 4.2.25
2024-02-11 16:39:02,451 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance"
2024-02-11 16:39:09,463 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'...
Add {
"method": "AgeFilter",
"min_days_listed": 30
},
to your pairlists in config (Under StaticPairList)
2024-02-11 16:39:09,510 - freqtrade.resolvers.iresolver - INFO - Using resolved strategy MacheteV8b_Fixed from '/freqtrade/user_data/strategies/MacheteV8b_Fixed.py'...
2024-02-11 16:39:09,510 - freqtrade.strategy.hyper - INFO - Found no parameter file.
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'stake_currency' with value in config file: USDT.
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'stake_amount' with value in config file: unlimited.
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'unfilledtimeout' with value in config file: {'entry': 10, 'exit': 10, 'exit_timeout_count': 0, 'unit': 'minutes'}.
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Override strategy 'max_open_trades' with value in config file: 3.
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using minimal_roi: {'0': 0.279, '92': 0.109, '245': 0.059, '561': 0}
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using timeframe: 15m
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using stoploss: -0.1
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using trailing_stop: False
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using trailing_stop_positive_offset: 0.0
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using trailing_only_offset_is_reached: False
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using use_custom_stoploss: True
2024-02-11 16:39:09,511 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using process_only_new_candles: False
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using order_types: {'entry': 'limit', 'exit': 'limit', 'stoploss': 'market', 'stoploss_on_exchange': False}
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using order_time_in_force: {'entry': 'GTC', 'exit': 'GTC'}
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using stake_currency: USDT
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using stake_amount: unlimited
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using protections: []
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using startup_candle_count: 500
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using unfilledtimeout: {'entry': 10, 'exit': 10, 'exit_timeout_count': 0, 'unit': 'minutes'}
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using use_exit_signal: True
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using exit_profit_only: False
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using ignore_roi_if_entry_signal: False
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using exit_profit_offset: 0.0
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using disable_dataframe_checks: False
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using ignore_buying_expired_candle_after: 0
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using position_adjustment_enable: False
2024-02-11 16:39:09,512 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using max_entry_position_adjustment: -1
2024-02-11 16:39:09,513 - freqtrade.resolvers.strategy_resolver - INFO - Strategy using max_open_trades: 3
2024-02-11 16:39:09,513 - freqtrade.configuration.config_validation - INFO - Validating configuration ...
2024-02-11 16:39:09,521 - freqtrade.resolvers.iresolver - INFO - Using resolved pairlist StaticPairList from '/freqtrade/freqtrade/plugins/pairlist/StaticPairList.py'...
2024-02-11 16:39:09,549 - freqtrade.data.history.history_utils - INFO - Using indicator startup period: 500 ...
2024-02-11 16:39:09,626 - freqtrade.data.history.idatahandler - WARNING - No history for HBAR/USDT, spot, 15m found. Use `freqtrade download-data` to download the data
2024-02-11 16:39:09,627 - freqtrade.data.history.idatahandler - WARNING - No history for GALA/USDT, spot, 15m found. Use `freqtrade download-data` to download the data
2024-02-11 16:39:09,628 - freqtrade.optimize.backtesting - INFO - Loading data from 2023-01-25 00:00:00 up to 2024-01-25 19:00:00 (365 days).
2024-02-11 16:39:09,628 - freqtrade.configuration.timerange - WARNING - Moving start-date by 500 candles to account for startup time.
2024-02-11 16:39:09,628 - freqtrade.optimize.backtesting - INFO - Dataload complete. Calculating indicators
2024-02-11 16:39:09,629 - freqtrade.optimize.backtesting - WARNING - Backtest result caching disabled due to use of open-ended timerange.
2024-02-11 16:39:09,629 - freqtrade.optimize.backtesting - INFO - Running backtesting for Strategy MacheteV8b_Fixed
2024-02-11 16:39:09,629 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_adx_momentum = False
2024-02-11 16:39:09,629 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_adx_smas = True
2024-02-11 16:39:09,629 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_asdts_rockwelltrading = False
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_averages_strategy = False
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_awesome_macd = True
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_fisher_hull = False
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_gettin_moist = True
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_hlhb = True
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_macd_strategy = False
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_macd_strategy_crossed = False
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_pmax = False
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_quickie = True
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_scalp = True
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_simple = False
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_strategy001 = False
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_technical_example_strategy = False
2024-02-11 16:39:09,630 - freqtrade.strategy.hyper - INFO - Strategy Parameter: buy_should_use_get_buy_signal_tema_rsi_strategy = False
2024-02-11 16:39:09,631 - freqtrade.strategy.hyper - INFO - Strategy Parameter: cstp_bail_how = roc
2024-02-11 16:39:09,631 - freqtrade.strategy.hyper - INFO - Strategy Parameter: cstp_bail_roc = -0.032
2024-02-11 16:39:09,631 - freqtrade.strategy.hyper - INFO - Strategy Parameter: cstp_bail_time = 1108
2024-02-11 16:39:09,631 - freqtrade.strategy.hyper - INFO - Strategy Parameter: cstp_bb_trailing_input = bb_lowerband_neutral_inf
2024-02-11 16:39:09,631 - freqtrade.strategy.hyper - INFO - Strategy Parameter: cstp_threshold = -0.036
2024-02-11 16:39:09,631 - freqtrade.strategy.hyper - INFO - Strategy Parameter: cstp_trailing_max_stoploss = 0.054
2024-02-11 16:39:09,632 - freqtrade.strategy.hyper - INFO - Strategy Parameter: cstp_trailing_only_offset_is_reached = 0.06
2024-02-11 16:39:09,632 - freqtrade.strategy.hyper - INFO - Strategy Parameter: cstp_trailing_stop_profit_devider = 2
2024-02-11 16:39:09,632 - freqtrade.strategy.hyper - INFO - Strategy Parameter: droi_pullback = True
2024-02-11 16:39:09,632 - freqtrade.strategy.hyper - INFO - Strategy Parameter: droi_pullback_amount = 0.005
2024-02-11 16:39:09,632 - freqtrade.strategy.hyper - INFO - Strategy Parameter: droi_pullback_respect_table = False
2024-02-11 16:39:09,632 - freqtrade.strategy.hyper - INFO - Strategy Parameter: droi_trend_type = any
2024-02-11 16:39:09,632 - freqtrade.strategy.hyper - INFO - No params for protection found, using default values.
2024-02-11 16:39:26,082 - freqtrade.data.dataprovider - INFO - Loading data for BTC/USDT 1h from unbounded to unbounded
2024-02-11 16:39:26,262 - freqtrade.optimize.backtesting - INFO - Backtesting with data from 2023-01-30 05:00:00 up to 2024-01-25 19:00:00 (360 days).
2024-02-11 16:39:31,427 - freqtrade.misc - INFO - dumping json to "/freqtrade/user_data/backtest_results/backtest-result-2024-02-11_16-39-31.meta.json"
2024-02-11 16:39:31,428 - freqtrade.misc - INFO - dumping json to "/freqtrade/user_data/backtest_results/backtest-result-2024-02-11_16-39-31.json"
2024-02-11 16:39:31,436 - freqtrade.misc - INFO - dumping json to "/freqtrade/user_data/backtest_results/.last_result.json"
Result for strategy MacheteV8b_Fixed
=========================================================== BACKTESTING REPORT ===========================================================
| Pair | Entries | Avg Profit % | Cum Profit % | Tot Profit USDT | Tot Profit % | Avg Duration | Win Draw Loss Win% |
|----------+-----------+----------------+----------------+-------------------+----------------+----------------+-------------------------|
| BTC/USDT | 134 | -0.04 | -5.09 | -18.032 | -1.80 | 6:59:00 | 68 8 58 50.7 |
| TOTAL | 134 | -0.04 | -5.09 | -18.032 | -1.80 | 6:59:00 | 68 8 58 50.7 |
======================================================= LEFT OPEN TRADES REPORT ========================================================
| Pair | Entries | Avg Profit % | Cum Profit % | Tot Profit USDT | Tot Profit % | Avg Duration | Win Draw Loss Win% |
|--------+-----------+----------------+----------------+-------------------+----------------+----------------+-------------------------|
| TOTAL | 0 | 0.00 | 0.00 | 0.000 | 0.00 | 0:00 | 0 0 0 0 |
=========================================================== ENTER TAG STATS ===========================================================
| TAG | Entries | Avg Profit % | Cum Profit % | Tot Profit USDT | Tot Profit % | Avg Duration | Win Draw Loss Win% |
|-------+-----------+----------------+----------------+-------------------+----------------+----------------+-------------------------|
| OTHER | 134 | -0.04 | -5.09 | -18.032 | -1.80 | 6:59:00 | 68 8 58 50.7 |
| TOTAL | 134 | -0.04 | -5.09 | -18.032 | -1.80 | 6:59:00 | 68 8 58 50.7 |
======================================================= EXIT REASON STATS ========================================================
| Exit Reason | Exits | Win Draws Loss Win% | Avg Profit % | Cum Profit % | Tot Profit USDT | Tot Profit % |
|--------------------+---------+--------------------------+----------------+----------------+-------------------+----------------|
| roi | 75 | 67 8 0 100 | 0.76 | 57.2 | 183.622 | 57.2 |
| trailing_stop_loss | 57 | 1 0 56 1.8 | -1.02 | -57.86 | -186.928 | -57.86 |
| exit_signal | 2 | 0 0 2 0 | -2.21 | -4.43 | -14.725 | -4.43 |
================== SUMMARY METRICS ==================
| Metric | Value |
|-----------------------------+---------------------|
| Backtesting from | 2023-01-30 05:00:00 |
| Backtesting to | 2024-01-25 19:00:00 |
| Max open trades | 1 |
| | |
| Total/Daily Avg Trades | 134 / 0.37 |
| Starting balance | 1000 USDT |
| Final balance | 981.968 USDT |
| Absolute profit | -18.032 USDT |
| Total profit % | -1.80% |
| CAGR % | -1.83% |
| Sortino | -0.36 |
| Sharpe | -0.21 |
| Calmar | -1.37 |
| Profit factor | 0.92 |
| Expectancy (Ratio) | -0.13 (-0.10) |
| Trades per day | 0.37 |
| Avg. daily profit % | -0.01% |
| Avg. stake amount | 322.004 USDT |
| Total trade volume | 43148.597 USDT |
| | |
| Best Pair | BTC/USDT -5.09% |
| Worst Pair | BTC/USDT -5.09% |
| Best trade | BTC/USDT 4.70% |
| Worst trade | BTC/USDT -3.72% |
| Best day | 23.156 USDT |
| Worst day | -11.917 USDT |
| Days win/draw/lose | 29 / 251 / 48 |
| Avg. Duration Winners | 5:36:00 |
| Avg. Duration Loser | 7:37:00 |
| Max Consecutive Wins / Loss | 8 / 9 |
| Rejected Entry signals | 0 |
| Entry/Exit Timeouts | 0 / 0 |
| | |
| Min balance | 939.328 USDT |
| Max balance | 1010.059 USDT |
| Max % of account underwater | 7.00% |
| Absolute Drawdown (Account) | 7.00% |
| Absolute Drawdown | 70.731 USDT |
| Drawdown high | 10.059 USDT |
| Drawdown low | -60.672 USDT |
| Drawdown Start | 2023-03-19 20:15:00 |
| Drawdown End | 2023-09-21 01:15:00 |
| Market change | 75.95% |
=====================================================
Backtested 2023-01-30 05:00:00 -> 2024-01-25 19:00:00 | Max open trades : 1
=========================================================================== STRATEGY SUMMARY ==========================================================================
| Strategy | Entries | Avg Profit % | Cum Profit % | Tot Profit USDT | Tot Profit % | Avg Duration | Win Draw Loss Win% | Drawdown |
|------------------+-----------+----------------+----------------+-------------------+----------------+----------------+-------------------------+--------------------|
| MacheteV8b_Fixed | 134 | -0.04 | -5.09 | -18.032 | -1.80 | 6:59:00 | 68 8 58 50.7 | 70.731 USDT 7.00% |
=======================================================================================================================================================================
For more details, please look at the detail tables above