Crypto Trader Bot (Bitcoin, Litecoin, Ethereum)

(German version) 

What would you say if Cryptocoins like Bitcoins, Litecoins (LTC), Ethereum (ETH) could be tradet automaticly? Without a third party!

My Traderbot settings will help you!

In this article we will install an configure a traderbot on a Rasperry PI.

 

You need (switch adblocker off, or no pictures an links for products)

Raspberry PI Zero W

 

Micro SD

 

or

the Raspberry PI 3

 

Hint:

Mining without Hardware Genesis Mining. --> 30$ for 2 Years!

 

Very good concept: Social Trading!

 

initial situation:

You have a PI Zero or else with Debian Jessy installed. I recommend Noobs.

You could also use another Hardware or Virtual Box.

You also need a Kraken Account. You have to be TIER3 certified.

Antother traderprotal could be users, look at Zenbot what will be supportet. 

 

Execute as root or with sudo.

Show/Hidden bash code

View source
 
 
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
apt-get update
apt-get dist-upgrade
apt-get install htop vim unzip git wget screen mongodb
wget -O - https://raw.githubusercontent.com/audstanley/NodeJs-Raspberry-Pi/master/Install-Node.sh | bash; 
reboot
 

 

At this point you need an API-Key at kraken without deposit and withdrawl.

 

Go on with Zenbot

Show/Hidden bash code

View source
 
 
cd /
git clone https://github.com/carlos8f/zenbot.git
cd /zenbot
cp conf-sample.js conf.js
vim conf.js
 
 
 

Put kraken API and Secret Key in conf.js, and also c.kraken.tosagree = agree 

Vim will be used by keyboard and not with mouse. You could use the key "I" to start INSERT Modus. ESC ends the mode. ":" then "wq" writes the file and quits vim.

 

Show/Hidden bash code

View source
 
 
 
cd /zenbot
 
npm install --unsafe-perm
 
npm link
 
 
 
 

 

Now you can type in

Show/Hidden bash code

View source
 
 
./zenbot.sh list-selectors
 
 

... to list all currencys which could be traded.

 

Show/Hidden bash code

View source
 
 
./zenbot list-selectors | grep kraken
 
 

 

Because i want to trade Litecoins (LTC) i have to use a filter to see the matching selector

Show/Hidden bash code

View source
 
 
./zenbot.sh list-selectors | grep kraken | grep LTC
 
 

 

Result is kraken.XLTC-ZEUR

 

We need this for simulation. I show here last 30 days. More is no problem would take a bit longer.

If the script stops with an Error simply restart it.

Show/Hidden bash code

View source
 
 
./zenbot.sh backfill kraken.XLTC-ZEUR --days 30
 
 

 

Hint: Script which downloads history for one Year and Litecon, Bitcoin and Etherium. 

It took about 4 hours. If it show dowload complete or something similar you could kill it by STRG+C.

Show/Hidden bash code

View source
 
 
vim stats.sh
 
 
 

 

Put this in the file to get history ofLTC, ETH and Bitcoin.

 

Show/Hidden bash code

View source
 
 
#!/bin/bash
 
while true
 
do
 
        ./zenbot.sh backfill kraken.XETH-ZEUR --days 365
 
        ./zenbot.sh backfill kraken.XLTC-ZEUR --days 365
 
        ./zenbot.sh backfill kraken.XXBT-ZEUR --days 365
 
done
 
~           
 
 
 

Again with ESC, : , wq, ENTER saving.

 

Show/Hidden bash code

View source
 
 
chmod +x stats.sh
 
./stats.sh
 
 
 

 

Now you could start simulating. The best Parameters for me i've listet here for you.

Sim does not buy in reality! It shows what would have been.

If you not use this paramater...

--currency_capital <amount>
--asset_capital <amount>

The bot "Botti" starts with 1000€/$. If you have already a Coin you have to use asset_capital. If you habe already money on the account use current_capital.

 

Show/Hidden bash code

View source
 
 
 
./zenbot.sh sim kraken.XLTC-ZEUR --strategy trust_distrust --period=15m --sell_threshold=2 --sell_min=1 --buy_threshold=2
 
 
 

 

Und hier das Ergebnis:

 

 

At my rule it generates 26% Profit in history - Good!

 

If you want start trading with this rule change the word sim to trade:

Show/Hidden bash code

View source
 
./zenbot.sh trade kraken.XLTC-ZEUR --strategy trust_distrust --period=15m --sell_threshold=2 --sell_min=1 --buy_threshold=2
 
 
 

An now it starts!

Hint: Start Botti in Screen Session

Show/Hidden bash code

View source
 
screen -S zenbot
 
 
./zenbot.sh trade kraken.XLTC-ZEUR --strategy trust_distrust --period=15m --sell_threshold=2 --sell_min=1 --buy_threshold=2
 
 
 

STRG+A, release it, press D to detach session.

screen -x zenbot connects back

 

As you can see it works!

 

 

UPDATE for strategy:

For using forex strateg you have to download history. Here a Test with Bitcoin.

Think of your modelfile.

Show/Hidden bash code

View source
 
 
./zenbot.sh backfill kraken.XXBT-ZEUR --days 365
./zenbot.sh train kraken.XXBT-ZEUR
 
./zenbot.sh sim kraken.XXBT-ZEUR --strategy forex_analytics --modelfile=models/forex.model_kraken.XXBT-ZEUR_period\=30m_from\=20171020_093128+0000_to\=20171020_090000+0000_trainingVsBuyHold\=-1.29_testVsBuyHold\=noTest_created\=20171020_093128+0000.json
 
 
 

 

Here is my best result:

Show/Hidden bash code

View source
 
 
./zenbot.sh trade kraken.XETH-ZEUR --strategy=macd --order_adjust_time=10000 --markup_pct=0.3 --sell_stop_pct 10 --buy_stop_pct 1 --period=1h --profit_stop_enable_pct 5 --poll_trades 10000
 
 

 

For Notification on mobile device or desktop you could use slack

Create a Team and a Channel zenbot.

On slack.com you have to create a Webhookfor channel zenbot

 

Put Webhook-URL in conf.js

Show/Hidden bash code

View source
 
 
cd /zenbot
vim conf.js
 
 
 

c.notifiers.slack.on = true

c.notifiers.slack.webhook_url = "YOUR URL"

: , wq, ENTER

 

I changed the Picture in Slack. more here.

 

If this helped you, you could donate me a tip.

Kommentar schreiben

Sicherheitscode
Aktualisieren