Ghost Automation

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.

1

TradingView sends an HTTP POST to your webhook URL whenever an alert fires.

2

Ghost receives the POST, reads the JSON payload (action, price, SL, TP), and places the order on your broker.

3

The alert fires in TradingView, Ghost executes on the broker. You never touch the platform manually.

4

Works with both Pine Script strategy alerts (strategy.entry / strategy.exit) and manual price or indicator alerts.

Your Ghost Webhook URL

1

Each ticker in Ghost has a unique webhook URL and secret.

2

Format: https://quantcrawler.com/api/ghost/webhook/{ticker-id}?secret={your-secret}

3

Find it: Ghost Dashboard > Tickers > click your ticker > copy Webhook URL.

4

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", "entry": {{close}}, "sl": 19800.00, "tp": 20400.00 }
action

"buy" or "long" to go long, "sell" or "short" to go short, "close" or "exit" to close.

entry

The signal reference price, not your broker fill. Use {{close}} for current bar close, or hardcode a price.

sl

Stop loss price. Optional if configured in Ghost ticker settings.

tp

Take profit price. Optional if configured in Ghost ticker settings.

tp2, tp3

Additional 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.

Tradovate

Futures (MNQ, MES, MGC, MCL, M2K)

Auth: OAuth

Setup guide for Tradovate →

ProjectX

Futures Prop Firms (Topstep)

Auth: API Key

Setup guide for ProjectX →

Rithmic

Futures Prop Firms (Bulenox and more)

Auth: Username / Password

Setup guide for Rithmic →

NinjaTrader 8

Futures, incl. Prop Firm Accounts

Auth: Free AddOn + API Key

Setup guide for NinjaTrader 8 →

TradeLocker

Forex and Commodities

Auth: Email / Password

Setup guide for TradeLocker →

cTrader

Forex Prop Firms

Auth: OAuth

Setup guide for cTrader →

MT4 / MT5

Forex and CFDs (MetaTrader 4 and 5)

Auth: Bridge EA + Connection Key

Setup guide for MT4 / MT5 →

Coinbase

Crypto Spot and Perpetuals

Auth: API Key

Setup guide for Coinbase →

Bitunix

Crypto Perpetuals

Auth: API Key / Secret

Setup guide for Bitunix →

DXtrade

Crypto Prop Firms (Tradeify Crypto and more)

Auth: Username / Password

Setup guide for DXtrade →

4 Steps to Your First Automated Trade

1

Connect your broker in Ghost Dashboard > Broker Connections.

2

Find or create your ticker in Ghost Dashboard > Tickers, and copy the Webhook URL.

3

In TradingView, create an alert: paste the webhook URL, then paste the JSON payload in the message field.

4

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

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

© 2026 QuantCrawler. Not financial advice. Trading involves substantial risk of loss.