AuraGold

Automate gold execution with strict risk controls and live oversight.

AuraGold is an automated XAUUSD trading execution and monitoring platform for prop-firm traders, boutique funds, and serious individual investors. It focuses on systematic gold strategy execution, real-time compliance with drawdown and exposure rules, and transparent operational controls so users can run with less manual intervention and fewer rule breaches.

Business Goals

  • Achieve 300 active funded-account subscribers within 6 months of launch.
  • Convert at least 12% of trial users to paid plans within 30 days.
  • Maintain monthly logo churn below 5% after the first 90 days.
  • Reach 95%+ of planned trade executions without manual intervention by month 4.
  • Support at least 2 broker or platform integrations within the first release year.

User Goals

  • Let users automate XAUUSD entries and exits without watching charts all day.
  • Prevent prop-firm rule violations through hard drawdown and exposure controls.
  • Pause trading automatically around high-impact macro events.
  • Give users a clear live view of positions, risk, and performance.
  • Make it easy to review every decision the system made and why.

Non-Goals

  • Supporting multi-asset portfolios in the first release.
  • Providing guaranteed returns or profit promises.
  • Allowing fully manual discretionary trading from the same interface.
  • Building a social copy-trading marketplace or signal-selling network.

Prop-Firm Trader Lena, 29 - Lena trades funded accounts and needs a system that respects daily loss limits, news restrictions, and consistency rules. She wants automation that helps her pass evaluation phases without blowing up an account.

Prop-Firm Trader Lena, 29

  • As a prop-firm trader, I want the bot to stop trading before I hit the daily drawdown limit, so that I do not fail the evaluation.
  • As a prop-firm trader, I want the bot to flatten positions before major USD news, so that I avoid rule violations and slippage.
  • As a prop-firm trader, I want to see why a trade was skipped, so that I can trust the system and tune it safely.

Quant Operations Manager David, 41 - David oversees a small proprietary trading book and cares about execution quality, auditability, and risk containment. He needs transparent controls and reliable uptime more than flashy features.

Quant Operations Manager David, 41

  • As an operations manager, I want a full audit trail of signals, fills, and risk checks, so that I can review performance and incidents.
  • As an operations manager, I want configurable risk limits per account, so that I can adapt the system to different mandates.
  • As an operations manager, I want broker disconnect alerts and automatic reconnection handling, so that the system stays operational with minimal oversight.

HNWI Investor Priya, 52 - Priya wants systematic exposure to gold volatility without managing trades manually. She needs simple controls, capital protection, and understandable reporting.

HNWI Investor Priya, 52

  • As an investor, I want a simple dashboard showing live equity, drawdown, and open risk, so that I can monitor exposure at a glance.
  • As an investor, I want the system to cap position size automatically, so that I can avoid oversized trades.
  • As an investor, I want performance reporting in plain English, so that I can understand what the strategy is doing.

Strategy and Signal Engine · High priority

  • Generate XAUUSD trade signals from market structure, volatility, and regime conditions.
  • Analyze multiple timeframes including M15, H1, and H4 before producing a trade decision.
  • Detect liquidity sweeps, fair value gaps, and order-block-style structures as configurable signal inputs.
  • Switch between trend-following, mean-reversion, and standby modes based on volatility and VWAP deviation.
  • Reject signals when market conditions fail confidence thresholds or when data quality is poor.

Risk and Compliance Controls · High priority

  • Enforce hard account protection rules before any order can be sent.
  • Size positions using live equity, not balance, with per-trade risk limits configurable by account.
  • Block entries if projected drawdown would violate a daily or trailing maximum loss limit.
  • Support partial take profit, breakeven stop movement, and trailing runner management.
  • Allow account-level rules for max open positions, max lot exposure, and news blackout windows.

