BetaTrading & Finance

RnG Daytrader

Algorithmic crypto trading bot

TypeScriptCryptoTradingTechnical Analysis
3x
Max Leverage
1%
Risk Per Trade
3
EMA Periods
24/7
Market Coverage
The Problem

Manual crypto trading requires constant screen time, emotional discipline, and consistent execution. Missed entries, late exits, and position sizing errors compound over time. Most retail traders underperform because they can't execute their own strategy consistently.

The Solution

A fully automated trading bot that executes a defined technical analysis strategy on Coinbase Advanced Trade. Uses EMA crossovers for direction, RSI for confirmation, and ATR for dynamic position sizing. Every trade is journaled with full performance analytics.

How It Works

1

Signal Engine

EMA(9/21/50) crossover system with RSI confirmation. The fast EMA crossing above the slow EMA with RSI below 70 triggers a long entry. Reverse for shorts. The 50 EMA acts as trend filter.

2

Position Sizing

ATR-based dynamic sizing limits risk to 1% of account per trade. Position size adjusts automatically with volatility — larger in calm markets, smaller in volatile ones. Max 3x leverage cap.

3

Execution Layer

Direct integration with Coinbase Advanced Trade API via ccxt. Handles order placement, fill confirmation, and position tracking. All operations use decimal.js for precision arithmetic.

4

Trade Journal

Every entry, exit, and position update is logged to SQLite. Full performance analytics including win rate, Sharpe ratio, max drawdown, and per-trade PnL history.

Key Features

EMA Crossover Strategy

Triple EMA system (9/21/50) provides clear entry and exit signals. Fast and slow crossovers generate trades; the 50-period EMA filters for overall trend direction.

ATR-Based Risk Management

Average True Range determines stop-loss distance and position size. Volatile markets get smaller positions automatically, keeping dollar risk constant.

Performance Analytics

Real-time win rate, Sharpe ratio, max drawdown, profit factor, and per-trade breakdown. All metrics queryable from the command line or web dashboard.

Drawdown Circuit Breaker

Automatically pauses trading when drawdown exceeds configurable thresholds. Prevents catastrophic loss spirals during adverse market conditions.

Tech Stack

TypeScriptType-safe core logic
ccxtExchange API abstraction
better-sqlite3Trade journal and analytics
decimal.jsPrecision financial math

Need something like this?

Every project starts with a conversation. Tell us the problem and we'll figure out the build.