Bitcoin Trade Signals

  • Score Awaiting client review
    n/a
  • Date Published
  • Reading Time 4-Minute Read
Case-Study_Data-Science-1

Bitcoin Trade Signals.

Client: Internal Project

Project Duration: 4 months (ongoing)

Goal: Product which will be used by traders for making better-informed decisions for entering particular position in trade. This product should be powered with sentiment analysis of influencers, machine learning algorithms for price prediction and trading strategies.Tech: Python, Airflow, Superset

THE CHALLENGE

One of the biggest disruptors these days, besides artificial intelligence is blockchain technology and its pioneer cryptocurrency, bitcoin. Many people believe that bitcoin and other cryptocurrencies will help in making the most sustainable and transparent economy. But its constant fluctuations in price is bringing out the question: “Should I invest now?”.

We want to help in understanding price fluctuation, predict the future movement and quantify risks as well as potential profits for potential investors.

This project started as a price prediction problem, but it evolved into the tool which should be helpful to short-term traders. The first challenge was to train, test and tune machine learning models with diverse data in order to predict the price or a movement of price. Next, we wanted to integrate outputs from various machine learning models into existing trading strategies in order to maximize portfolio profit and hedge the risks of investing.

THE APPROACH

The project can be divided into several stages and two approaches (sentiment and fundamental analysis):

Senti Bitko (sentiment analysis):

This approach relies on the hypothesis that market movement can be captured from news and opinion of important individuals and organizations (influencers). We have chosen Twitter as the source of data for analysing influencer’s opinion.

Collecting data: identifying the influencers and collecting data with relevant content.
Feature engineering and labeling: creating a set of features which use assessment of sentiment score and historical price of bitcoin and creating various labels.
Training and testing: train several models and tune the parameters for better metrics.

Fin Bitko (historical data analysis):

This approach uses historical data from blockchain in order to capture the movement of price. We are researching the value of fundamental factors like Number of Transactions or Bitcoins Mined per Block together with public sentiment analysis and their effectiveness for prediction outcomes.

Collecting data: identifying appropriate resources for data and collecting the data.
Feature engineering and labeling.
Training and testing: train several models and tune the parameters for better metrics.

Integration of Senti and Fin Bitko into Trader

This phase uses data (features) from both sentiment and historical analysis as an input to train a more accurate machine learning model. Predictions given by the model can power trader with new signals so more informed investments could be made.

Feature selection: detecting a set of features which yields best metrics.
Ensemble models: combine models with the goal of maximizing metrics.
Integrating signals from models into trader platform: use predictions from models for creating a profitable strategy.
Testing, tuning and comparing with baselines: determine the best period for retraining models, determining best parameters for trading strategies (number of MA period) and comparing profit of strategy fueled with our signals with profit of strategies fueled with different baselines signals.

THE SOLUTION

Our final models output results as classification (uptrend and downtrend) and regression (the price and the change of price) and use those signals for making the strategies. We focused on simple trading strategies as our goal is to have a reliable estimate of how much better system works with our signals than without our signals.

THE RESULTS

Using the approach described above, we delivered two parts: qualitative and quantitative results. The first part in a form of dashboard represents a summation of many signals like positive and negative scores in tweets, sentiment metrics that proved to be correlated with price and predictions from classification and regression models.

The second part represents an analysis of the quantitative report of returns when we apply our signals to a trader. When we backtested our trading strategy, we introduced an improvement of 16.5% in returns, in average, compared to the simple trading strategy used as a baseline.