all projects
ForexGodBot preview

ForexGodBot

Privatetools

Automated forex trading bot deployed to a self-managed VPS. Signal generation, position management, Telegram alerts on trades, and 24/7 uptime via PM2 + Docker.

Node.jsPM2DockerTelegram APIVPS
An always-on forex bot that won't silently die on you.

The problem

Backtested trading strategies don't make money — *deployed* trading strategies do. The boring part is the infra: keeping the bot alive 24/7, restarting on crashes, logging every signal and execution, and alerting you when something looks wrong. Most retail bots skip this layer.

The approach

Wrote the signal logic in Node.js, containerized it in Docker, ran it under PM2 on a managed VPS for crash-loop recovery + structured logs. Every signal and execution is pushed to a private Telegram channel so I can audit decisions from my phone. Position sizing and stop-losses are configured in env, not hardcoded — the bot is risk-aware from day one.

Tech decisions

Docker + PM2
Container isolation; PM2 handles restarts, logging, and process supervision better than a raw systemd unit for this shape
Telegram channel for alerts
Always on my phone; doesn't require an app I have to install
Env-driven risk config
Position sizing should be a deploy-time variable, not a code change
Self-managed VPS
Predictable cost; full control of network egress; no API rate limit surprises

Outcomes

  • 24/7 uptime under PM2 supervision
  • Real-time Telegram alerts on every signal + execution
  • Position management with explicit stop-loss / take-profit
  • Structured logs make post-mortems possible

What I learned

The hard part of automated trading isn't the strategy — it's keeping the strategy alive, auditable, and reversible when something goes wrong. Treat the bot like a production service, not a script.