nateemma / strategies

Custom trading strategies using the freqtrade framework
329 stars 88 forks source link

Some questions about training and optimization #41

Closed maledicente closed 10 months ago

maledicente commented 10 months ago

I always use docker. I created an image with the requirements in the Dockerfile, it works well. Can I train TS_Gain normally or is there a specific configuration in zsh?

back_b_ia: image: freqtrade_ia restart: on-failure container_name: back_b_ia volumes:

nateemma commented 10 months ago

Oops, the instructions are slightly wrong - you need to add .sh to test_strat:

zsh user_data/strategies/scripts/test_strat.sh -n 600 TSPredict TS_Gain

If you haven't changed the indicators, you (usually) don't need to re-generate the model

Thanks,

Phil

On Thu, Dec 7, 2023 at 3:52 PM Luiz Paulo Nievola @.***> wrote:

I always use docker. I created an image with the requirements in the Dockerfile, it works well. Can I train TS_Gain normally or is there a specific configuration in zsh?

back_b_ia: image: freqtrade_ia restart: on-failure container_name: back_b_ia volumes:

  • "./user_data:/freqtrade/user_data" command: > backtesting --datadir user_data/data/${EXCHANGE:-binance} -c user_data/config-exchange-general.json -c /freqtrade/user_data/bot_binance_ia.json -c user_data/pair_lists/api_binance.json -c user_data/pair_lists/blacklist-binance.json -c user_data/pair_lists/api_binance.json -c user_data/config-telegram-general.json --max-open-trades ${MAX_OPEN_TRADES:-6} --strategy-list TSPredict TS_Gain -c user_data/pair_lists/pairlist-backtest-static-binance-spot-usdt.json --data-format-ohlcv feather --timeframe 5m --dry-run-wallet 100 --timerange ${TIMERANGE:-20220101-20231207} CPU: '48' mem_limit: 500G memswap_limit: -1

I have tried to use your script in a ubuntu machine, but zsh: can't open input file: user_data/strategies/scripts/test_strat freqtrade_local/freqtrade$ zsh user_data/strategies/scripts/test_strat -n 600 TSPredict TS_Gain

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

maledicente commented 10 months ago

Okay, here -n 600 TS Predict TS Gain -n = 600 days? In Docker, can I directly train Ts_Gain with the commands above in back_b_ia? I'm slowly studying your algorithms, it's quite dense to understand hehe

nateemma commented 10 months ago

I don't quite understand your question. What is back_b_ia?

Anyway, not sure if this will help:

Hope that helps. Feel free to ask more questions, I know it's pretty complicated

Thanks,

Phil

On Thu, Dec 7, 2023 at 5:08 PM Luiz Paulo Nievola @.***> wrote:

Okay, here -n 600 TS Predict TS Gain -n = 600 days? In Docker, can I directly train Ts_Gain with the commands above in back_b_ia? I'm slowly studying your algorithms, it's quite dense to understand hehe

— Reply to this email directly, view it on GitHub https://github.com/nateemma/strategies/issues/41#issuecomment-1846343627, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD4X5YX7WRSTTKN7OWEOMLYIJSBNAVCNFSM6AAAAABAL3RSKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWGM2DGNRSG4 . You are receiving this because you commented.Message ID: @.***>