C
Group Project

Crypto Bros — Bitcoin Trading Simulator

PythonpandasNumPyMatplotlibSMA IndicatorsData Analysis

Overview

Group project for the Machine Learning 2 course (KIUA1013). Crypto Bros is a modular Bitcoin trading simulator that loads real historical BTC/USD price data, resamples 1-minute Kaggle data to daily prices, and simulates three trading strategies side by side: SMA Crossover (SMA 20 vs SMA 50), Price vs SMA 50, and Buy & Hold. Results include profit/loss calculations, trade logs with dates and prices, and an animated chart showing price and SMA lines drawing in real time with buy/sell signal markers. The project is split across 6 modules following a clean OOP architecture.

My Contributions

  • Built visualization.py — the animated price chart using Matplotlib FuncAnimation, with live buy/sell signal markers (green up-arrows, red down-arrows)
  • Added bullish/bearish sentiment chart showing price with SMA shading zones and a percentage breakdown bar chart
  • Collaborated with Joachim on chart design and final visual improvements during group sessions
  • Contributed to the pitch presentation covering ethics and environmental impact of Bitcoin mining
  • Coordinated group communication and helped teammates prepare for the final presentation

Tech Breakdown

Python, pandas (CSV loading and daily resampling), NumPy (vectorised signal generation), Matplotlib FuncAnimation (animated chart), SMA indicator logic (rolling averages), modular OOP architecture across 6 files