Execution and Broker Protection · High priority

  • Place orders reliably and prevent execution in unsafe market conditions.
  • Integrate with broker execution endpoints through MT5, cTrader, or FIX-based routing where available.
  • Apply max-spread, slippage, and market-hours filters before sending orders.
  • Reconcile local state against broker state continuously to detect orphaned or missing orders.
  • Trigger an emergency flatten action if predefined kill-switch conditions are met.

Monitoring and Analytics · Medium priority

  • Provide a live dashboard and historical reporting for operational visibility.
  • Show live PnL, open risk, drawdown, trade count, and current regime state.
  • Display trade history with reasons for entry, exit, skip, or block decisions.
  • Track key metrics such as profit factor, expectancy, win rate, Calmar, and Sortino.
  • Send alerts for disconnects, blocked trades, rule violations, and emergency stops via Telegram or Discord.

Admin and Configuration · Medium priority

  • Let operators configure the system safely without editing code.
  • Provide strategy presets and per-account risk profiles.
  • Allow event calendar sources and blackout schedules to be configured per timezone.
  • Support feature flags for disabling modules during incident response.
  • Require confirmation for high-impact changes such as increasing risk or disabling protections.

Fast Onboarding and First Trade Setup

  • Create an account and verify email or SSO in under 2 minutes.
  • Connect a trading account through supported broker credentials or API keys.
  • Select an account profile such as prop-firm, conservative, or aggressive.
  • Set max daily loss, per-trade risk, and news blackout preferences.
  • Run a simulated readiness check that validates spread, margin, and connectivity.
  • Go live in under 15 minutes with the first monitored session.

1. Connect and Validate

  • The user connects a broker account and the system checks permissions, connectivity, and trading conditions before enabling automation.
  • Reject unsupported account types or missing permissions with a clear error state.
  • Verify heartbeat, instrument availability, and session availability before activation.

2. Configure Risk Profile

  • The user sets account-level risk limits that the system treats as hard constraints.
  • Show estimated trade size impact based on current equity and stop distance.
  • Warn when settings conflict with prop-firm style daily limits or exposure caps.

3. Activate Strategy

  • The user chooses the default strategy mode and enables automation for XAUUSD.
  • Confirm whether the system may trade only during certain sessions or news windows.
  • Allow a dry-run mode that records hypothetical decisions without placing orders.

4. Monitor Live Operations

  • The user watches signals, open positions, and risk state in real time.
  • Highlight blocked trades, emergency pauses, and slippage events with color-coded states.
  • Refresh core metrics frequently without overwhelming the page or freezing the UI.

5. Review and Improve

  • The user reviews performance after the session and adjusts configuration based on evidence.
  • Provide explainable trade annotations, including regime, risk filter results, and exit logic.
  • Surface anomalies such as repeated spread filters, rejected signals, or disconnects.

Advanced Controls and Edge Handling

  • Per-account risk templates with different limits for prop-firm, hedge fund, and personal capital use cases.
  • Calendar-based event suppression using external economic data sources and timezone-aware blackout windows.
  • Session-level kill switch that flattens positions and pauses trading after severe latency or drawdown events.
  • Trade reconciliation tools for detecting broker-local mismatches, pending orders, and partial fill discrepancies.
  • Exportable audit logs for compliance review and post-trade analysis.

Dashboard Principles

  • Use a dense but readable trading layout with live status, risk, and performance above the fold.
  • Make blocked actions obvious with explicit reasons and a single primary CTA for resolution.
  • Support dark mode, keyboard navigation, and accessible color contrast for long monitoring sessions.
  • Keep critical data such as drawdown and open risk visible with sub-second UI updates.
  • Avoid chart clutter by default and let power users expand advanced overlays on demand.

Lena has been using manual trade alerts for her prop account, but she keeps missing news windows and occasionally overruns her daily loss limit. She signs up for AuraGold, connects her broker account, and sets strict risk rules tied to her evaluation constraints.

On the first day, AuraGold scans market conditions, skips low-quality setups, and automatically blocks trades near a high-impact USD event. When a valid setup appears, it sizes the position from live equity, scales out at partial profit, and moves the stop to breakeven without Lena needing to intervene.

