nateemma / strategies

Custom trading strategies using the freqtrade framework
318 stars 85 forks source link

test strat error #34

Open Limore0129 opened 1 year ago

Limore0129 commented 1 year ago

(.env) abc@aliadeMacBook-Pro freqtrade_my % zsh user_data/strategies/scripts/test_strat.sh -n 30 binance NNPredict_CNN

Using config file: user_data/strategies/binance/config_binance.json and Strategy dir: user_data/strategies/binance

Testing strategy:NNPredict_CNN for exchange:binance... freqtrade backtesting --cache none --breakdown month --timerange=20230620-20230720 -c user_data/strategies/binance/config_binance.json --strategy-path user_data/strategies/binance --strategy-list NNPredict_CNN 2023-07-20 23:25:31,933 - freqtrade - INFO - freqtrade 2023.6.dev-0b8ef1b88 2023-07-20 23:25:31,934 - freqtrade.configuration.load_config - INFO - Using config: user_data/strategies/binance/config_binance.json ... 2023-07-20 23:25:31,934 - freqtrade.loggers - INFO - Verbosity set to 0 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Using additional Strategy lookup path: user_data/strategies/binance 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Using max_open_trades: 10 ... 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Parameter --timerange detected: 20230620-20230720 ... 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Using user-data directory: /Users/limore/quant_github/freqtrade_my/user_data ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Using data directory: /Users/limore/quant_github/freqtrade_my/user_data/data/binance ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Using strategy list of 1 strategies 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Parameter --breakdown detected ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Parameter --cache=none detected ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Filter trades by timerange: 20230620-20230720 2023-07-20 23:25:31,935 - freqtrade.exchange.check_exchange - INFO - Checking exchange... 2023-07-20 23:25:31,938 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team. 2023-07-20 23:25:31,938 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration. 2023-07-20 23:25:31,938 - freqtrade.configuration.config_validation - INFO - Validating configuration ... 2023-07-20 23:25:31,939 - freqtrade.commands.optimize_commands - INFO - Starting freqtrade in Backtesting mode 2023-07-20 23:25:31,939 - freqtrade.exchange.exchange - INFO - Instance is running with dry_run enabled 2023-07-20 23:25:31,939 - freqtrade.exchange.exchange - INFO - Using CCXT 3.1.23 2023-07-20 23:25:31,940 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'options': {'defaultType': 'swap'}, 'aiohttp_proxy': 'http://127.0.0.1:1081', 'proxies': {'http': 'http://127.0.0.1:1081', 'https': 'http://127.0.0.1:1081'}} 2023-07-20 23:25:31,942 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'options': {'defaultType': 'swap'}, 'aiohttp_proxy': 'http://127.0.0.1:1081', 'proxies': {'http': 'http://127.0.0.1:1081', 'https': 'http://127.0.0.1:1081'}} 2023-07-20 23:25:31,945 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance" 2023-07-20 23:25:40,458 - freqtrade.exchange.exchange - WARNING - Could not load async markets. Reason: binance GET https://fapi.binance.com/fapi/v1/exchangeInfo 2023-07-20 23:25:40,467 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'... 2023-07-20 23:25:43,949 - torch.distributed.nn.jit.instantiator - INFO - Created a temporary directory at /var/folders/0h/68ps0f690bz5xn7mk5_538h40000gp/T/tmp_7pvk72k 2023-07-20 23:25:43,949 - torch.distributed.nn.jit.instantiator - INFO - Writing /var/folders/0h/68ps0f690bz5xn7mk5_538h40000gp/T/tmp_7pvk72k/_remote_module_non_scriptable.py 2023-07-20 23:25:44,773 - freqtrade - ERROR - Impossible to load Strategy 'NNPredict_CNN'. This class does not exist or contains Python code errors.

when I test NNPredict_CNN strategy ,I get this error. I don't know that's why, can you help me check out it?

Limore0129 commented 1 year ago

I check NNPredict_CNN.py again, no bug,just download from this repo without any modify.but I can't load it @nateemma

nateemma commented 1 year ago

Sorry, I updated tensorflow, and didn't make the necessary changes to NNPredict.py. I'm re-generating the model and will upload when that is done...

Note that I haven't worked on the NNPredict family for a while

Thanks,

Phil

On Thu, Jul 20, 2023 at 8:32 AM Limore0129 @.***> wrote:

