Ghost Automation

TradingView Alerts to TradeLocker: Ghost Setup Guide

How to send TradingView alerts to TradeLocker for automated forex and commodities trading: direct execution on your TradeLocker account.

What You Need

TradeLocker account - A live or demo TradeLocker account. Some forex prop firms use TradeLocker as their execution broker.
Your TradeLocker email and password - Ghost connects to TradeLocker using your email and password to generate a session JWT. Your password is stored encrypted and never in plain text.
A paid TradingView plan - Webhooks require a paid plan. Essential, the entry tier, is enough.
Two-factor authentication on TradingView - TradingView only allows webhook alerts on accounts with 2FA enabled. Switch it on in TradingView before creating the alert, or the alert will save and never send.
Ghost subscription - QuantCrawler Elite or Ghost-only subscription with a TradeLocker ticker configured in Ghost.

Connect TradeLocker to Ghost

1

Open Broker Connections

Go to Ghost Dashboard > Broker Connections > TradeLocker.

2

Enter your credentials

Enter your TradeLocker email address and password. Ghost generates a JWT session and stores the session and your password encrypted.

3

Enter your server name exactly

Enter your broker's server name exactly as it appears in the Server dropdown on the TradeLocker login screen (for example, Alpha Capital Demo). Ghost requires it to connect.

4

Select account type

Select your account type (demo or live) and confirm the connection.

5

Verify connection

Ghost will show your account balance and available instruments when connected.

Find Your Webhook URL

1

Open your ticker

Go to Ghost Dashboard > Tickers and click your TradeLocker ticker.

2

Copy the Webhook URL

Click "Copy Webhook URL." The URL includes your unique ticker ID and secret in this format:

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

Paste into TradingView alert

In TradingView, create or edit your alert. Paste the webhook URL into the Webhook URL field under Notifications.

JSON Payload Example (XAUUSD)

Paste this into the TradingView alert message field. Replace the sl and tp values with your actual levels. The {{close}} template variable is filled automatically by TradingView with the current bar price.

{ "action": "buy", "entry": {{close}}, "sl": 1920.00, "tp": 1940.00 }

Use "action": "sell" to go short, or "action": "close" to close the open position.

Supported Instruments on TradeLocker

SymbolInstrumentNotes
XAUUSDGold vs USD100 oz per lot
EURUSDEuro vs USD100,000 units per lot
GBPUSDBritish Pound vs USD100,000 units per lot
USDJPYUSD vs Japanese Yen100,000 units per lot
GBPJPYBritish Pound vs Japanese Yen100,000 units per lot

Contract sizes and available instruments vary by account type. Confirm with your TradeLocker provider.

Frequently Asked Questions

Is it safe to enter my TradeLocker password in Ghost?

Ghost uses your credentials to generate an authenticated session token (JWT) with TradeLocker. Your password is stored encrypted (AES-256-GCM, never in plain text) so Ghost can sign in again when the session needs renewing, and the session tokens are encrypted too.

Does Ghost support TradeLocker demo accounts?

Yes. Connect a demo account to test your webhook setup without risking real funds. Use the same connection flow and select Demo when prompted.

What is the correct lot size for gold (XAUUSD) on TradeLocker?

TradeLocker gold is 100 oz per standard lot. Configure your position size in Ghost's ticker settings under Contracts/Lots. A 0.01 lot = 1 oz, a 0.1 lot = 10 oz.

Can I send a close signal via TradingView alert on TradeLocker?

Yes. Send action: "close" or "exit" in the payload to close your open position on that ticker.

My TradeLocker connection expired. What should I do?

TradeLocker JWT sessions expire periodically. If Ghost shows a disconnected status, go to Broker Connections > TradeLocker and re-enter your credentials to refresh the session.

My alerts stopped firing but TradeLocker still shows connected. Why?

The TradingView alert has probably expired. Alerts on the Essential and Plus tiers expire on a timer; Premium is the first tier offering an alert that runs indefinitely. An expired alert sends no webhook at all, so Ghost has nothing to log. It reads as a broken integration even though the TradeLocker session is fine. Restart the alert in TradingView.

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.