Data downloading , backtesting and hyperopt with Freqtrade

freqtradefreqtrade-tutorialfreqtrade-strategiesfreqtrade-hyperoptfreqtrade-aifreqtrade-setupfreqtrade-backtestingfreqtrade-install-windowsfreqtrade-multiple-botsfreqtrade-installfreqtrade-windowsfreqt

1. Data Downloading

Example 1: Downloading Historical Data from config.json file

docker compose run --rm freqtrade download-data --timerange 20220101-20220301 --timeframe 5m 15m 1h

Example 2: Downloading Data for number of days with 4h Timeframe

docker compose run --rm freqtrade download-data --config user_data/config.json --days 30 -t 4h

2. Backtesting

Example 1: Backtesting a Strategy with Default Configuration

docker compose run --rm freqtrade backtesting --config user_data/config.json --strategy MacheteV8b --timerange 20240101-20240201

Example 2: Backtesting with Custom Configuration

docker compose run --rm freqtrade backtesting --config user_data/newconfig.json --strategy MacheteV8b --timerange 20240101-20240201

3. Hyperparameter Optimization

Example 1: Hyperparameter Optimization with default file

docker compose run --rm freqtrade hyperopt --hyperopt-loss SharpeHyperOptLossDaily --spaces roi stoploss trailing --strategy SampleStrategy --config user_data/config.json -e 10

Example 2: Hyperparameter Optimization with custome config file

docker compose run --rm freqtrade hyperopt --hyperopt-loss SharpeHyperOptLossDaily --spaces roi stoploss trailing --strategy SampleStrategy --config user_data/newconfig.json -e 20