I Want to Set Alerts Correctly
Is this you?
- You're setting up TradingView alerts to send orders to XeroLite
- You want to avoid common mistakes so alerts fire and orders execute
- You're not sure about webhook URL, JSON format, or IP whitelisting
Quick Checklist
- Get your XeroLite webhook URL — In XeroLite: Webhook & Settings tab → copy the full URL (includes API key).
- Paste it in TradingView — In the alert dialog, Webhook URL field → paste the URL. No extra spaces.
- Use valid JSON in the message — Use the Alert Request Builder to generate the message, or follow Alert Request Format v1.2. Check for typos, commas, and quotes.
- Test with paper trading — Use a paper account first. Trigger the alert and confirm the order appears in XeroLite Incoming Alerts and Transactions.
- IP whitelisting (if enabled) — If you restricted access by IP, add TradingView’s outbound IPs so alerts can reach your webhook.
Common Mistakes
| Mistake | What happens | Fix |
|---|---|---|
| Wrong or old webhook URL | Alerts never reach XeroLite | Copy URL again from Webhook & Settings and update every alert. |
| Invalid JSON (missing comma, extra comma, wrong quotes) | Alert rejected or order fails | Use Alert Request Builder or validate JSON. |
| Port 80/443 blocked or firewall blocking | TradingView can’t reach your server | Open ports, allow through firewall. See Troubleshooting. |
| IP whitelisting blocks TradingView | Requests rejected | Add TradingView IPs to whitelist. |
See Also
- Create TradingView Alert — Step-by-step alert creation
- Alert Request Builder — Build and validate alert messages
- Webhook URL — Where to find and how to use the webhook URL
- Alerts Not Being Received — Troubleshooting