By the end of the week, Lena can see every decision in the audit trail and every avoided violation in the dashboard. Instead of watching charts all day, she spends her time reviewing performance, tuning the risk profile, and focusing on passing the evaluation with fewer mistakes.

User-Centric Metrics

  • Average time from account connection to first safe trade under 15 minutes.
  • At least 90% of users can configure a compliant risk profile without support.
  • Less than 2% of live sessions trigger preventable rule violations.
  • At least 75% of active users review the dashboard weekly.
  • User-reported trust score above 4.5 out of 5 for transparency and control.

Business Metrics

  • 12% trial-to-paid conversion within 30 days.
  • Monthly churn below 5% after the first 90 days.
  • At least 300 active paid accounts within 6 months.
  • Expansion revenue from higher-tier plans reaches 25% of MRR by month 9.

Technical Metrics

  • 99.9% monthly uptime for dashboard and orchestration services.
  • Order routing decision latency under 50 milliseconds at the application layer.
  • Heartbeat and disconnect detection within 10 seconds of broker interruption.
  • Zero tolerance for unlogged live trade actions in production.

Tracking Plan

  • Track account_connected when a user successfully links a broker account.
  • Track risk_profile_saved when a user saves max loss, sizing, and exposure settings.
  • Track strategy_activated when automation is enabled for an account.
  • Track signal_generated when the engine produces a tradable setup.
  • Track trade_blocked with reason codes for spread, news, drawdown, or missing data.
  • Track order_submitted and order_filled with latency and slippage measurements.
  • Track emergency_stop_triggered when kill-switch logic pauses trading.

Technical Needs

  • Frontend dashboard built with Next.js or similar React framework.
  • Backend orchestration service in Node.js or Python for API handling and scheduling.
  • Low-latency execution layer in Rust or C++ where broker connectivity requires it.
  • Time-series storage in TimescaleDB for ticks, signals, orders, and performance data.
  • Redis for live session state, locks, and rapid risk checks.
  • Job queue and scheduler for economic calendar polling, reconciliation, and alerts.
  • Observability stack with structured logs, metrics, and traces using OpenTelemetry and Grafana.

Integration Points

  • MetaTrader 5 or cTrader broker connectivity.
  • Economic calendar source such as ForexFactory, FinancialJuice, or a licensed market calendar API.
  • Telegram and Discord for operational alerts.
  • Email delivery through SendGrid or Postmark for critical notifications.
  • Authentication via Auth0, Clerk, or Supabase Auth for account access.

Data Storage & Privacy

  • Store only necessary trading and account metadata, not raw broker credentials in plaintext.
  • Encrypt sensitive data at rest and in transit using modern TLS and managed key storage.
  • Provide data export and deletion workflows to support GDPR and CCPA requests.
  • Separate tenant data by account and organization to avoid cross-account leakage.
  • Keep audit logs immutable or append-only for compliance and incident review.

Scalability & Performance

  • Design for concurrent monitoring of hundreds of accounts with isolated risk state per account.
  • Use event-driven processing so signal generation, risk checks, and execution are decoupled.
  • Cache live account state to reduce broker API calls during active market hours.
  • Prioritize execution and risk evaluation over dashboard refresh traffic during spikes.

Potential Challenges

  • Broker API instability can cause missed or duplicated actions, mitigated by reconciliation loops and idempotent order handling.
  • News events can create extreme slippage, mitigated by blackout windows and spread filters.
  • Strategy overfitting may look good in backtests but fail live, mitigated by walk-forward validation and paper trading gates.
  • Regulatory or prop-firm rule changes can invalidate assumptions, mitigated by configurable account profiles and versioned compliance rules.
  • Latency spikes can reduce fill quality, mitigated by regional deployment, monitoring, and safe fallback to standby mode.

Team & resourcing - Small cross-functional team: 2 backend engineers, 1 frontend engineer, 1 designer, part-time PM, and part-time DevOps support.

