Setup ยท OAuth ยท MCP

How to Connect ChatGPT to NinjaTrader 8 with CrossTrade MCP

CrossTrade hosts a Model Context Protocol server at https://app.crosstrade.io/v1/api/mcp. Any ChatGPT plan that supports remote MCP connectors can authorize with OAuth, inspect your real NinjaTrader 8 state, and, with trade scope, place orders. This page walks through the setup, the first safe prompts, and the gates you should add before granting write access.

Direct answer

Yes, ChatGPT can talk to NinjaTrader 8

The path is not direct. ChatGPT runs in OpenAI's cloud. NinjaTrader 8 runs on your Windows machine. CrossTrade sits between them. The chain is:

ChatGPT  โ†’  CrossTrade hosted MCP server  โ†’  CrossTrade Add-On in NT8  โ†’  NinjaTrader 8

You authorize ChatGPT through OAuth. ChatGPT calls typed tools. CrossTrade routes them to the add-on inside your NT8. Results come back the same way. Everything is scoped and revocable from the CrossTrade AI Clients page.

What this is not: a trading bot. A trading bot runs a fixed strategy continuously. An AI agent is a program that reads tools, observes results, and decides next steps. Your prompt and your scope decide what next steps it is allowed to take.

Requirements

What you need before you start

Requirement
Detail
CrossTrade subscription
Elite tier. Non-Elite accounts can authorize but tool calls return HTTP 403.
CrossTrade Add-On
v1.13.0 or higher, installed inside NT8.
NinjaTrader 8
Running and connected to the add-on.
ChatGPT plan
A ChatGPT plan and client that supports remote MCP connectors. Availability changes by plan and region.
Browser
Used once for OAuth consent.

If your ChatGPT plan does not yet support remote MCP, the equivalent path is Claude Desktop or Claude Code (see Claude to NinjaTrader) or Cursor with a paid plan.

Setup ยท read-only first

Start at mcp:read. Always.

Start every workflow read-only. The OAuth scope makes it physically impossible for the agent to place an order. You get the most useful 80% of the value with the least risk.

  1. In ChatGPT, open the connectors / MCP settings.
  2. Add a remote MCP server with URL https://app.crosstrade.io/v1/api/mcp.
  3. Approve mcp:read on the CrossTrade consent screen.
  4. Return to ChatGPT. The CrossTrade tool inventory should now appear.
  5. Ask for a capability check:
Verification prompt Call GetMcpCapabilities and McpSelfTest. Tell me my CrossTrade Add-On version, NT8 version, backtest engine availability, and any feature flags. Stop after these two calls.
First prompts

Safe first prompts that prove the connection

Run these in order on a Sim101 or non-funded account. Each one calls read-only tools.

Pre-session brief

Pre-session brief On Sim101, give me a pre-session brief. Call ListAccounts, GetConnections, ListPositions, ListOrders, GetAccountSummary, and GetWatermarks. Tell me what is open, what is working, and today's realized P&L. Do not call any write tools.

Journal review

Journal review Pull the last 20 closed trades on Sim101 from the journal. Group by instrument and side. Report win rate, average win, average loss, and the three biggest losers. Do not expose any account identifier in the summary.

Webhook audit

Webhook diagnostics Pull TradingView webhook signals from the last six hours for Sim101. For each, show the intended action and whether it produced an order. Highlight any that did not fill and the likely reason.

Copier reconciliation

Copier check List positions on my leader and follower accounts. Tell me which are in sync and which are not. Pull GetActivityLog for the last hour and identify the most recent divergence.
Trade-enabled setup

Upgrading to mcp:trade, with gates

Only after read-only feels reliable should you consider granting write access.

  1. Revoke the mcp:read grant from the CrossTrade AI Clients page.
  2. Reauthorize ChatGPT with mcp:trade.
  3. Add a strict system prompt that requires state checks and confirmation gates before any write.
Trade-enabled system prompt Before any PlaceOrder, Cancel, Flatten, DeployStrategy, or WriteNinjaScriptFile, the agent must read ListAccounts, GetConnections, ListPositions, ListOrders, GetAccountSummary, and GetWatermarks, restate the proposed action with account, instrument, side, and quantity, and wait for explicit confirmation. If any read fails, stop and report. Never act on a funded account if you cannot first verify daily loss room and the firm's automation rules.
Funded futures

If the account is funded, read the rules first

Funded futures accounts have firm-specific rules that can prohibit automation outright. Apex Trader Funding's current prohibited activities list bars automation or algorithm usage. Other firms permit it with caveats. CrossTrade does not enforce firm rules; your prompt does.

