TradingView Setup
TradingView sends signals to RelayDesk via outbound webhook alerts. When an alert fires, TradingView POSTs a JSON payload to your RelayDesk Signal webhook URL, and RelayDesk routes that signal to any bots subscribed to it.
Connect TradingView alerts to RelayDesk
Prerequisites
- TradingView Essential, Plus, Premium, or Ultimate account (webhooks require paid plan)
- A RelayDesk Signal created from your Signal Library
- Your Signal webhook URL copied
Creating a Webhook Alert
Step-by-step process:
- Open your TradingView chart.
- Click the Alerts button (clock icon) in the toolbar, or press Alt+A.
- Set your alert condition — the indicator, strategy, or price crossing that should trigger the signal.
- In the Notifications tab, enable Webhook URL and paste your RelayDesk Signal webhook URL.
- In the Message field, enter the JSON payload (see format below).
- Name your alert and click Create.
Webhook Message Format
RelayDesk expects a JSON object in the alert message field. The minimum required fields are:
{
"action": "entry",
"side": "long"
}Supported values:
- action: "entry" or "exit"
- side: "long" or "short"
Check out Signal Managed Exits for more control.
Using TradingView Variables
You can include TradingView dynamic placeholders in your payload. These are replaced with real values when the alert fires:
{
"action": "entry",
"side": "long",
"symbol": "{{ticker}}",
"price": {{close}},
"time": "{{timenow}}"
}Note
The symbol, price, and time fields are optional. RelayDesk uses the symbol configured in your bot when these are omitted.
Testing the Connection
- Trigger a test alert from TradingView.
- In RelayDesk, open Signals
- Navigate to the Signal, and click the Signal History “spark” icon
- If the bot is active, confirm the order appeared in your broker account.
Common Issues
If the signal does not appear: verify the webhook URL is an exact match, confirm the alert message is valid JSON, and confirm the bot is active.
One alert, multiple bots
With the Signal Library system, one TradingView alert can trigger multiple bots:
A single TradingView alert can trigger multiple bots. Create one Signal in RelayDesk and connect as many bots to it as you need. Each bot subscribing to that Signal will execute independently when the alert fires. Use the same webhook URL in TradingView regardless of how many bots are subscribed.
Pro Tip
This is useful for running the same strategy across multiple symbols, account sizes, or broker accounts simultaneously.
Was this article helpful?