nateemma / strategies

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

Json files #36

Closed tomjrtsmith closed 1 year ago

tomjrtsmith commented 1 year ago

Hey Phil, I'm trying to reconfigure a few of your strats to run without the json files and there seems to be no way to do it. I've placed everything in the buy and sell params section in the strat file, renamed the json file and commented out custom_trade_info in case that had any effect. None of the settings it is picking (below) up are available to it anywhere in the strat - I've changed entry_model_dif to 0.5 in the default settings and it still picks up 1 and it refuses to pick up the buy_params column. I'm wondering where in the code or anywhere else it could be picking up these settings from? Is there somewhere in the code that I can't see where you're telling it to use the json file? Ultimately if it's a case of the getting the strat to work I could go back to the json format but it seems bizarre and random that it picks up default settings that simply aren't available to it so I'm wondering where else it could be getting this information.

Sep 4 23:21:57 instance-20221222-1628 freqtrade_ft8a[2672007]: 2023-09-04 23:21:57,071 - freqtrade.strategy.hyper - INFO - No params for buy found, using default values. Sep 4 23:21:57 instance-20221222-1628 freqtrade.strategy.hyper - INFO - No params for buy found, using default values. Sep 4 23:21:57 instance-20221222-1628 freqtrade_ft8a[2672007]: 2023-09-04 23:21:57,071 - freqtrade.strategy.hyper - INFO - Strategy Parameter(default): entry_model_diff = 1.0 Sep 4 23:21:57 instance-20221222-1628 freqtrade.strategy.hyper - INFO - Strategy Parameter(default): entry_model_diff = 1.0 Sep 4 23:21:57 instance-20221222-1628 freqtrade_ft8a[2672007]: 2023-09-04 23:21:57,072 - freqtrade.strategy.hyper - INFO - No params for sell found, using default values. Sep 4 23:21:57 instance-20221222-1628 freqtrade.strategy.hyper - INFO - No params for sell found, using default values. Sep 4 23:21:57 instance-20221222-1628 freqtrade_ft8a[2672007]: 2023-09-04 23:21:57,072 - freqtrade.strategy.hyper - INFO - Strategy Parameter(default): enable_exit_signal = True Sep 4 23:21:57 instance-20221222-1628 freqtrade_ft8a[2672007]: 2023-09-04 23:21:57,072 - freqtrade.strategy.hyper - INFO - Strategy Parameter(default): enable_guards = True Sep 4 23:21:57 instance-20221222-1628 freqtrade.strategy.hyper - INFO - Strategy Parameter(default): enable_exit_signal = True Sep 4 23:21:57 instance-20221222-1628 freqtrade_ft8a[2672007]: 2023-09-04 23:21:57,072 - freqtrade.strategy.hyper - INFO - Strategy Parameter(default): exit_model_diff = -1.0 Sep 4 23:21:57 instance-20221222-1628 freqtrade_ft8a[2672007]: 2023-09-04 23:21:57,072 - freqtrade.strategy.hyper - INFO - Strategy Parameter(default): loss_threshold = -0.046 Sep

tomjrtsmith commented 1 year ago

Ignore this Phil I had duplicate class names in the folder!