Latest posts

Browse topics

How To Setup Gekko BTC Trading Bot on VPS (Ubuntu 16.04) with GUI (Vultr.com)

Gekko is a free and open source Bitcoin TA trading and backtesting platform that connects to popular Bitcoin exchanges. It is written in javascript and runs on nodejs

For the past couple of days I've been playing around with Gekko trading bot installed on my laptop (Windows 10), I have made a few trades and experimented with a couple of strategies. First impressions are promising. See: Simple BTC Trading Bot Gekko - First Impressions

Running a trading bot on a laptop is fun, but if you are looking for a bot 24/7monitoring market and executing trades, either you should keep your PC turned on 24/7 or you could set up a cheap VPS and setup bot on it. 

Disclosure: This article contains affiliate links to cloud hosting companies like Linode and Vultr, by clicking on links on this page and by making a purchase on cloud hosting sites, I will earn an affiliate income at no cost to you.

As I have a couple of VPS from Linode, my first idea was to test this setup on Linode VPS, but fortunately, I found a cool tutorial How to setup VPS on Vultr.com and run Gekko by Pushkar Nagle

As I had little clue what Vultr.com hosting is - I decided to purchase cheapest VPS (they kind of have VPS for $2.50 but at time I setup a cloud hosting at Vultr.com the cheapest I was offered was at $5/mo, still cheap)

Here is what I bought for $5/mo :

  • CPU: 1 vCore
  • RAM: 1024 MB
  • Storage: 25 GB SSD

seems enough to run dozens of Gekko's on it

Location for server Amsterdam (Amsterdam is a great bet for European customers) and deployed Ubuntu 16.04 on it. I followed Pushkar's advice and installed GUI, and here is how:

  1. Go to Management area of that VPS machine on Vultr.com.
  2. Open 'View Console'
  3. Login with root and the default password provided.
  4. Follow this tutorial to install GUI Desktop on this VPS https://www.vultr.com/docs/install-gui-environment-for-ubuntu
  5. After installing above desktop and rebooting, you might struggle to find the terminal. Click on icon at left-bottom corner, open Run
  6. Type xterm and hit enter.
  7. Install 'lxterminal' with this command - apt-get install lxterminal
  8. Close xterm and run lxterminal via Accessories > Byodu Terminal
  9. You will need to install Nodejs before installing Gekko. Gekko requires version > 6. You can install it by executing below commands- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - and sudo apt-get install -y nodejs
  10. Check npm version before proceeding to install Gekko by npm -v. If it is < 4.5, then Gekko might not run. Run npm install npm -g to update npm to latest version.
  11. Install Gekko as given in this tutorial -https://gekko.wizb.it/docs/installation/installing_gekko.html

Now you can run Gekko in UI mode or via command line. Alternatively, you can also install VNC services to access this VPS remotely. Else, default console facility of Vultr is already there.

Vultr dashboard

Vultr dashboard

Follow the red arrow to launch console

Gekko launched via console

Gekko launched via console

Amazing, now I don't have to worry to leave my laptop powered on - the cloud is up and running.

How to send international fax to USA using Faxapp

Think fax is outdated? Think twice, fax is still popular in certain business areas, and fax is kind of popular in the United States. I believe the last time I have seen an actual fax machine in work was back in 1994. Now 24 years later at one stage I thought, it would be good if I would have a fax machine in 2018.

I had to send a fax confirming my identity to the Microsoft Corp. Keep reading to learn how to send an international fax without having a fax machine.

Turns out, there are several online apps allowing to send a fax from the web, after a quick research I decided to give it a try for Faxapp.

Faxapp

Send faxes without a landline to a "classic" fax machine. You’ll get your own local fax number. 
No software required, but available.

All received faxes are swiftly delivered to your email inbox.

Ten-day trial

  • Send and receive faxes for free
  • Cancelled automatically
  • No credit card required

It took me some 5 minutes to open an account at faxapp, and the next thing was just to send international fax to the United States

Faxapp dashboard

Faxapp dashboard

In total it took me 3 attempts to successfully deliver fax to the US, for first two failed attempts I received an explanatory e-mail, the first time it was said - fax machine is not turned on, second time probably fax machine has run out of the ink, and third time - success.

Fax receipt: Error

Fax receipt: Error

Now, I didn't spend a dime for sending this fax in a trial mode, and after a couple of days, I received an answer from MS corp, which means faxapp is working and actually sending faxes.

I doubt I will need to use fax ever again, but as they say, you never know - and if, then faxapp is the way to go. 

 

Simple BTC Trading Bot Gekko - First Impressions

