-
-
when user connect the bot to their broker account, upon authentication it loads all their account data
-
It has in-app server logs just like the normal server logs for users to monitor their account in realtime
-
backend live on render hosting services
-
The bot charges 15% of the user monthly profit, 30 days free trial to convince the users
-
Gemini API used as an external bot advisory to validate signal confidence.
-
-
.
-
-
-
-
-
paparrazi
Declaration
This project has a previous foundation. I originally built it as a personal XAUUSD scalping bot, and for this submission I iterated on that base to make it a multi-pair trading system with multi-user support, subscription billing, and a more scalable cloud architecture. The current version includes significant new work beyond the original bot: I built a mobile app for easy user access, multi-account orchestration, broader market scanning (12 instruments), and a redesigned backend for shared use.
Inspiration
I started trading gold with a small account — no stop-loss, no take-profit, just me and the chart for hours. I'd watch every tick, convinced I could exit at the perfect moment. But it only took looking away for a few minutes. One retracement, and the account was gone. Over and over. I realized I needed something I could never be: always watching, never emotional, never distracted. So I built it — an automated system that sits on the chart 24/7, harvests profit at the peak, and never blows up from a retracement I wasn't there to see.
What it does
An always-on algorithmic trading bot that trades 12 instruments — gold, US indices (US100, US500, US30), Asian/European indices (JP225, DE40), energy (WTI, BRENT, GAS) and metals (XAGUSD, XPT, COPPER). It runs on Render cloud infrastructure, executes via Capital.com, and manages risk through equity-scaled position sizing with zero hard stop-losses — instead using ATR-based cut, trail, and peak-harvest lock exits inside the current H1 candle (the "Wave Scalper"). An XGBoost model acts as a chop filter, sitting out low-quality candles. It supports multiple users, subscription billing, a mobile app, and a leader-lease failover architecture so trading survives crashes.
How we built it
Python FastAPI backend with a thread-pool bot architecture — each user account gets its own async bot instance. The strategy is an intra-candle M1 wave scalper: it anchors to the H1 open, enters on ATR-scaled pullbacks (0.5× ATR), cuts fast on adverse moves, and lets winners breathe with a peak-lock + rider trail — exits are priced from actual fills so live == backtest. Risk is managed per-event and per-day with configurable loss caps. Historical data from Dukascopy (~23 years of XAUUSD M1, plus full M1 history for 12 pairs). Paystack and MaxelPay handle subscription payments; a Flutter mobile app gives users live control and monitoring.
Challenges we ran into
Building a stop-loss-free system that doesn't blow accounts required extensive backtesting to tune the ATR cut/trail parameters. Capital.com rate limits and session timeouts demanded a robust reconnection layer with exponential backoff. Synchronizing multiple bots sharing a single broker account while keeping state consistent across restarts was harder than expected — so was proving the live engine behaved identically to the backtest (we built a replay harness that matches trade-for-trade across 7,316 trades).
Accomplishments that we're proud of
The peak-harvest exit logic that lets winning runs breathe without giving back everything — backtests show it captures significantly more upside than fixed-TP models on trending days. A proven live == backtest pipeline: the live engine reproduces the validated sweep exactly. Twelve-pair validation where every instrument is profitable (2024: 38,271 trades, profit factor 4.92, +8,106R, max drawdown ≤ ~3R per pair). A committed XGBoost chop-gate model per pair that skips choppy candles. ~23 years of M1 data for gold, systematically archived and queriable for any date range.
What we learned
That sophisticated exits matter more than entries — a mediocre entry with a smart exit consistently outperforms a perfect entry with a dumb stop. Equity-scaled sizing is critical for small accounts; fixed lot sizes are a fast path to ruin. Cloud deployment of trading systems is viable if you handle broker disconnections gracefully. And that a validation harness that proves the live engine matches the backtest is worth more than a faster model.
What's next for Forex Gold scalping AI
Deepening the ML layer (order-flow features and confidence-gated entries on top of the chop filter), live PnL streaming to the mobile/web dashboard via WebSocket, correlated-pair coordination (reusing the US100/US500 combined-loss logic across more instruments), and a community marketplace for sharing and subscribing to strategy configurations.
The business model
- Product: An automated trading bot that trades for you across gold, indices, energy, and metals.
- Free trial for demo accounts (play money) — no limits, always free.
- 30-day free trial for live accounts (real money) — full access, no payment needed.
- After the trial: the bot tracks your profit in 30-day periods. If you made profit, you owe 15% of that profit as a fee. If you lost money, you owe nothing.
- If you don't pay, the bot stops working until you settle — the startup only makes money when users make money. This aligns incentives — the bot needs to be profitable for both the user and the company.
- Demo is free forever — acts as a marketing funnel to get users hooked, then convert them to live accounts.
Log in or sign up for Devpost to join the conversation.