(.env) @.*** freqtrade_my % zsh user_data/strategies/scripts/test_strat.sh -n 30 binance NNPredict_CNN

Using config file: user_data/strategies/binance/config_binance.json and Strategy dir: user_data/strategies/binance

Testing strategy:NNPredict_CNN for exchange:binance... freqtrade backtesting --cache none --breakdown month --timerange=20230620-20230720 -c user_data/strategies/binance/config_binance.json --strategy-path user_data/strategies/binance --strategy-list NNPredict_CNN 2023-07-20 23:25:31,933 - freqtrade - INFO - freqtrade 2023.6.dev-0b8ef1b88 2023-07-20 23:25:31,934 - freqtrade.configuration.load_config - INFO - Using config: user_data/strategies/binance/config_binance.json ... 2023-07-20 23:25:31,934 - freqtrade.loggers - INFO - Verbosity set to 0 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Using additional Strategy lookup path: user_data/strategies/binance 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Using max_open_trades: 10 ... 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Parameter --timerange detected: 20230620-20230720 ... 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Using user-data directory: /Users/limore/quant_github/freqtrade_my/user_data ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Using data directory: /Users/limore/quant_github/freqtrade_my/user_data/data/binance ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Using strategy list of 1 strategies 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Parameter --breakdown detected ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Parameter --cache=none detected ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Filter trades by timerange: 20230620-20230720 2023-07-20 23:25:31,935 - freqtrade.exchange.check_exchange - INFO - Checking exchange... 2023-07-20 23:25:31,938 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team. 2023-07-20 23:25:31,938 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration. 2023-07-20 23:25:31,938 - freqtrade.configuration.config_validation - INFO

  • Validating configuration ... 2023-07-20 23:25:31,939 - freqtrade.commands.optimize_commands - INFO - Starting freqtrade in Backtesting mode 2023-07-20 23:25:31,939 - freqtrade.exchange.exchange - INFO - Instance is running with dry_run enabled 2023-07-20 23:25:31,939 - freqtrade.exchange.exchange - INFO - Using CCXT 3.1.23 2023-07-20 23:25:31,940 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'options': {'defaultType': 'swap'}, 'aiohttp_proxy': 'http://127.0.0.1:1081', 'proxies': {'http': ' http://127.0.0.1:1081', 'https': 'http://127.0.0.1:1081'}} 2023-07-20 23:25:31,942 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'options': {'defaultType': 'swap'}, 'aiohttp_proxy': 'http://127.0.0.1:1081', 'proxies': {'http': ' http://127.0.0.1:1081', 'https': 'http://127.0.0.1:1081'}} 2023-07-20 23:25:31,945 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance" 2023-07-20 23:25:40,458 - freqtrade.exchange.exchange - WARNING - Could not load async markets. Reason: binance GET https://fapi.binance.com/fapi/v1/exchangeInfo 2023-07-20 23:25:40,467 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'... 2023-07-20 23:25:43,949 - torch.distributed.nn.jit.instantiator - INFO - Created a temporary directory at /var/folders/0h/68ps0f690bz5xn7mk5_538h40000gp/T/tmp_7pvk72k 2023-07-20 23:25:43,949 - torch.distributed.nn.jit.instantiator - INFO - Writing /var/folders/0h/68ps0f690bz5xn7mk5_538h40000gp/T/tmp_7pvk72k/_remote_module_non_scriptable.py 2023-07-20 23:25:44,773 - freqtrade - ERROR - Impossible to load Strategy 'NNPredict_CNN'. This class does not exist or contains Python code errors.

when I test NNPredict_CNN strategy ,I get this error. I don't know that's why, can you help me check out it?

— Reply to this email directly, view it on GitHub https://github.com/nateemma/strategies/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD4X5YCBIFESH2CMKF6VJDXRFFR5ANCNFSM6AAAAAA2RTQUWU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

nateemma commented 1 year ago

OK, the repo is updated. However, the predictions look really bad, something is wrong with that strategy. I won't be able to look at it for a few weeks (going on a camping trip), sorry...

Thanks,

Phil

On Thu, Jul 20, 2023 at 9:52 AM Phil Price @.***> wrote:

Sorry, I updated tensorflow, and didn't make the necessary changes to NNPredict.py. I'm re-generating the model and will upload when that is done...

