← All Projects

RnG Daytrader: Automated Cryptocurrency Trading Bot

Technical analysis trading bot with risk management

An algorithmic trading bot for Coinbase Advanced Trade that executes a technical analysis strategy using EMA crossovers, RSI confirmation, and ATR based position sizing. The bot manages risk through strict position limits, automated stop losses, and drawdown protection. Every trade is logged to a SQLite database for performance analysis.

Tech Stack

TypeScriptNode.jsccxtbetter-sqlite3decimal.js

Key Features

  • EMA(9/21/50) crossover strategy with RSI overbought/oversold confirmation
  • ATR based position sizing: each trade risks maximum 1% of account
  • Maximum 3x leverage cap with automated drawdown limits
  • SQLite trade journal with full performance analytics
  • Companion web dashboard at rngcrypto.com for live monitoring
  • Configurable strategy parameters and risk thresholds

Challenges

Trading bots operate in adversarial conditions: exchange APIs go down, orders get partially filled, prices move between signal detection and execution. Building reliable error handling that keeps the bot from losing money during edge cases (network timeouts, API rate limits, exchange maintenance) was as important as getting the strategy right. The decimal.js library was essential for avoiding floating point precision errors in financial calculations.