Setting Up TradingView Alerts
After creating a webhook in Amabit, you need to configure a TradingView alert to send signals to your webhook URL. This page walks through the entire process.
Prerequisites
- A TradingView account (free or paid)
- A webhook created in Amabit with the URL copied
- A chart open with the strategy or indicator you want to automate
Step 1: Copy Your Webhook URL
In Amabit, go to Agents → Signals in the top navigation bar. Click Actions on the webhook, then Setup Guide to see the webhook URL. It looks like:
https://api.amabit.io/webhooks/tradingview/a1b2c3d4e5f6...WARNING
If you didn't save the URL when creating the webhook, you'll need to delete the webhook and create a new one. The secret token is only shown once.
Step 2: Open the Alert Dialog in TradingView
- Open your chart on TradingView with the strategy or indicator applied
- Click the Alert button (clock icon in the right toolbar) or press Alt+A (Windows) / Option+A (Mac)
Step 3: Set the Alert Condition
In the Condition section of the alert dialog:
For a Strategy:
- Select your strategy from the dropdown
- The condition is automatically set to fire on every
strategy.entry()andstrategy.close()call
For an Indicator or Price Alert:
- Select the indicator or price condition
- Configure the trigger (e.g., "Crossing Up", "Greater Than", etc.)
- You'll need two separate alerts for buy and sell signals
Step 4: Set the Alert Message (Payload)
Go to the Message field in the alert dialog. This is what TradingView sends to your webhook when the alert fires.
For Strategy Mode — paste this template:
{
"action": "{{strategy.order.action}}",
"symbol": "{{ticker}}",
"quantity": "{{strategy.order.contracts}}",
"price": "{{close}}",
"order_type": "market",
"order_id": "{{strategy.order.id}}",
"comment": "{{strategy.order.comment}}"
}For Signal Mode (Buy alert) — paste this template:
{
"action": "buy",
"symbol": "BTCUSDT",
"quantity": 0.01,
"order_type": "market"
}For Signal Mode (Sell alert) — create a separate alert with:
{
"action": "sell",
"symbol": "BTCUSDT",
"quantity": 0.01,
"order_type": "market"
}TIP
If your webhook uses Custom % of Balance lot sizing, you can omit the quantity field entirely — Amabit will calculate the position size automatically.
Symbol format
If {{ticker}} produces a format with slashes (e.g., BTC/USDT), replace it with the hardcoded Binance symbol: "BTCUSDT". Amabit does accept exchange prefixes like BINANCE:BTCUSDT — those are stripped automatically.
Step 5: Enable the Webhook Notification
- Go to the Notifications tab in the alert dialog
- Check the Webhook URL checkbox
- Paste your Amabit webhook URL into the field
- Optionally give the alert a descriptive name (e.g., "BTC Long → Amabit")
- Click Create
The alert is now live. When it triggers, TradingView sends the message payload to your Amabit webhook URL.
Step 6: Verify It Works
- Check the webhook logs in Amabit — within seconds you should see the signal appear
- Verify the status is Executed
- Confirm the order appeared in your trading terminal
Testing tip
To test quickly, temporarily set your TradingView alert to trigger on a short timeframe (e.g., 1-minute chart) or use a price alert that fires immediately. After verifying it works, update the alert to your actual strategy/timeframe.
Setting Up Multiple Alerts
For Hedge Mode (Futures)
You need two webhooks and two alerts:
- Create a webhook with Position Side = LONG → copy the URL
- Create another webhook with Position Side = SHORT → copy the URL
- In TradingView:
- Alert 1 (long entry) → uses the LONG webhook URL
- Alert 2 (short entry) → uses the SHORT webhook URL
See Futures & Hedge Mode Signals for detailed setup.
For Multiple Symbols
Create separate alerts for each symbol, all pointing to the same webhook URL. Hardcode the symbol in each payload:
Alert 1 message:
{ "action": "buy", "symbol": "BTCUSDT", "quantity": 0.01, "order_type": "market" }Alert 2 message:
{ "action": "buy", "symbol": "ETHUSDT", "quantity": 0.1, "order_type": "market" }Troubleshooting
| Issue | Solution |
|---|---|
| No log entry in Amabit | Verify the webhook URL is correct (including the full secret token). Check that the webhook is enabled. Verify the TradingView alert is active. |
| Status: Failed | Check the error message in logs. Common causes: insufficient balance, invalid symbol format, minimum order size not met |
| Status: Deduplicated | The same signal fired twice within 10 seconds. Add a unique order_id to each payload if you need rapid repeated signals |
| Status: Rate Limited | Increase the orders-per-minute limit in webhook settings, or check for duplicate TradingView alerts |
| Wrong symbol in log | Make sure {{ticker}} produces a Binance-compatible format. Hardcode the symbol if needed |
| TradingView shows "Alert stopped" | Free TradingView plans have a limit on active alerts. Upgrade or remove unused alerts |