Phase 1: MVP Trading Console · Weeks 1–4

  • Broker connection and account setup flow
  • Live dashboard for equity, drawdown, and open positions
  • Manual risk settings and strategy activation toggle
  • Basic order submission, status tracking, and audit log

Phase 2: Risk and Compliance Engine · Weeks 5–8

  • Hard max-loss and exposure enforcement
  • News blackout scheduling and calendar integration
  • Partial take-profit and breakeven logic
  • Trade blocking reasons and alert notifications

Phase 3: Strategy Automation and Reconciliation · Weeks 9–12

  • Multi-timeframe signal engine for XAUUSD
  • Regime detection and standby mode
  • Order reconciliation and orphan detection
  • Paper trading and dry-run mode for safe validation

Phase 4: Analytics and Hardening · Weeks 13–16

  • Performance analytics with profit factor, Calmar, and Sortino
  • Incident logging and exportable audit reports
  • Latency monitoring and retry safeguards
  • Production readiness review and launch checklist

Paste this into Cursor, Bolt, Lovable, or v0 to start building.

Build a production-ready web app called AuraGold for automated XAUUSD trading oversight and execution.

Core product:
A dashboard and orchestration platform for prop-firm traders, boutique funds, and serious individual investors to automate gold trading with strict risk controls, news blackout protection, live performance monitoring, and full auditability.

Primary screens:
1. Auth and onboarding
2. Connect broker account and verify connection
3. Configure account risk profile
4. Live trading dashboard with PnL, drawdown, open positions, regime state, and alerts
5. Trade history and audit log
6. Strategy settings and news blackout calendar
7. Performance analytics and export reports
8. Admin/settings page for notifications, integrations, and feature flags

Core flows:
User signs up, connects a broker account, sets max daily loss and per-trade risk, configures news blackout windows, then activates the strategy. The app must block unsafe trades, show clear reasons for skipped orders, support paper/dry-run mode, and provide live alerts for disconnects, spread spikes, drawdown breaches, and emergency stops.

Data model:
Users, organizations, trading_accounts, broker_connections, risk_profiles, strategy_configs, market_sessions, signals, orders, fills, positions, alerts, compliance_rules, calendar_events, performance_snapshots, audit_logs.

Key logic:
Implement idempotent order placement, broker state reconciliation, account-level hard stop protections, event-based trading suppression, partial take-profit and breakeven rules, and alerting via Telegram/Discord/email.

Suggested stack:
Next.js frontend, TypeScript, Tailwind CSS, PostgreSQL with TimescaleDB for time-series data, Redis for live state, backend services in Node.js or Python, and a Rust or C++ execution service stub for low-latency routing. Include role-based access control, secure secret storage, structured logging, and responsive charts.

Deliver a polished MVP with seeded demo data, clean responsive UI, clear error states, accessible components, and production-oriented code organization.

Business Idea

