Latest posts

Browse topics

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. 

How To Mine ETC (Ethereum Classic) with SimpleMining OS

For the past couple of weeks I've been experimenting with crypto mining and started with Claymore's dual miner to learn that I can dual mine both Ethereum and Siacoin out of the box, I put my mining rig as it is and let the machine to mine coins for me. See: I'm Making $0.98 Per Day By Mining Ethereum and Siacoin, and I want MORE!

Meanwhile, in crypto space, a lot has happened, and I decided to explore my options to mine some other coins using SimpleMining OS, which IMHO is awesome.

At the end of January, it started to look that mining Siacoin is not any more profitable with gpu's (Is It Profitable Mining Siacoin (SC) in 2018?) and I went solo mining Ethereum only, also I decided to pause adding new graphics cards to the mining rig before reaching ROI at least 20% - Mining Ethereum @ ~53 MH/s and Siacoin @ ~310 MH/s Earns me $5.53 Daily - And It's Time to take a Pause

Now, I decided to explore my options mining other altcoins, at start I wanted to test mining Monero, but as I have  a mixed AMD + NVIDIA mining rig, seems Simplemining is not yet supporting both cards for Monero, and it looks like just Ethereum and Ethereum Classic is supported with mixed cards on Simplemining, that's how I ended setting up ETC mining rig.

Things you will need:

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

Adding a group in Simplemining

Adding a group in Simplemining

Give it a nice name, for example, ETC miner, select claymore-eth-v10.6 and in the options box fill in following

epool eu1-etc.ethermine.org:4444 -ewal <Your_Ethereum_Address>.<RigName> -epsw x

Make sure to change <Your_Ethereum_Address> with your actual ETC 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://etc.ethermine.org and paste your ETC address into the search bar to check your actual mining stats:

Mining ETC with ethermine.org

Mining ETC with ethermine.org

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

​ETC mining profitability calculator

ETC 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 $34.23/mo with 55MH/s (current cost for my mining rig is $1,661), and if using rough estimates, to get back ROI from ETC mining it would take me 48 months (that's 4 years), while mining Ethereum the same hash power would give me ROI in 2 and a half years. 

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

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

With cryptomarkets tanked at the start of 2018, and my idea to take a pause before adding more graphics cards to mining rig (before reaching ROI 20%), I've decided to experiment with some other coins to mine and ETC is among one of them (the others - Monero, Zcash). I'm not saying no to Ethereum mining, I'm saying - switching between ETH and ETC like once in a day (in a couple of days) or week. 

I believe ETC still has some potential for the future, and most probably after Ethereum POS the most hash power will go to Ethereum Classic - I would love to have some coins mined already by that time.

Deep in The Forest (Winter Edition)

It was on some February's (2018) afternoon, we decided to make a simple hiking in very familiar to us Latvian forests, unfortunately, the temperature outside was way too freezing and our hiking ended after some 15 minutes, fortunately, I managed to capture some HDR's here.

Followers of Piece of Life series will recognize this forest from Deep in the Forest or Wandering In The Woods B&W Photography series. 

Winter in Latvia

Winter in Latvia

No mushrooms or will berry this time of the year.

Marvelous golden hour in forest

Marvelous golden hour in forest