If you trade off TradingView alerts, you already know the gap: TradingView tells you when to trade, but it can’t place the trade for you. This guide walks through closing that gap so your Capital.com trades execute automatically the moment your alert fires — no manual entry, no missed setups while you’re away from the charts.
By the end of this guide, you’ll have a working alert that opens, manages, and closes trades on Capital.com without you touching your keyboard.
What you’ll need
- A TradingView account with alerts enabled on your plan
- A Capital.com trading account (demo or live)
- A Webhook from TradingView to Anywhere (TTA)
Step 1: Set up your Capital.com Webhook
Head over to TradingView to Anywhere and create your webhook and connect your Capital.com account.
Once connected, TTA will give you a unique webhook URL — this is the address TradingView sends your alert to. It follows this pattern:
https://tradingview.to/capitalcom/{your-unique-id}
For example: https://tradingview.to/capitalcom/mIBUMHEaJMYnxigiJOJ1
Keep this URL private — anyone with it could send trade commands to your connected account.
Step 2: Build your alert message
TTA reads plain-text commands from your TradingView alert message. The core format uses:
- BUY / SELL — the direction of the trade
- Q — quantity/size
- P — price (for limit orders; can be omitted for market orders)
- SL — stop loss
- TP — take profit
A typical alert message looks like:
BUY GBPUSD Q=1000 SL=1.2450 TP=1.2600
Adjust the quantity, stop loss, and take profit to match your strategy’s risk parameters.
Step 3: Wire the alert into TradingView
- Open the chart and set your alert condition as usual (price crossing a level, indicator signal, strategy alert — whatever triggers your strategy).
- In the alert’s Webhook URL field, paste the TTA webhook URL from Step 1.
- In the Message field, enter your BUY/SELL command using the format above.
One placeholder to watch for: if you’re triggering alerts from a Pine Script strategy rather than a manual alert, make sure you’re using the correct placeholder, such as {{strategy.order.alert_message}}, {{strategy.order.action}}, or {{strategy.market_position}} in your message depending on the strategy. Using the wrong one is a common reason alerts fire on TradingView’s side but never reach TTA correctly.
Step 4: Test before you trust it
Before going live:
- Set your Capital.com connection to a demo account if available.
- Trigger a test alert manually from TradingView (most alert conditions can be tested by adjusting a threshold temporarily).
- Confirm the trade appears on Capital.com within a few seconds, with the correct size, stop loss, and take profit.
Only switch to a live account once a test trade has executed cleanly end-to-end.
Common mistakes
- Wrong alert placeholder — using
{{strategy.alert_message}}instead of{{strategy.order.alert_message}}when alerting from a strategy script, which sends an empty or malformed message. - Alert firing on every tick instead of bar close — leads to duplicate or premature trade commands. Set your alert frequency to “Once Per Bar Close” unless your strategy specifically needs tick-level triggers.
- Malformed command syntax — missing the
Q=before quantity, or typos inSL=/TP=, will cause TTA to reject the command silently. Double-check the exact format above. - Webhook URL typos — even a single missing character means the alert never reaches TTA. Copy-paste it directly rather than retyping.
You’re set up — what’s next
Once this is working reliably, you can proceed to automate alerts to other platforms… TTA currently supports Capital.com, Binance, Bybit, Coinbase, Kraken, KuCoin, OKX, Bitget, BingX, MEXC, MetaTrader 4/5, TradeLocker, Tradovate, Deriv, IQ Option, cTrader, DX Trade, and several others — plus non-broker destinations like Telegram, Discord, and Google Sheets if you want alerts routed somewhere other than a trade.
Ready to connect your own account? [Start today→]