Here is a highly advanced, institutional-grade description of the XAUUSD trading bot. This version is packed with deep technical specifications, quantitative metrics, and edge-case fail-safes designed to force a "Pro" PRD generator to output a comprehensive, engineering-ready document. --- ### Pro-Tier Input for MakeMyPRD **Product / Business Idea Name:** AuraGold Quant V2: Institutional-Grade XAUUSD Algorithmic Execution Engine **1. One-Sentence Overview:** An autonomous, low-latency quantitative trading system engineered exclusively for the XAUUSD market, utilizing machine learning for predictive volatility modeling, multi-timeframe liquidity sweep detection, and strict prop-firm-compliant risk constraints to deliver institutional risk-adjusted returns (Sharpe > 1.8). **2. Target User Personas & Use Cases:** * **The Prop-Firm Contender (B2C):** Retail traders utilizing funded accounts (FTMO, FundedNext) who need an automated system that strictly adheres to daily drawdown limits, consistency rules, and news-trading restrictions to pass evaluations and secure payouts. * **The Boutique Quant Fund / Family Office (B2B):** Capital allocators seeking a hands-free, uncorrelated asset class strategy with institutional-grade capital preservation, transparent audit trails, and customizable risk-of-ruin parameters. * **The High-Net-Worth Individual (HNWI):** Investors seeking aggressive but systematically capped exposure to gold spot volatility without manual intervention. **3. Advanced Problem Statement:** Gold (XAUUSD) exhibits unique market microstructure behaviors: sudden spread widening during session overlaps, severe liquidity voids during macroeconomic announcements, and high susceptibility to toxic order flow. Existing retail bots fail because they rely on static indicators, use toxic risk models (martingale/grid), and lack institutional fail-safes. Furthermore, traders attempting prop-firm evaluations constantly breach hidden compliance rules (e.g., max lot exposure, news slippage, equity-based daily drawdown). **4. Core Features & System Modules:** * **Alpha Generation & Strategy Engine:** * *ML-Driven Pattern Recognition:* Identifies institutional order blocks, Fair Value Gaps (FVG), and liquidity sweeps across M15/H1/H4 timeframes simultaneously. * *Adaptive Regime Filter:* Automatically switches between "Trend-Following," "Mean-Reversion," and "Standby" modes based on real-time Average True Range (ATR) and Volume-Weighted Average Price (VWAP) deviations. * **Prop-Firm Compliance & Dynamic Risk Management:** * *Hard Equity Protection:* Calculates dynamic lot sizes ensuring exact % risk per trade, incorporating real-time account equity (not balance) to prevent daily drawdown breaches. * *Smart Trailing & Partial Take-Profits:* Executes scaled exits (e.g., close 50% at 1:1.5 R:R, move stop to breakeven, trail the runner) to secure funded account payouts. * **Execution & Microstructure Protection:** * *Max-Spread & Slippage Filters:* Prevents trade execution if broker spreads widen beyond predefined thresholds (common during rollover or low liquidity). * *Macro Event Kill-Switch:* Integrates with economic calendar APIs (e.g., ForexFactory, FinancialJuice) to flatten all positions 30 minutes prior to Tier-1 USD events (CPI, NFP, FOMC) and pause execution for 30 minutes post-event. * **Telemetry & Analytics Dashboard (Web App):** * Live tracking of P&L, Calmar/Sortino ratios, trade expectancy, and real-time visualization of current drawdown vs. hard limits. **5. Edge Cases & System Fail-Safes:** * **Broker API Disconnects:** Automated local heartbeat checks. If connection drops, the system triggers alerts via Telegram/Discord and attempts reconnection every 5 seconds. * **Flash Crash Protection:** Hard-coded global emergency stop-loss executed at the broker server level (not locally) to protect against black-swan liquidity gaps. * **Orphaned Orders:** Continual reconciliation loop verifying that local database states match broker server states to prevent phantom positions. **6. Technical Stack & Architecture Architecture:** * **Execution Core:** C++ or Rust for sub-millisecond order routing via FIX API or direct MT5/cTrader C# bridges. * **Data & ML Pipeline:** Python (Pandas, Scikit-Learn) for offline model training and parameter optimization. * **Infrastructure:** Dockerized containers deployed on cross-connected VPS (Equinix NY4 or LD4) for ultra-low latency to broker trading servers. * **Database:** TimescaleDB for tick-level historical data storage and backtesting engines; Redis for live session state management. **7. North Star Metrics (KPIs):** * **Max Historical Drawdown:** Strictly < 4.0% on a rolling 12-month basis. * **Profit Factor:** Sustained > 1.75 over 1,000+ live executions. * **Execution Latency:** < 5 milliseconds from signal generation to broker receipt. * **Prop-Firm Pass Rate:** > 80% success rate in simulated phase 1 & 2 evaluation environments.

Make My PRD

Design by The Resonance | Powered by GPC – The AI Transformation Company

    PRD: Here is a highly advanced