Open xiaomu698 opened 3 months ago
Hello, I ran your zsh file directly and it still got an error
➜ /freqtrade git:(develop) zsh user_data/strategies/scripts/test_strat.sh -n 30 binanceus NNTC_macd_Transformer 2024-05-31 11:26:15,574 - freqtrade - INFO - freqtrade 2024.6-dev-a02ef7dce Exchange (binanceus) detected - using legacy mode
Using config file: user_data/strategies/binanceus/config_binanceus.json and Strategy dir: user_data/strategies/binanceus
Fri 31 May 2024 11:26:16 AM CST Testing strategy:NNTC_macd_Transformer for exchange:_binanceus... freqtrade backtesting --cache none --breakdown month --timerange=20240501-20240531 -c user_data/strategies/binanceus/config_binanceus.json --strategy-path user_data/strategies/binanceus --strategy-list NNTC_macd_Transformer 2024-05-31 11:26:18,617 - freqtrade - INFO - freqtrade 2024.6-dev-a02ef7dce 2024-05-31 11:26:18,620 - freqtrade.configuration.load_config - INFO - Using config: user_data/strategies/binanceus/config_binanceus.json ... 2024-05-31 11:26:18,620 - freqtrade.loggers - INFO - Verbosity set to 0 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using additional Strategy lookup path: user_data/strategies/binanceus 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using max_open_trades: 10 ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Parameter --timerange detected: 20240501-20240531 ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using user-data directory: /freqtrade/user_data ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using data directory: /freqtrade/user_data/data/binanceus ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using strategy list of 1 strategies 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Parameter --breakdown detected ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Parameter --cache=none detected ... 2024-05-31 11:26:18,622 - freqtrade.configuration.configuration - INFO - Filter trades by timerange: 20240501-20240531 2024-05-31 11:26:18,622 - freqtrade.exchange.check_exchange - INFO - Checking exchange... 2024-05-31 11:26:18,633 - freqtrade.exchange.check_exchange - INFO - Exchange "binanceus" is officially supported by the Freqtrade development team. 2024-05-31 11:26:18,634 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration. 2024-05-31 11:26:18,634 - freqtrade.configuration.config_validation - INFO - Validating configuration ... 2024-05-31 11:26:18,636 - freqtrade.commands.optimize_commands - INFO - Starting freqtrade in Backtesting mode 2024-05-31 11:26:18,637 - freqtrade.exchange.exchange - INFO - Instance is running with dry_run enabled 2024-05-31 11:26:18,637 - freqtrade.exchange.exchange - INFO - Using CCXT 4.3.35 2024-05-31 11:26:18,658 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance US" 2024-05-31 11:26:20,089 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'... 2024-05-31 11:26:25,021 - freqtrade - ERROR - Impossible to load Strategy 'NNTC_macd_Transformer'. This class does not exist or contains Python code errors.
Hello, I ran your zsh file directly and it still got an error
➜ /freqtrade git:(develop) zsh user_data/strategies/scripts/test_strat.sh -n 30 binanceus NNTC_macd_Transformer 2024-05-31 11:26:15,574 - freqtrade - INFO - freqtrade 2024.6-dev-a02ef7dce Exchange (binanceus) detected - using legacy mode
Using config file: user_data/strategies/binanceus/config_binanceus.json and Strategy dir: user_data/strategies/binanceus
Fri 31 May 2024 11:26:16 AM CST Testing strategy:NNTC_macd_Transformer for exchange:_binanceus... freqtrade backtesting --cache none --breakdown month --timerange=20240501-20240531 -c user_data/strategies/binanceus/config_binanceus.json --strategy-path user_data/strategies/binanceus --strategy-list NNTC_macd_Transformer 2024-05-31 11:26:18,617 - freqtrade - INFO - freqtrade 2024.6-dev-a02ef7dce 2024-05-31 11:26:18,620 - freqtrade.configuration.load_config - INFO - Using config: user_data/strategies/binanceus/config_binanceus.json ... 2024-05-31 11:26:18,620 - freqtrade.loggers - INFO - Verbosity set to 0 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using additional Strategy lookup path: user_data/strategies/binanceus 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using max_open_trades: 10 ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Parameter --timerange detected: 20240501-20240531 ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using user-data directory: /freqtrade/user_data ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using data directory: /freqtrade/user_data/data/binanceus ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Using strategy list of 1 strategies 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Parameter --breakdown detected ... 2024-05-31 11:26:18,621 - freqtrade.configuration.configuration - INFO - Parameter --cache=none detected ... 2024-05-31 11:26:18,622 - freqtrade.configuration.configuration - INFO - Filter trades by timerange: 20240501-20240531 2024-05-31 11:26:18,622 - freqtrade.exchange.check_exchange - INFO - Checking exchange... 2024-05-31 11:26:18,633 - freqtrade.exchange.check_exchange - INFO - Exchange "binanceus" is officially supported by the Freqtrade development team. 2024-05-31 11:26:18,634 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration. 2024-05-31 11:26:18,634 - freqtrade.configuration.config_validation - INFO - Validating configuration ... 2024-05-31 11:26:18,636 - freqtrade.commands.optimize_commands - INFO - Starting freqtrade in Backtesting mode 2024-05-31 11:26:18,637 - freqtrade.exchange.exchange - INFO - Instance is running with dry_run enabled 2024-05-31 11:26:18,637 - freqtrade.exchange.exchange - INFO - Using CCXT 4.3.35 2024-05-31 11:26:18,658 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance US" 2024-05-31 11:26:20,089 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'... 2024-05-31 11:26:25,021 - freqtrade - ERROR - Impossible to load Strategy 'NNTC_macd_Transformer'. This class does not exist or contains Python code errors.