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
Connect TradeLocker to Ghost
Open Broker Connections
Go to Ghost Dashboard > Broker Connections > TradeLocker.
Enter your credentials
Enter your TradeLocker email address and password. Ghost generates a JWT session and stores the session and your password encrypted.
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.
Select account type
Select your account type (demo or live) and confirm the connection.
Verify connection
Ghost will show your account balance and available instruments when connected.
Find Your Webhook URL
Open your ticker
Go to Ghost Dashboard > Tickers and click your TradeLocker ticker.
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}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.
Use "action": "sell" to go short, or "action": "close" to close the open position.
Supported Instruments on TradeLocker
| Symbol | Instrument | Notes |
|---|---|---|
| XAUUSD | Gold vs USD | 100 oz per lot |
| EURUSD | Euro vs USD | 100,000 units per lot |
| GBPUSD | British Pound vs USD | 100,000 units per lot |
| USDJPY | USD vs Japanese Yen | 100,000 units per lot |
| GBPJPY | British Pound vs Japanese Yen | 100,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
The Post-MetaTrader Prop Stack →
Why prop firms left MT4/MT5 in 2024 and how automation works on the platforms that replaced it.
TradingView Webhook Setup Guide →
Full payload reference and how Ghost webhooks work
TradingView to cTrader →
Forex automation for cTrader-based prop firms
TradingView to MT4 / MT5 →
Bridge EA automation for MetaTrader 4 and 5 forex and CFD accounts
Trade Copier Compliance Guide →
Prop firm automation rules and compliance
Ghost Webhook Automation →
Connect TradingView to 11 brokers
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