The idea of using a bitcoin trading bot comes up just shortly I decided to trade up from 0.03 to 0.05 BTC. In the past, I've been using Coinlend bot to lend free coins on exchanges and earn some little interest.

Doing a quick google search I found a few bitcoin bot traders, most come with a price, but as I wanted to test how these bots actually work I continued my searches and found free bitcoin bot trader - Gekko.  Setting up this bot will be simple for a tech-savvy person, but might be a daunting task for a novice, as bot asks to install nodejs and in fact, it took me some 4 hours to set up this bot, as there were some issues (more on that at the end of this article)

Gekko is a free and open source Bitcoin TA trading and backtesting platform that connects to popular Bitcoin exchanges. It is written in javascript and runs on nodejs.

You can either create your own trading strategy or start with the built-in example strategies. Once you have a strategy you can use Gekko to automatically run it in a few different ways:

  • Backtest: You can start a simulation of the strategy over a historical data period and Gekko will tell you what would have happened (which trades would have been performed as well as overall performance and risk metrics).
  • Paper trader: You can run the strategy in realtime simulate trading (trade with fake money) to see in realtime how profitable your strategy would have been.
  • Tradebot: You can run the strategy in realtime and automatically execute orders based on the signals.

All the above modes can be run from the user interface, this interface will show charts and performance/risk statistics.

Installing Gekko on windows

To get Gekko running on Windows you need to do the following:

  • install nodejs
  • download Gekko
  • install Gekko's dependencies

Learn more about steps here: Installing Gekko on windows 

Issues I faced while tried to setup Gekko on Windows

At the start I had many issues regarding sqlite database, Gekko is powered out of the box after I changed sqlite to postgresql it went smoothly.

If you are experiencing issues related to sqlite database, locate config/general.toml and change to following

# what database should Gekko use?
adapter = 'postgresql'

After switching databases I was able to connect bot to Poloniex exchange and start live trading. But before live trades, I tested my strategies on backtesting

Backtesting on Gekko

​Gekko supports backtesting strategies over historical data. This means that Gekko will simulate running a strategy in realtime against a live market. Backtesting requires having data locally available already. After a backtest Gekko will provide statistics about the market and the strategy's performance.

As I'm not very well educated on technical analysis indicators I did a few backtests with RSI (Relative Strenght Index) for BTC/EXP pair on Poloniex

Backtesting on Gekko

Backtesting on Gekko

Gekko backtests using a very limited datasource (only OHCL candles). This means that Gekko estimates trades (and thus profits), which depending on the liquidity and market depth might be estimated very wrong. By configuring the paper trader's fee and slippage you can better mimic trading at the real market.

In order to backtest with 100% accuracy one would need the exact state of the orderbook (spread and depth) as well as information about orders happening around the time of each advice. With Gekko we made the decision to not store all this information (to simplify importing and storing market data). In voluminous and liquid markets this shouldn't be too much of a problem, but if you are backtesting over a small market (like some altcoins) the estimation will be of poor accuracy.

Live trades

After backtesting, I tried live trades, again in BTC/EXP pair and made a small, but nice profit after couple of hours

Live trades

Live trades

Despite bot said there is a 1.05% profit after the first trade when checked actual data on Poloniex, I saw a negative return (because of the fees), though, after a couple of hours and more trades, both bot and Poloniex reported positive gains.

As you can see from the picture above, the bot is a little bit glitchy, reporting strange values (see the second row in roundtrips, saying 48 years)

Ethereum (and other altcoin) mining review after 2 months in 2018

February 16 marks a small 2-month anniversary since I've started to mine Ethereum and others altcoins. In today's article let's take a quick review and try to understand is GPU mining still profitable in 2018?

It all started with a FOMO back in December 2017, after successful second part of the year of investments in crypto, I decided to build a 12-GPU mining rig.

Currently, I've invested $1,661 in this mining rig and after 2 months of operations, the current ROI is 12.53% (not counting in cost for electricity). Meaning that in past two months I've mined coins worth of $208.05.

I have experimented both with different GPU cards and different coins. Here are coins I've mined so far: ETH, SC, ETC, and EXP

Mined coins

Mined coins

Currently, the rig consists of 4 GPU's:

Thanks to the open-minded crypto community I've learned a lot about how to overclock these cards and boost a little bit total income from GPU mining.

By building this GPU mining rig I'm using dollar cost averaging adding new cards time after time (originally I had a plan to add one card per month, but in the past 2 month's I've added 2 cards per month). Each time I add a new graphics card I make a brief recap on mining profitability, see:

Indeed, daily earnings from mining depend on cryptocurrency exchange rates, with current mining speed and exchange rates my mining rig if mining Ethereum would make about $4.35 daily, which is about 20%decrease if compared to the end of January exchange rates.

