amusleh-spotware-com/cmind

⚡ Your all-in-one cTrader command center — build, test, run & copy trading bots across accounts, with an AI copilot that writes, reviews & risk-guards your strategies. Economic calendar, currency strength & prop-firm challenge tracking built in. Multi-tenant & white-label: launch it as your own branded platform. Mobile-first & installable.

C#

2

526 commits

updated Sep 29, 2026

See the code

README

cMind — build, run & backtest cTrader bots across a distributed fleet, with an AI core watching the risk.

cMind

[!WARNING] Alpha software — not production-ready. cMind is under active development. Expect rough edges, breaking changes between versions, and features still in progress. We need community testers, bug reporters, and early contributors to help shape it into a production-grade platform. If you run it and hit a problem, please report it — your real-world feedback is what turns alpha into stable. PRs, testing on demo accounts, and honest issue reports are the most valuable things you can contribute right now. → Start here

[!CAUTION] Risk Warning — Trading involves substantial risk of loss. Trading foreign exchange (Forex) and Contracts for Difference (CFDs) on margin carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. You may sustain a loss of some or all of your invested capital, and therefore you should not invest money that you cannot afford to lose. Past performance and backtest results are not indicative of future results. cMind is self-hostable software provided "as is" and does not provide investment, financial, legal, or tax advice. Any and all trading decisions, and any resulting profits or losses, are made at your own discretion and are your sole and full responsibility. By using this software you accept these risks in full.

The self-hostable trading-operations platform for cTrader.
Build · backtest · run · copy — across a distributed node fleet, with an AI core watching the risk.

Read the docs   Quick start

🌐 Docs, guides & the full feature tour live at amusleh-spotware-com.github.io/cmind

CI CodeQL MIT Alpha .NET 10 Blazor PostgreSQL PWA mobile-first AI-assisted PRs welcome PRs welcome

📖 Documentation · Features · Screenshots · Who it's for · Quick start · Tech · Contributing


📸 Screenshots

LoginDashboard
Branded split-screen loginLive operations dashboard
AI build a cBotCopy trading
AI — build a cBot from a promptCopy trading across accounts

Mobile-first & installable —
Login on mobile    Dashboard on mobile


✨ Features

