Workfusion Trading AI is a SaaS MVP for MT4/MT5 automation builders.
It helps traders:
- Generate EA drafts from plain-English strategy ideas.
- Debug MQL4/MQL5 code and compiler errors.
- Govern prop-firm payout readiness with target, drawdown, trading-day, exposure, and warning checks.
- Analyze trading reports and identify risk issues.
- Export PDF governance reports before changing risk or requesting payout review.
- Optimize prop-firm settings before demo or live testing.
- Download generated code artifacts.
- Save projects through a local storage adapter.
- Pre-check generated code, optionally compile MT5
.mq5files through MetaEditor, and estimate backtest readiness. - Prepare Stripe/PayPal billing with explicit live-mode guardrails.
Workfusion is a software tool. It does not manage accounts, execute trades, custody funds, or guarantee profits.
Core offer:
Generate, debug, and risk-check MT4/MT5 Expert Advisors for prop-firm traders.
Updated offer:
Build, debug, and govern MT4/MT5 automation.
npm run devOpen:
http://localhost:3000
npm run lint
npm run buildPOST /api/workers/compile always returns a static MQL pre-check. To make it run a real MetaEditor compile on a Mac/VPS with Wine and MT5 installed, set:
WORKFUSION_COMPILER_WORKER_URL=http://127.0.0.1:8787
WORKFUSION_COMPILER_WORKER_TOKEN=change-this-long-token
WORKFUSION_METAEDITOR_ROOT=/path/to/MetaTrader 5
WORKFUSION_WINE_BIN=wine
WORKFUSION_METAEDITOR_TIMEOUT_MS=180000
Start the Mac/VPS worker:
npm run compiler:workerThe worker root folder must contain MetaEditor64.exe. When configured, the API posts the submitted .mq5 to the worker, the worker writes it into MQL5/Experts/WorkfusionCompilerJobs/, calls MetaEditor, and reports whether an .ex5 artifact was produced. Vercel deployments normally run in static_precheck mode until WORKFUSION_COMPILER_WORKER_URL points to a reachable HTTPS worker endpoint. If WORKFUSION_COMPILER_WORKER_URL is not set, the API can still run local MetaEditor compilation directly via WORKFUSION_METAEDITOR_ROOT.
Use sandbox credentials only:
PAYPAL_API_BASE=https://api-m.sandbox.paypal.com
PAYPAL_CLIENT_ID=...
PAYPAL_CLIENT_SECRET=...
NEXT_PUBLIC_PAYPAL_MONTHLY_PLAN_ID=...
NEXT_PUBLIC_PAYPAL_YEARLY_PLAN_ID=...
PAYPAL_WEBHOOK_ID=...
Then run:
npm run paypal:sandbox -- preflight
npm run paypal:sandbox -- create sandbox-buyer@example.com starter
npm run paypal:sandbox -- verify I-SUBSCRIPTIONIDPremium activation is completed by /api/billing/paypal/activate after PayPal redirects back with subscription_id. Renewals and payment receipt evidence are handled by /api/billing/paypal/webhook, which verifies PayPal webhook signatures and records PAYMENT.SALE.COMPLETED events.
POST /api/trading/generatePOST /api/trading/debugPOST /api/trading/debriefPOST /api/trading/optimizePOST /api/trading/downloadPOST /api/govern/payoutPOST /api/govern/payout-reportPOST /api/subscription/statusGET|POST /api/auth/sessionGET|POST /api/projectsPOST /api/workers/compilePOST /api/workers/backtestPOST /api/billing/checkout
/api/billing/checkout only creates provider checkout/approval sessions when:
WORKFUSION_BILLING_MODE=live
NEXT_PUBLIC_APP_URL=https://www.workfusionapp.com
PAYPAL_CLIENT_ID=...
PAYPAL_CLIENT_SECRET=...
NEXT_PUBLIC_PAYPAL_MONTHLY_PLAN_ID=...
NEXT_PUBLIC_PAYPAL_YEARLY_PLAN_ID=...
Stripe also requires:
STRIPE_SECRET_KEY=...
STRIPE_PRICE_STARTER=...
STRIPE_PRICE_PRO=...
STRIPE_PRICE_STUDIO=...
- Connect Stripe price IDs or PayPal order capture before public paid launch.
- Add Terms of Service and Privacy Policy.
- Add production logging and rate limits.
- Add user accounts and persistent project storage.
- Use a dedicated Mac/VPS compiler worker before marketing browser-only SaaS outputs as guaranteed production-ready.