TradingView is the most popular charting platform in the world, used by millions of traders to analyze markets and develop strategies using Pine Script. But TradingView alone cannot execute trades on your behalf. This is where webhook bots come in. By connecting TradingView alerts to a fomoed webhook bot, you can automatically execute trades on any supported exchange the moment your strategy generates a signal.
What Is a Webhook Bot?
A webhook bot listens for incoming HTTP requests (webhooks) containing trade instructions. When TradingView fires an alert, it sends a JSON payload to your bot's unique webhook URL. The bot parses the signal — buy, sell, close — and executes the corresponding trade on your connected exchange in milliseconds.
This setup lets you use TradingView's powerful charting and scripting tools for analysis while fomoed handles the actual trade execution, risk management, and position tracking.
Why Use Webhooks Instead of Built-In Strategies?
- Unlimited customization — Pine Script gives you access to hundreds of technical indicators and the ability to write custom logic. If you can code it in Pine Script, you can trade it through a webhook.
- Backtest first, trade live — TradingView lets you backtest your strategy on historical data. Once you are confident in the results, connect it to fomoed to go live.
- Combine multiple indicators — Create complex entry conditions using RSI, MACD, Bollinger Bands, volume profiles, and any other indicator supported by TradingView.
- External signals — Webhooks are not limited to TradingView. Any system that can send an HTTP POST request can trigger trades — custom scripts, Python bots, other platforms, or even Zapier automations.
Setting Up a Webhook Bot on fomoed
Step 1: Create the Bot
Log in to fomoed and create a new bot. Select your exchange and enter your API credentials. In the Strategy step, choose "Webhook" from the advanced strategies.
Step 2: Get Your Webhook URL
After selecting the Webhook strategy, fomoed generates a unique webhook URL for your bot. It looks something like:
https://fomoed.com/api/webhook/abc123def456
Copy this URL — you will paste it into TradingView's alert settings.
Step 3: Configure Your Trading Pair and Risk Settings
Complete the remaining setup wizard steps: select your trading pair, set your position size and leverage, configure take profit and stop loss levels, and set up notifications. These settings apply to every trade triggered by the webhook.
Step 4: Create a TradingView Alert
In TradingView, open the chart for your trading pair and apply your Pine Script strategy or indicator. Then:
- Click the "Alerts" button (clock icon) in the toolbar.
- Set the alert condition to your strategy's entry signal.
- In the "Notifications" tab, check "Webhook URL" and paste your fomoed webhook URL.
- In the "Message" field, enter the JSON payload that fomoed expects.
Step 5: Format the Alert Message
fomoed webhook bots accept a simple JSON format. The most common signals are:
- Open a long position:
{"action": "buy"} - Open a short position:
{"action": "sell"} - Close the current position:
{"action": "close"}
You can also include optional fields like "size" to override the default position size for a specific signal.
Pine Script Example
Here is a simple Pine Script strategy that generates webhook-compatible alerts:
A basic RSI crossover strategy: buy when RSI crosses above 30 (oversold), sell when RSI crosses below 70 (overbought). Set up two alerts in TradingView — one for the buy condition with the message
{"action": "buy"}and one for the sell condition with{"action": "sell"}. Each alert points to your fomoed webhook URL.
Testing Your Webhook
Before going live with real funds, test your setup:
- Use paper trading mode — On CEX exchanges, enable paper trading to verify signals are received and processed correctly.
- Check the bot logs — Your fomoed bot detail page has a Logs tab that shows every incoming webhook and the action taken.
- Start with a small position — When switching to live, use a minimal position size for the first few trades to confirm everything works as expected.
Advanced Webhook Techniques
Multi-Timeframe Confirmation
Create separate alerts for different timeframes. For example, only act on a 5-minute buy signal when the 1-hour trend is bullish. Use your webhook message format to include context about the timeframe and configure your bot to require confirmation across timeframes.
Dynamic Position Sizing
Include a "size" field in your webhook message to vary position size based on signal strength. A high-confidence signal from your Pine Script strategy could trigger a larger position, while a weaker signal uses a smaller size.
Multiple Bots, One Strategy
You can point the same TradingView alert to multiple fomoed webhook bots on different exchanges. This lets you execute the same strategy across Hyperliquid, Binance, and Bybit simultaneously.
Common Issues and Solutions
- Alert not triggering: Make sure your TradingView plan supports webhook alerts. Free plans have limited alert functionality.
- Webhook not received: Double-check the URL in TradingView's alert settings. Ensure there are no extra spaces or characters.
- Invalid JSON: TradingView sends the message exactly as you typed it. Validate your JSON format before saving the alert.
- Trade not executing: Check your bot logs for error messages. Common causes include insufficient balance, invalid pair, or the bot being stopped.
Why fomoed for Webhook Trading
fomoed's webhook infrastructure is designed for speed and reliability. Incoming signals are processed in milliseconds, and your bot runs 24/7 on cloud servers so it never misses an alert. Combined with built-in take profit, stop loss, and trailing stop features, you get complete trade management without writing any additional code. DEX bots are free, making it an ideal platform to test and deploy your TradingView strategies.


