TradingView alerts
Connect a TradingView strategy to VibeTrade in three parts: a live seat with a webhook token, an instrumented Pine Script that emits signed alert JSON, and a TradingView alert pointing at your webhook URL.
Security essentials
- seat_code + webhook_token go in the Pine
alert()JSON (alert message). - The URL
?secret=goes in TradingView's webhook URL field only. - Never share instrumented Pine scripts or alert JSON publicly.
- Rotate your webhook token from the Seats tab if a script may have leaked.
- Pause a seat from the Seats tab to stop accepting alerts without deleting it.
1. Confirm your TradingView plan supports webhooks
TradingView webhooks require a paid plan that includes webhook notifications (Essential / Pro or higher, depending on your region and plan name).
- Open TradingView and confirm webhook alerts are available on your account.
- Free plans cannot send alerts to VibeTrade.
2. Prepare your VibeTrade seat
Each strategy routes through a seat. The seat must be live before webhooks are accepted.
- In VibeTrade, open the dashboard and go to the Seats tab.
- Confirm your destination seat status is Live (paused seats reject incoming alerts).
- Copy your seat code and webhook token from the seat card — you will need both in your Pine Script alert JSON.
- If you ever share a script by mistake, use Rotate webhook token on the seat card and re-instrument.
3. Add VibeTrader tracking to your strategy
Do not hand-write webhook JSON into your Pine Script. Use the dashboard tool to inject seat-routed tracking for you.
- In VibeTrade, open the Strategy tab in the left sidebar.
- Find Add VibeTrader tracking to your strategy.
- Choose the destination seat for this strategy (must be Live).
- Confirm the seat code and webhook token shown in the credentials panel.
- Paste your existing Pine Script into the source box.
- Click Generate webhook-enabled script.
- Copy or download the updated script — it keeps your strategy logic and adds
alert()calls that includeseat_codeandwebhook_token.
4. Update the strategy on your TradingView chart
- Open TradingView and load the chart/symbol you want to automate.
- Open Pine Editor and replace your old script with the instrumented version from VibeTrade.
- Save and add the updated script to the chart so the new
alert()calls are active.
5. Create a TradingView alert
- Click the Alert button (clock icon) or press
Alt+A/Option+A. - Under Condition, select your updated strategy.
- For alert message, choose Any alert() function call so TradingView sends the JSON your Pine script emits.
- For strategy alerts, Order fills only is usually the right choice — alerts fire when the strategy fills orders, not on every bar.
- Set expiration as needed, then continue to Notifications.
6. Paste the VibeTrade webhook URL
- Open the Notifications tab in the alert dialog.
- Enable Webhook URL.
- Paste the webhook URL from the Strategy tool or Seats tab. It includes a
?secret=query parameter for drive-by protection:
https://vibetrader.live/api/webhooks/tradingview?secret=…
Click Create to save the alert.
7. Connect MetaTrader (optional)
Webhook alerts queue trades in VibeTrade. To execute them on your broker account, install and connect the MT4 bridge:
- Generate an MT4 connector key from your seat card.
- Follow the MT4 install guide to load the Expert Advisor and allow WebRequest.
- Complete the dashboard onboarding flow to validate the connection.