Code Monkey home page Code Monkey logo

trade-bot-freqtrade's Introduction

Auto Trading Bot

Prerequisites

  1. Install Docker
  2. Install Docker-compose
  3. Clone project.
  4. For linux, change project folder permission;
$ sudo chmod -R 777 `<PROJECT_FOLDER>`

Dry-Run or Live-Trading

After all changes in project folder, you should add --build to command

$ docker-compose up -d --build

Data Downloading

Getting data for backtesting and hyperopt

$ docker-compose run --rm freqtrade download-data --erase -t 5m --timerange 20210101-20210515

Backtesting

  • Generic Command
$ docker-compose run --rm freqtrade backtesting --strategy-list BBRSI --timeframe 5m --export trades --export-filename=user_data/backtest_results/BBRSI_result.json

$ docker-compose run --rm freqtrade backtesting --strategy-list ONUR YABAR YABAR2 --timeframe 5m --export trades --export-filename=user_data/backtest_results/YABAR_onur_yabar2_result.json --timerange 20210101-20210515

20210414-20210427

freqtrade backtesting --timerange 20180401-20180410 --timeframe 5m --strategy-list Strategy001 Strategy002 --export trades

  • Command example
$ docker-compose run --rm freqtrade backtesting --strategy-list BBRSI --timeframe 15m --export trades --export-filename=user_data/backtest_results/BBRSI_result.json

Hyperopt

  • Generic Command
$ docker-compose run --rm freqtrade hyperopt --hyperopt `<HYPEROPTNAME>` --hyperopt-loss `<HYPEROPTLOSSNAME>` --strategy `<STRATEGY>` -e `<EVALUATION_COUNT>`
  • Command example
$ docker-compose run --rm freqtrade hyperopt --hyperopt SampleHyperOpt --hyperopt-loss SampleHyperOptLoss --strategy BBRSI -e 10

plotting

dcr freqtrade plot-dataframe --strategy BBRSI -p DOGE/USDT i- 15m

troubleshooting

docker logs -f --tail 100 container-id to see logs

docker container rm -f name to remove container

trade-bot-freqtrade's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.