Note that I haven't worked on the NNPredict family for a while

Thanks,

Phil

On Thu, Jul 20, 2023 at 8:32 AM Limore0129 @.***> wrote:

(.env) @.*** freqtrade_my % zsh user_data/strategies/scripts/test_strat.sh -n 30 binance NNPredict_CNN

Using config file: user_data/strategies/binance/config_binance.json and Strategy dir: user_data/strategies/binance

Testing strategy:NNPredict_CNN for exchange:binance... freqtrade backtesting --cache none --breakdown month --timerange=20230620-20230720 -c user_data/strategies/binance/config_binance.json --strategy-path user_data/strategies/binance --strategy-list NNPredict_CNN 2023-07-20 23:25:31,933 - freqtrade - INFO - freqtrade 2023.6.dev-0b8ef1b88 2023-07-20 23:25:31,934 - freqtrade.configuration.load_config - INFO - Using config: user_data/strategies/binance/config_binance.json ... 2023-07-20 23:25:31,934 - freqtrade.loggers - INFO - Verbosity set to 0 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Using additional Strategy lookup path: user_data/strategies/binance 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Using max_open_trades: 10 ... 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Parameter --timerange detected: 20230620-20230720 ... 2023-07-20 23:25:31,934 - freqtrade.configuration.configuration - INFO - Using user-data directory: /Users/limore/quant_github/freqtrade_my/user_data ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Using data directory: /Users/limore/quant_github/freqtrade_my/user_data/data/binance ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Using strategy list of 1 strategies 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Parameter --breakdown detected ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Parameter --cache=none detected ... 2023-07-20 23:25:31,935 - freqtrade.configuration.configuration - INFO - Filter trades by timerange: 20230620-20230720 2023-07-20 23:25:31,935 - freqtrade.exchange.check_exchange - INFO - Checking exchange... 2023-07-20 23:25:31,938 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team. 2023-07-20 23:25:31,938 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration. 2023-07-20 23:25:31,938 - freqtrade.configuration.config_validation - INFO - Validating configuration ... 2023-07-20 23:25:31,939 - freqtrade.commands.optimize_commands - INFO - Starting freqtrade in Backtesting mode 2023-07-20 23:25:31,939 - freqtrade.exchange.exchange - INFO - Instance is running with dry_run enabled 2023-07-20 23:25:31,939 - freqtrade.exchange.exchange - INFO - Using CCXT 3.1.23 2023-07-20 23:25:31,940 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'options': {'defaultType': 'swap'}, 'aiohttp_proxy': 'http://127.0.0.1:1081', 'proxies': {'http': ' http://127.0.0.1:1081', 'https': 'http://127.0.0.1:1081'}} 2023-07-20 23:25:31,942 - freqtrade.exchange.exchange - INFO - Applying additional ccxt config: {'options': {'defaultType': 'swap'}, 'aiohttp_proxy': 'http://127.0.0.1:1081', 'proxies': {'http': ' http://127.0.0.1:1081', 'https': 'http://127.0.0.1:1081'}} 2023-07-20 23:25:31,945 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance" 2023-07-20 23:25:40,458 - freqtrade.exchange.exchange - WARNING - Could not load async markets. Reason: binance GET https://fapi.binance.com/fapi/v1/exchangeInfo 2023-07-20 23:25:40,467 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'... 2023-07-20 23:25:43,949 - torch.distributed.nn.jit.instantiator - INFO - Created a temporary directory at /var/folders/0h/68ps0f690bz5xn7mk5_538h40000gp/T/tmp_7pvk72k 2023-07-20 23:25:43,949 - torch.distributed.nn.jit.instantiator - INFO - Writing /var/folders/0h/68ps0f690bz5xn7mk5_538h40000gp/T/tmp_7pvk72k/_remote_module_non_scriptable.py 2023-07-20 23:25:44,773 - freqtrade - ERROR - Impossible to load Strategy 'NNPredict_CNN'. This class does not exist or contains Python code errors.

when I test NNPredict_CNN strategy ,I get this error. I don't know that's why, can you help me check out it?

— Reply to this email directly, view it on GitHub https://github.com/nateemma/strategies/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD4X5YCBIFESH2CMKF6VJDXRFFR5ANCNFSM6AAAAAA2RTQUWU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Limore0129 commented 1 year ago

ok,thanks for your reply.