HomeResources › TradingView to TopstepX Automation

How to Automate TradingView Alerts to TopstepX (ProjectX API Setup Guide)

Updated July 2026 · ~7 min read

TopstepX is Topstep's own execution platform, built on the ProjectX technology Topstep acquired exclusively in early 2026. TopstepX opened a dedicated API in late April 2026, giving traders direct programmatic access to their account for market data and order placement — separate from the older TradingView-to-Tradovate route covered in our Tradovate automation guide. This guide walks through connecting a Pine Script strategy to TopstepX using that API, via PickMyTrade.

Before automating anything on a real account, confirm you're checking TopstepX's current automation rules — local execution only, no VPS/cloud bots, no HFT.

What you need before starting

Step 1 — Get your TopstepX API key

The API key lives behind a linked ProjectX dashboard account, not directly inside TopstepX:

  1. In TopstepX, go to Settings (gear icon) → API tab.
  2. Click Link under "ProjectX Linking."
  3. You'll be sent to dashboard.projectx.com to verify your email and register (or log in if you already have a ProjectX dashboard account).
  4. Go to Subscriptions → ProjectX API Access and enter payment info. Full price is around $39/mo.
  5. Return to TopstepX Settings → API and click Add API Key. Copy the generated key and store it securely — treat it like a password.
API sessions run on 24-hour JWT tokens and orders placed through the API are final — there's no undo. If you're building a custom integration rather than using a bridge service, plan for a token-refresh step.

Step 2 — Connect TopstepX to PickMyTrade

  1. Create an account at pickmytrade.trade.
  2. Go to Brokers → Add Broker and select TopstepX / ProjectX.
  3. Enter a connection name, select Topstep as the prop firm, and enter your TopstepX username and the API key from Step 1.
  4. PickMyTrade will show the TopstepX accounts linked to that key — select your Combine or funded account.
TradersPost does not connect directly to TopstepX at the time of writing — it supports Topstep accounts through the older Tradovate route only. If your account still runs on Tradovate rather than TopstepX, use our TradersPost setup guide instead.

Step 3 — Set up your bot and get the webhook URL

  1. In PickMyTrade, go to Bots → Create Bot and give it a name (e.g. "MES EMA Crossover — TopstepX").
  2. Set Symbol to the contract you're trading (e.g. MES, MNQ).
  3. Set Quantity and Order Type (Market is simplest while testing).
  4. Under Linked Accounts, select the TopstepX account from Step 2.
  5. Save the bot. PickMyTrade generates a webhook URL in the format https://pickmytrade.trade/api/webhook/<your-token> — copy it.

Step 4 — Configure your Pine Script alert

Your Pine Script needs to fire an alert PickMyTrade can parse. If you use strategy.entry()/strategy.exit(), set the alert to "Order fills only" with a JSON payload like:

{
  "passphrase": "your-bot-passphrase",
  "ticker": "{{ticker}}",
  "action": "{{strategy.order.action}}",
  "quantity": {{strategy.position_size}}
}

The passphrase is set inside your PickMyTrade bot settings and acts as a security key so unauthorized signals can't reach your bot. For alertcondition()-based scripts, create one alert per direction ("buy"/"sell"), both pointed at the same webhook URL.

Step 5 — Create the TradingView alert

  1. Right-click the chart and select Add Alert, or press Alt+A.
  2. Set the Condition to your strategy or alertcondition name.
  3. Under Notifications, enable Webhook URL and paste the PickMyTrade URL from Step 3.
  4. Paste the JSON payload from Step 4 into the Message box.
  5. Set expiration at least 6 months out and click Create.

Test before going live

PickMyTrade supports a TopstepX demo/practice environment for exactly this reason. Point your bot at a demo account first, fire a manual test alert from TradingView's Alerts panel, and confirm the order appears correctly before switching to a real Combine or funded account. Run at least 5–10 full entry/exit pairs in test mode before going live.

Compliance checklist before going live

Free Pine Script snippets for all of the above are at propfirmpinescripts.com/snippets/.

Common issues

Skip the wiring — get a strategy that's already set up.

Every Pine Script from our store ships with the compliance controls above pre-built — session filter, EOD flatten, daily loss kill switch — plus the standard alert payload format.

View Plans

Invite-only on TradingView · Monthly subscription · Cancel anytime