That's the reason I started to explore options to mine other coins:

During the past 2 months a lot of have happened - after bulls run at the end of 2017, the crypto market tanked at the start of 2018, making it longer to reach a positive ROI for investments in a mining rig. 

It seems Siacoin is no longer profitable for GPU mining starting 2018. See: Is It Profitable Mining Siacoin (SC) in 2018?

Last but not least, the so-called hard/soft forks happens not only for Bitcoin chain, but also for other coins, and currently, there is a planned Callisto airdrop planned for ETC coin. See: How to Prepare for Upcoming Callisto Airdrop (Ethereum Classic)

How To Mine EXP (Expanse) with SMOS

A couple of days ago I shared a quick tutorial on how to mine ETC (Ethereum Classic) with SMOS (Simple Mining OS), as there is an upcoming ETC Callisto airdrop happening, the idea to pre-mine couple of ETC's sounded tempting to me. 

Now, as I've been using a mixed AMD + NVIDIA mining rig, to get most of it, I'm left using Claymore's dual miner, which just recently released version 11.0 , and I decided to test it with some new coin, after a quick google search I found a quite a few Ethash based coins (good for Claymore's miner) and this time my attention got the EXP (expanse) coin. Reason is quite simple, EXP is listed on Poloniex.com exchange, which means following - I don't need to look for a wallet (I should but for the purpose of this experiment I don't), and since the coin is already listed on a well-known exchange - there shouldn't be problems to exchange EXP to BTC.

As I had some nice ZEC/BTC trade on Poloniex, I exchanged some small amount of BTC to EXP, before going deeper.

Now, before getting into technical stuff on how to mine EXP with SimpleMining.net, let's find out more what do we know about EXP.

In short - EXP is known as being first stable fork of Ethereum

Expanse.Tech™ was created as the first stable fork of Ethereum. Expanse was built as a community-based project without an ICO, (Initial Coin Offering), and is blockchain agnostic. The idea is to use cutting-edge blockchain technology to build anything the community and team can imagine—using a Decentralized Autonomous Organization, (DAO), with a self-funded design to keep it truly decentralized. This way, the Expanse community can evolve and grow while rewarding holders, partners, and investors.

The Expanse platform now has a two-year history of consistent growth and stability. Starting out small, but with big ideas, the team is growing and other projects are now coming on board to help make the dream a reality—limited only by the imagination and talent of all the diverse people around the world involved in the journey. Each new community member and partner brings new ideas and visions for the future. Expanse.Tech plans to be one of the top blockchain projects in the world.

Goals for Expanse are to create the most advanced forms of identity, governance, charity, commerce, and equity. All the services Expanse create will work together to form the EXP.DAO. Each DAO module can also act as an individualized service. 

Learn more at https://www.expanse.tech

How to mine EXP coin with SMOS (SimpleMiningOS)

Things you will need:

Now, once you are ready, log in to SimpleMining.net, from the left pane choose Rig Groups - > Add group

Give it a nice name, for example, EXP miner, select claymore-eth-v11.0 and in the options box fill in following:

-epool eu.expmine.pro:9009 -ewal <Your_EXP_Address> -eworker RigName -epsw x -allcoins exp

Make sure to change <Your_EXP_Address>> with your actual EXP address

Save the group and reload the miner. Check if everything is fine here like you can see mining speed, temperatures and so on. 

Next, visit https://expmine.pro and paste your EXP address into the search bar to check your actual mining stats:

Mining EXP coin

Mining EXP coin

Cool, seems everything is working and now let's see how much we could actually make by mining EXP. To get some rough estimate I will use an online calculator from WhatToMine

​EXP mining profitability calculator

EXP mining profitability calculator

If there is some valuable lesson I've learned in the short time I've been into mining - these calculators are nice estimates, but it's not advisable to make any future forecasts (longer than a week) based on results you get from them. Crypto space is volatile, prices go up and down, so does mining difficulty. But yes, for rough estimates - they are great.

Now, it doesn't look very profitable mining $36/mo with ~60MH/s (current cost for my mining rig is $1,661), and if using rough estimates, to get back ROI from EXP mining it would take me 46 months (that's little less than 4 years), while mining Ethereum with the same hash power would give me ROI in about 19 months. Now as stated these calculators doesn't mean much, just to give you some basic understanding. 

See: To Mine or Buy Ethereum/Zcash/Monero in 2018

If you are for a quick buck EXP won't make you very rich overnight, but if you are willing to experiment, probably to mine some EXP in the hopes that in the future it could appreciate in value, sure go for it.