TradingView Webhook Setup Guide for Ghost
How to connect any TradingView alert to your broker using Ghost: send automated orders on every alert, no coding required.
How TradingView Webhooks Work
TradingView sends an HTTP POST to your webhook URL whenever an alert fires. Ghost receives the POST, reads the JSON payload (action, price, SL, TP), and places the order on your broker. The alert fires in TradingView, Ghost executes on the broker. You never touch the platform manually.
TradingView sends an HTTP POST to your webhook URL whenever an alert fires.
Ghost receives the POST, reads the JSON payload (action, price, SL, TP), and places the order on your broker.
The alert fires in TradingView, Ghost executes on the broker. You never touch the platform manually.
Works with both Pine Script strategy alerts (strategy.entry / strategy.exit) and manual price or indicator alerts.
Your Ghost Webhook URL
Each ticker in Ghost has a unique webhook URL and secret.
Format: https://quantcrawler.com/api/ghost/webhook/{ticker-id}?secret={your-secret}
Find it: Ghost Dashboard > Tickers > click your ticker > copy Webhook URL.
Never share the secret: it authenticates your alert as legitimate.
The JSON Payload
Paste this into the TradingView alert message field. Replace the sl and tp values with your actual levels.
action"buy" or "long" to go long, "sell" or "short" to go short, "close" or "exit" to close.
entryThe signal reference price, not your broker fill. Use {{close}} for current bar close, or hardcode a price.
slStop loss price. Optional if configured in Ghost ticker settings.
tpTake profit price. Optional if configured in Ghost ticker settings.
tp2, tp3Additional take profit levels for scaled exits.
Supported Brokers
Ghost connects to 11 brokers across futures, forex, and crypto. Each one below has its own dedicated setup guide.
NinjaTrader 8
Futures, incl. Prop Firm Accounts
Auth: Free AddOn + API Key
Setup guide for NinjaTrader 8 →MT4 / MT5
Forex and CFDs (MetaTrader 4 and 5)
Auth: Bridge EA + Connection Key
Setup guide for MT4 / MT5 →DXtrade
Crypto Prop Firms (Tradeify Crypto and more)
Auth: Username / Password
Setup guide for DXtrade →4 Steps to Your First Automated Trade
Connect your broker in Ghost Dashboard > Broker Connections.
Find or create your ticker in Ghost Dashboard > Tickers, and copy the Webhook URL.
In TradingView, create an alert: paste the webhook URL, then paste the JSON payload in the message field.
Trigger the alert and check Ghost Dashboard > Logs to verify execution.
Frequently Asked Questions
Do I need a paid TradingView plan to use webhooks?
Yes, webhooks require a paid plan, but only the entry tier. Essential is enough, and every plan above it works too. The free Basic plan does not support webhooks.
Can I use Ghost webhooks with Pine Script strategies?
Yes. Use strategy.entry() and strategy.exit() in your Pine Script, then enable "Create alert on strategy orders" when setting up your TradingView alert.
What happens if TradingView fires the alert but Ghost does not execute?
Check Ghost Dashboard > Logs for the incoming webhook record. Common causes: wrong secret in the URL, payload missing the action field, broker connection expired.
Can I send multiple take profit levels?
Yes. Include tp, tp2, and tp3 in your payload for scaled exits at three levels.
Does Ghost support closing a position via webhook?
Yes. Send action: "close" or "exit" in the payload to close the open position on that ticker.
Continue Learning
TradingView to Tradovate Setup →
Futures automation for Lucid and Tradeify
TradingView to ProjectX Setup →
Futures automation for Topstep funded accounts
TradingView to Rithmic Setup →
Username/password futures automation for Rithmic-powered prop firms
TradingView to NinjaTrader 8 Setup →
Free AddOn-based automation for NinjaTrader 8 accounts
TradingView to DXtrade Setup →
Username/password crypto automation for Tradeify Crypto and DXtrade-powered firms
TradingView to MT4 / MT5 Setup →
Bridge EA automation for MetaTrader 4 and 5 forex and CFD accounts
Trade Copier Compliance Guide →
What prop firms allow and how Ghost handles risk
Prop Firm Drawdown Rules →
Max drawdown, daily limits, trailing drawdown explained
Ghost Webhook Automation →
Connect TradingView to 11 brokers for automated execution
Risk Disclosure: Trading involves substantial risk of loss and is not suitable for all investors. This content is for educational purposes only and does not constitute financial advice.
Last updated: November 2026