How to Use Continue with NinjaTrader 8 and CrossTrade MCP
Continue is an open-source AI coding assistant available as a VS Code and JetBrains extension. It supports MCP. With CrossTrade MCP registered, Continue can inspect your NinjaTrader 8 install, draft NinjaScript that compiles, and run Strategy Analyzer backtests.
Prerequisites
| Requirement | Detail |
|---|---|
| CrossTrade subscription | Elite |
| CrossTrade Add-On | v1.13.0 or higher |
| NinjaTrader 8 | Running |
| Continue | Latest version with MCP support |
| Scope | mcp:read first; mcp:trade for compile and backtest |
| Account | Sim101 |
Start read-only
Authenticate with mcp:read for the first session. Use Sim101 for any compile or backtest work.
Step 1: Add CrossTrade MCP server to Continue
Open Continue's configuration. Add CrossTrade to the mcpServers map:
{
"mcpServers": {
"crosstrade": {
"url": "https://app.crosstrade.io/v1/api/mcp"
}
}
}
Save and reload. On the next tool call, Continue opens a browser tab for OAuth consent.
Step 2: Verify the connection
Use read-only tools only. Call GetMcpCapabilities and McpSelfTest. Then
ListAccounts and GetConnections. Tell me the add-on version, NT8 version, and
account list.
Step 3: First read-only workflow
Pull the last 20 closed trades on Sim101. Group by instrument and side. Report
win rate, average win, average loss, and the three biggest losers.
Step 4: NinjaScript compile loop (with mcp:trade)
If you have a workspace open and Continue is in your editor, the compile loop is similar to Claude Code or Cursor:
GetNinjaScriptHelpon every NT8 type and method.- Draft into a file in the workspace.
CompileNinjaScript(in_memory: true).- Repair on failure.
WriteNinjaScriptFileafter confirmation.RunStrategyBackteston Sim101.
See Vibe Code a NinjaScript Strategy for the full sequence.
Troubleshooting
| Symptom | Fix |
|---|---|
| Tools missing | Reload Continue's MCP servers; redo consent |
| 401 unauthorized | Reauthorize |
| 403 Elite required | Upgrade |
| 408 timeout | Open NT8; verify add-on |