🤖 AI that does the workPlain-English prompt → runnable cBot via a generate → build → self-repair loop. Code review, strategy debate, market sentiment, exposure check, portfolio digest, tune advisor, and a background risk guard that can auto-stop bots. Provider-agnostic: Anthropic, OpenAI, Azure, Gemini, Ollama, or the built-in on-device ONNX model (default-on, no key needed).
🔁 Copy trading, money-gradeMirror one master onto many accounts across brokers & cTrader IDs — per-destination sizing, direction, symbols, order types (market / range / limit / stop / stop-limit), SL/TP, expiry, exact slippage. Reconciles through drops, rejections & token rotation without duplicating trades.
🧠 Build & backtest cBotsIn-browser Monaco IDE (C# and Python), sandboxed dotnet build in throwaway containers, parameter sets, live logs and equity curves streamed back.
🛰️ Distributed fleetRuns & backtests are scheduled onto the least-loaded node; agents self-register and heartbeat; a self-healing lease reclaims a dead node's work automatically.
🏆 Prop-firm toolingLive challenge tracking (drawdown / daily-loss / target / min-days), an AI exposure guardian, and auto-flatten on breach.
📅 Economic calendarBuilt-in event calendar sourced from primary authorities (FRED, BLS, central banks) — point-in-time correct, ≥10 years of history, deterministic impact model, news-blackout filter for bots and copy trading, cBot JWT API, MCP tools, and high-impact event alerts.
📊 Currency strengthAI-powered macro scoring across all major currencies with a forward pair-outlook matrix, anchored to calendar events. Accessible to cBots via the JWT API.
🧮 Institutional-edge analyticsBacktest Integrity Lab (Probabilistic & Deflated Sharpe, t-stat, overfitting correction) and Trading Journal (behavioural leak detection + AI coach).
📱 Mobile-first & installableFully responsive UI you install as an app (PWA) — bottom-nav, card layouts, offline shell, add-to-home-screen.
🎨 White-labelEvery deployment re-skins name, logo, colours, and icons from config — resellers ship it as their own. Owner tunes every white-label option at runtime via Settings → Deployment without a redeploy.
🌐 23-language localizationFull UI localization in all cTrader-supported languages, including RTL (Arabic, Hebrew). Every user-facing string is translated; build fails on a missing key.
🔑 Two-factor authenticationOptional TOTP 2FA (any RFC 6238 app — Google Authenticator, Authy, Aegis) + single-use backup codes. White-label deployments can make it mandatory for all users.
🔌 MCP serverExposes tools over HTTP+SSE so external AI clients can drive cMind — including calendar, AI features, portfolio queries, and trading operations.
🔒 Hardened & yours to runArgon2id, encrypted key ring, per-node signed JWTs, rate limiting, structured logs + OpenTelemetry (AWS X-Ray / Azure App Insights). Self-host on Docker, Kubernetes, Azure, or AWS.

🎯 Who it's for

  • Algorithmic traders & quants who write cBots and want to run, backtest, and optimize them at scale — not babysit a single terminal.
  • cTrader brokers who run a white-label cMind for their own clients — AI, copy trading and prop-firm challenges under your brand, with accounts restricted to your brokerage. → For brokers
  • Prop-firm operators & trading desks mirroring strategies across many accounts with rule-guards and a full audit trail.
  • Cloud & VPS providers offering managed cMind hosting as a product — monetize the subscription, the compute, the white-label, and the AI. → For cloud & VPS providers
  • Developers & resellers who want a hardened, white-labelable, self-hosted trading-ops console — with an MCP + API surface to build on.

🗂️ What's inside

📖 Full docs live on the cMind docs site. Quick links:

CapabilityDocs
Copy trading (mirroring, order types, SL/TP, slippage, sync/desync)Copy trading
Open API token lifecycle (single valid token per cID, in-place rotation)Token lifecycle
AI assistant, agent, risk guard, alerts, prop-guardAI core
Build & backtest cBots (in-browser Monaco IDE, C# + Python)Build & backtest
Economic calendar (primary sources, point-in-time, ≥10yr history, cBot API)Economic calendar · cBot API
Currency strength (AI macro scoring, pair outlook)Currency strength
Backtest Integrity Lab (PSR / DSR / overfitting correction)Backtest integrity
Trading Journal & AI coachTrading journal
Prop-firm challenge trackingProp-firm
Node fleet & horizontal scalingNode discovery · Scaling
Two-factor authentication (TOTP + backup codes)2FA
23-language localization + RTLLocalization
White-label (config + runtime owner settings)White-label · Owner settings
MCP server (HTTP + SSE tools for AI clients)MCP
Installable app & design system (mobile-first, PWA)PWA · UI guidelines
Deployment (Compose, K8s/Helm, Azure, AWS)Deployment
Testing & dev credentialsTesting

🚀 Quick start

dotnet restore
dotnet run --project src/AppHost      # full stack via .NET Aspire (Postgres, Web, MCP)

Open the Web URL from the Aspire dashboard. For a Web-only run, deployment, and step-by-step setup, see the local deployment guide.

💡 On a phone? Open the app in your browser and Add to Home Screen — it installs as a standalone app.

🛠️ Tech

.NET 10 · ASP.NET Core Minimal APIs · Blazor Server (SSR) + MudBlazor · mobile-first responsive UI + installable PWA · white-label theming · EF Core 10 + PostgreSQL · .NET Aspire · Docker · gRPC/Protobuf (cTrader Open API) · Serilog + OpenTelemetry · MCP · Playwright E2E (mobile + desktop). Architecture follows strict Domain-Driven Design — see CLAUDE.md and the UI guidelines.

Contributing — we'd love your help 💛

cMind is in alpha and needs your help to get to production-ready. Every bug report, test result, doc fix, and PR makes it better — and you don't need to be a .NET expert to start. Traders who report precise cTrader behavior are as valuable as the people writing aggregates. Right now the most impactful things are: testing on a demo account and filing issues, improving the E2E test coverage, and helping verify that the cTrader Open API behavior matches the simulator.

Every merged contributor is credited. Come build the platform you wish existed. → Start here

🔐 Security · License · Trademarks

  • Report vulnerabilities per SECURITY.md.
  • MIT licensed — see LICENSE.
  • cMind is an independent community project — not affiliated with, endorsed by, or sponsored by Spotware Systems Ltd. cTrader, cAlgo and cBot are trademarks of Spotware Systems Ltd, used here only to describe interoperability. See TRADEMARKS.md.
ai
algorithmic-trading
aspnetcore
backtesting
blazor
cbot
copy-trading
ctrader
domain-driven-design
dotnet
dotnet-aspire
fintech
forex
mcp
mudblazor
postgresql
pwa
self-hosted
trading
trading-bot

amusleh-spotware-com/cmind

⚡ Your all-in-one cTrader command center — build, test, run & copy trading bots across accounts, with an AI copilot that writes, reviews & risk-guards your strategies. Economic calendar, currency strength & prop-firm challenge tracking built in. Multi-tenant & white-label: launch it as your own branded platform. Mobile-first & installable.

C#

2

526 commits

updated Sep 29, 2026

See the code

README

cMind — build, run & backtest cTrader bots across a distributed fleet, with an AI core watching the risk.

cMind

[!WARNING] Alpha software — not production-ready. cMind is under active development. Expect rough edges, breaking changes between versions, and features still in progress. We need community testers, bug reporters, and early contributors to help shape it into a production-grade platform. If you run it and hit a problem, please report it — your real-world feedback is what turns alpha into stable. PRs, testing on demo accounts, and honest issue reports are the most valuable things you can contribute right now. → Start here

[!CAUTION] Risk Warning — Trading involves substantial risk of loss. Trading foreign exchange (Forex) and Contracts for Difference (CFDs) on margin carries a high level of risk and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. You may sustain a loss of some or all of your invested capital, and therefore you should not invest money that you cannot afford to lose. Past performance and backtest results are not indicative of future results. cMind is self-hostable software provided "as is" and does not provide investment, financial, legal, or tax advice. Any and all trading decisions, and any resulting profits or losses, are made at your own discretion and are your sole and full responsibility. By using this software you accept these risks in full.

The self-hostable trading-operations platform for cTrader.
Build · backtest · run · copy — across a distributed node fleet, with an AI core watching the risk.

Read the docs   Quick start

🌐 Docs, guides & the full feature tour live at amusleh-spotware-com.github.io/cmind

CI CodeQL MIT Alpha .NET 10 Blazor PostgreSQL PWA mobile-first AI-assisted PRs welcome PRs welcome

📖 Documentation · Features · Screenshots · Who it's for · Quick start · Tech · Contributing


📸 Screenshots

LoginDashboard
Branded split-screen loginLive operations dashboard
AI build a cBotCopy trading
AI — build a cBot from a promptCopy trading across accounts

Mobile-first & installable —
Login on mobile    Dashboard on mobile


✨ Features

🤖 AI that does the workPlain-English prompt → runnable cBot via a generate → build → self-repair loop. Code review, strategy debate, market sentiment, exposure check, portfolio digest, tune advisor, and a background risk guard that can auto-stop bots. Provider-agnostic: Anthropic, OpenAI, Azure, Gemini, Ollama, or the built-in on-device ONNX model (default-on, no key needed).
🔁 Copy trading, money-gradeMirror one master onto many accounts across brokers & cTrader IDs — per-destination sizing, direction, symbols, order types (market / range / limit / stop / stop-limit), SL/TP, expiry, exact slippage. Reconciles through drops, rejections & token rotation without duplicating trades.
🧠 Build & backtest cBotsIn-browser Monaco IDE (C# and Python), sandboxed dotnet build in throwaway containers, parameter sets, live logs and equity curves streamed back.
🛰️ Distributed fleetRuns & backtests are scheduled onto the least-loaded node; agents self-register and heartbeat; a self-healing lease reclaims a dead node's work automatically.
🏆 Prop-firm toolingLive challenge tracking (drawdown / daily-loss / target / min-days), an AI exposure guardian, and auto-flatten on breach.
📅 Economic calendarBuilt-in event calendar sourced from primary authorities (FRED, BLS, central banks) — point-in-time correct, ≥10 years of history, deterministic impact model, news-blackout filter for bots and copy trading, cBot JWT API, MCP tools, and high-impact event alerts.
📊 Currency strengthAI-powered macro scoring across all major currencies with a forward pair-outlook matrix, anchored to calendar events. Accessible to cBots via the JWT API.
🧮 Institutional-edge analyticsBacktest Integrity Lab (Probabilistic & Deflated Sharpe, t-stat, overfitting correction) and Trading Journal (behavioural leak detection + AI coach).
📱 Mobile-first & installableFully responsive UI you install as an app (PWA) — bottom-nav, card layouts, offline shell, add-to-home-screen.
🎨 White-labelEvery deployment re-skins name, logo, colours, and icons from config — resellers ship it as their own. Owner tunes every white-label option at runtime via Settings → Deployment without a redeploy.
🌐 23-language localizationFull UI localization in all cTrader-supported languages, including RTL (Arabic, Hebrew). Every user-facing string is translated; build fails on a missing key.
🔑 Two-factor authenticationOptional TOTP 2FA (any RFC 6238 app — Google Authenticator, Authy, Aegis) + single-use backup codes. White-label deployments can make it mandatory for all users.
🔌 MCP serverExposes tools over HTTP+SSE so external AI clients can drive cMind — including calendar, AI features, portfolio queries, and trading operations.
🔒 Hardened & yours to runArgon2id, encrypted key ring, per-node signed JWTs, rate limiting, structured logs + OpenTelemetry (AWS X-Ray / Azure App Insights). Self-host on Docker, Kubernetes, Azure, or AWS.

🎯 Who it's for

  • Algorithmic traders & quants who write cBots and want to run, backtest, and optimize them at scale — not babysit a single terminal.
  • cTrader brokers who run a white-label cMind for their own clients — AI, copy trading and prop-firm challenges under your brand, with accounts restricted to your brokerage. → For brokers
  • Prop-firm operators & trading desks mirroring strategies across many accounts with rule-guards and a full audit trail.
  • Cloud & VPS providers offering managed cMind hosting as a product — monetize the subscription, the compute, the white-label, and the AI. → For cloud & VPS providers
  • Developers & resellers who want a hardened, white-labelable, self-hosted trading-ops console — with an MCP + API surface to build on.

🗂️ What's inside

📖 Full docs live on the cMind docs site. Quick links:

CapabilityDocs
Copy trading (mirroring, order types, SL/TP, slippage, sync/desync)Copy trading
Open API token lifecycle (single valid token per cID, in-place rotation)Token lifecycle
AI assistant, agent, risk guard, alerts, prop-guardAI core
Build & backtest cBots (in-browser Monaco IDE, C# + Python)Build & backtest
Economic calendar (primary sources, point-in-time, ≥10yr history, cBot API)Economic calendar · cBot API
Currency strength (AI macro scoring, pair outlook)Currency strength
Backtest Integrity Lab (PSR / DSR / overfitting correction)Backtest integrity
Trading Journal & AI coachTrading journal
Prop-firm challenge trackingProp-firm
Node fleet & horizontal scalingNode discovery · Scaling
Two-factor authentication (TOTP + backup codes)2FA
23-language localization + RTLLocalization
White-label (config + runtime owner settings)White-label · Owner settings
MCP server (HTTP + SSE tools for AI clients)MCP
Installable app & design system (mobile-first, PWA)PWA · UI guidelines
Deployment (Compose, K8s/Helm, Azure, AWS)Deployment
Testing & dev credentialsTesting

🚀 Quick start

dotnet restore
dotnet run --project src/AppHost      # full stack via .NET Aspire (Postgres, Web, MCP)

Open the Web URL from the Aspire dashboard. For a Web-only run, deployment, and step-by-step setup, see the local deployment guide.

💡 On a phone? Open the app in your browser and Add to Home Screen — it installs as a standalone app.

🛠️ Tech

.NET 10 · ASP.NET Core Minimal APIs · Blazor Server (SSR) + MudBlazor · mobile-first responsive UI + installable PWA · white-label theming · EF Core 10 + PostgreSQL · .NET Aspire · Docker · gRPC/Protobuf (cTrader Open API) · Serilog + OpenTelemetry · MCP · Playwright E2E (mobile + desktop). Architecture follows strict Domain-Driven Design — see CLAUDE.md and the UI guidelines.

Contributing — we'd love your help 💛

cMind is in alpha and needs your help to get to production-ready. Every bug report, test result, doc fix, and PR makes it better — and you don't need to be a .NET expert to start. Traders who report precise cTrader behavior are as valuable as the people writing aggregates. Right now the most impactful things are: testing on a demo account and filing issues, improving the E2E test coverage, and helping verify that the cTrader Open API behavior matches the simulator.

Every merged contributor is credited. Come build the platform you wish existed. → Start here

🔐 Security · License · Trademarks

  • Report vulnerabilities per SECURITY.md.
  • MIT licensed — see LICENSE.
  • cMind is an independent community project — not affiliated with, endorsed by, or sponsored by Spotware Systems Ltd. cTrader, cAlgo and cBot are trademarks of Spotware Systems Ltd, used here only to describe interoperability. See TRADEMARKS.md.
ai
algorithmic-trading
aspnetcore
backtesting
blazor
cbot
copy-trading
ctrader
domain-driven-design
dotnet
dotnet-aspire
fintech
forex
mcp
mudblazor
postgresql
pwa
self-hosted
trading
trading-bot

Languages

C#

82.5%

HTML

14.1%