Back to Docs

TradingView Signals Setup

Configure TradingView alerts to power your CIDER bot.

Overview

CIDER's in-house bots are powered by TradingView webhook signals. When an alert fires on TradingView, it sends a JSON payload to CIDER, which processes the signal and executes a swap on the Base network via the Mobula Swap API.

Step 1: Get Your Webhook URL

Your webhook endpoint is:

https://cider.trade/api/webhooks/tradingview

You'll also need your WEBHOOK_SECRET from your environment variables.

Step 2: Create a TradingView Alert

1. Open your chart on TradingView

2. Set up your indicator or strategy conditions

3. Click "Create Alert"

4. Set the condition and expiration

5. Under "Notifications", enable

Webhook URL

6. Paste your CIDER webhook URL

7. Set the message body as JSON (see below)

Step 3: Configure the Alert Message

Use TradingView's placeholder syntax to build dynamic signals:

Alert Message Template
{
  "secret": "YOUR_WEBHOOK_SECRET",
  "botId": "YOUR_BOT_ID",
  "action": "{{strategy.order.action}}",
  "pair": "{{ticker}}",
  "price": {{close}},
  "amount": 0.1,
  "strategy": "{{strategy.order.comment}}",
  "timeframe": "{{interval}}"
}

TradingView will replace the {{...}} placeholders with actual values when the alert fires.

Step 4: Signal Flow

1

TradingView alert fires → sends webhook to CIDER

2

CIDER validates the webhook secret and payload

3

Signal is recorded in the database and linked to the bot

4

Trade is executed on Base via Mobula Swap API + server wallet

5

Performance is tracked and bot growth stage is evaluated