multiple strategies, default config
This commit is contained in:
71
README.md
71
README.md
@@ -27,7 +27,8 @@ I thought this fits quite well to the cryptotrading world and that's why i chose
|
||||
- Recording of available price values incl. RSI and MACD indicators of available cryptocurrencies
|
||||
- Analysis tool for collected historical values to try out buy or sell conditions based on them
|
||||
- ReadOnly web interface for overview
|
||||
- Runnable in a non-root docker container
|
||||
- Runnable in a non-root docker containe
|
||||
- multiple different buy and sell strategies possible at the same time
|
||||
|
||||
## Buy conditions
|
||||
- definable RSI Indicator signals min/max (RSI5, 14 and 21)
|
||||
@@ -51,17 +52,18 @@ https://gitea.ds9.dedyn.io/olli/debian.ansible.docker
|
||||
https://gitea.ds9.dedyn.io/olli/debian.ansible.traefik.server
|
||||
|
||||
|
||||
Download:
|
||||
## Download
|
||||
```
|
||||
git clone https://gitea.ds9.dedyn.io/olli/dabo.git
|
||||
cd dabo
|
||||
```
|
||||
|
||||
Build container:
|
||||
## Build container
|
||||
```
|
||||
docker -l warn compose --ansi never build --progress=plain --pull --no-cache --force-rm
|
||||
```
|
||||
|
||||
## Configure
|
||||
Edit docker-compose.yml or create docker-compose.override.yml to fit yout needs e.g. domain and network settings or basic auth, e.g. for traefik and letsencrypt:
|
||||
```
|
||||
echo '
|
||||
@@ -126,40 +128,67 @@ local API_KEY="YOUR_LONG_API_KEY_FROM_BINANCE" '>dabo/.binance-secrets
|
||||
chmod 400 dabo/.binance-secrets
|
||||
```
|
||||
|
||||
Edit your Config
|
||||
Especially change URL, STOCK_EXCHANGE, FEE, CURRENCY,... to fit your needs.
|
||||
Create Config
|
||||
Especially set URL, STOCK_EXCHANGE, FEE, CURRENCY,... to fit your needs.
|
||||
```
|
||||
vim dabo/dabo-bot.conf
|
||||
vim dabo-bot.conf
|
||||
```
|
||||
Defaults in dabo/dabo-bot.conf
|
||||
|
||||
|
||||
## Prepare/Create a stretegy
|
||||
|
||||
IMPORTANT!!!
|
||||
|
||||
THE DEFAULT STRATEGY MAY NOT FIT YOUR NEEDS OR WORK PROPERLY. SO YOU CAN LOOSE ALL YOUR MONEY!!! USE ON YOUR OWN RISK!!!
|
||||
|
||||
TEST YOUR OWN STRATEGY COMPREHENSIVELY AND OVER A LOGNER PERIOD OF TIME WITH analyze.sh!!! USE ON YOUR OWN RISK!!!
|
||||
|
||||
Strategie files can be put in the "strategies"-directory the defaults
|
||||
|
||||
There is an example for a buy and a sell strategy file (deactivated by "return 0" in the forst line):
|
||||
```
|
||||
ls strategies/buy.example.conf
|
||||
ls strategies/sell.example.conf
|
||||
```
|
||||
Aditional strategies can be created with Name
|
||||
```
|
||||
strategies/buy.<name>.conf
|
||||
strategies/sell.<name>.conf
|
||||
```
|
||||
e.g named "mannover-sulu-1" for buy strategy and "command-kirk-3" for sell strategy
|
||||
```
|
||||
strategies/buy.mannover-sulu-1.conf
|
||||
strategies/sell.command-kirk-3.conf
|
||||
```
|
||||
|
||||
|
||||
Prepare/Create a stretegy
|
||||
|
||||
IMPORTANT!!! THE DEFAULT STRATEGY MAY NOT FIT YOUR NEEDS OR WORK FPR YOU PROPERLY. SO YOU CAN LOOSE ALL YOUR MONEY!!! USE ON YOUR OWN RISK!!!
|
||||
|
||||
|
||||
## Set Rights
|
||||
Set Rights (UID 10000 for non-root-User in running container):
|
||||
```
|
||||
chown -R 10000:10000 dabo data home
|
||||
chown -R 10000:10000 dabo data home strategy
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Operational commands
|
||||
Run/Restart:
|
||||
```
|
||||
docker-compose down # if an old instance is running
|
||||
docker-compose up -d
|
||||
docker compose down # if an old instance is running
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
Check
|
||||
```
|
||||
docker compose ps
|
||||
```
|
||||
|
||||
Logs/Output:
|
||||
```
|
||||
docker-compose logs -f
|
||||
docker compose logs -f
|
||||
```
|
||||
|
||||
|
||||
bot.sh is the bot that trades and collects the quotes and analyze.sh is the tool with which you can try out strategies with the historical data.
|
||||
The configuration files are called bot.conf and analyze.conf. analyze.sh also uses bot.conf but its variables are overwritten by analyze.conf if duplicated.
|
||||
dabo-bot.sh is the bot that trades and collects the quotes and analyze.sh is the tool with which you can try out strategies with the historical data.
|
||||
The configuration files are called dabo-bot.conf and analyze.conf. analyze.sh also uses bot.conf but its variables are overwritten by analyze.conf if duplicated.
|
||||
|
||||
A Binance or Bitpanda account must exist and the API must be enabled.
|
||||
The access data is stored in the file .binance-secrets in the project directory in the variables API_SECRET and API_KEY.
|
||||
@@ -169,4 +198,6 @@ The access rights to this file should be set to the minimum necessary for securi
|
||||
- Crypto preferences (While/Blacklist for certain currencies)
|
||||
- Overview trades/profits/losses for tax declaration
|
||||
- Support for decentralized exchanges like uniswap to gain more "security"
|
||||
- mutliple trading strategies
|
||||
- updatemanagement - immuteable .config
|
||||
- archive old or large csv files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user