Practical guidance:

  • Default to mcp:read on every funded account.
  • Verify the official rule page before granting mcp:trade.
  • Encode firm-specific constraints (daily loss buffer, news window, no counter positions) in the system prompt.
  • Never leave a trade-enabled session unattended.

For firm-specific guidance, see the Prop Firm AI Trading hub.

Vibe coding NinjaScript with ChatGPT

Can ChatGPT vibe code a NinjaScript strategy?

Yes, ChatGPT can draft NinjaScript from a natural-language strategy idea. Without tools, it cannot reliably compile that code inside your NT8 environment. With CrossTrade MCP, the same conversation can move through compile, repair, Strategy Analyzer backtest, and human review before any deployment.

  • Yes, ChatGPT can draft strategy code from a natural-language idea.
  • Without tools, the draft will not reliably compile inside your NT8 install.
  • With CrossTrade MCP, the agent compiles in memory, repairs on failure, runs Strategy Analyzer backtests, and gates deployment behind confirmation.
  • Generated code should begin in Sim101 and remain behind confirmation gates until you have verified the behavior.

See Vibe Coding NinjaScript Strategies with CrossTrade MCP for the full pattern, or jump straight to the ChatGPT Learn tutorial.

What ChatGPT can do

Workflows that pay off, ranked

Journal analysis

End-of-session, weekly, and decay reviews. Group trades by setup or instrument. Find the three biggest losers and any revenge patterns.

mcp:read

Webhook diagnostics

For every TradingView signal, show payload, matched order, fill or rejection, and likely cause when missing.

mcp:read

Copier reconciliation

Leader/follower timeline reconstruction. Surface max-contract, account-state, and symbol mapping issues.

mcp:read

Pre-trade risk brief

Account summary, watermarks, positions, working orders. Compute remaining daily loss room. Refuse trades inside firm-specific news windows.

mcp:read

NinjaScript compile loop

Generate C#, compile in memory, repair on failure, write file only with confirmation.

mcp:trade

Strategy Analyzer backtest

RunStrategyBacktest is bit-identical to NT8's UI. Parameter sweeps return a ranked grid.

mcp:trade

Order management with confirmation

Place, modify, cancel, flatten. Every action gated by an explicit user confirmation in the prompt.

mcp:trade

Autonomous trading

Not recommended. Even where firm rules permit, trade-enabled means "I am here." Overnight unsupervised is a recipe for a blown account.

avoid
Troubleshooting

Common setup errors

Symptom
Likely cause and fix
No tools listed
OAuth consent failed or scope rejected. Reauthorize from CrossTrade AI Clients.
HTTP 403 Elite required
Account is below Elite. Upgrade at Subscriptions.
Tools time out
NT8 closed or add-on disconnected. Open NT8 and verify the add-on panel.
Add-on version too old
Update to v1.13.0 or higher inside NT8.
insufficient_scope
Tool needs mcp:trade but the token is mcp:read. Reauthorize at mcp:trade only if the workflow needs it.
FAQ

Frequently asked questions

Can ChatGPT connect to NinjaTrader 8?

Yes, through CrossTrade MCP, with a ChatGPT plan that supports remote MCP connectors. Setup is OAuth-based and takes about five minutes. Requirements: CrossTrade Elite and CrossTrade Add-On v1.13.0 or higher.

Is it safe to let ChatGPT place trades on NinjaTrader?

Safer than it sounds if you start read-only and add confirmation gates before any write. Default to mcp:read. Upgrade to mcp:trade only for specific workflows, and require state checks and explicit user confirmation before any PlaceOrder, Cancel, Flatten, or DeployStrategy.

What can ChatGPT do with my NinjaTrader account?

With mcp:read: inspect accounts, positions, orders, executions, journal, webhook signals, add-on activity, watermarks, NinjaScript symbols and source files. With mcp:trade: place/modify/cancel orders, flatten, compile and write NinjaScript, run backtests, deploy strategies, emit alerts.

Does ChatGPT NinjaTrader integration require coding?

No. Setup is paste-a-URL and approve a consent screen. After that, you ask in plain English. NinjaScript authoring is natural language; the agent uses CrossTrade tools to ground generated C# in your real NT8 install.

Can I run ChatGPT against my Apex Trader Funding account?

Apex's current prohibited activities list bars automation or algorithm usage on Apex accounts. The safe interpretation is read-only inspection only. See the Apex AI Workflows page.

What happens if the agent gets something wrong?

Two layers protect you. First, OAuth scope: a mcp:read token cannot place orders. Second, confirmation gates in your prompt: a good prompt requires the agent to restate and wait for explicit confirmation before any write. Use both.

Try ChatGPT plus CrossTrade MCP

Start with the compatibility checker, then run a read-only journal review. Trade scope can come later.