Swing TradePROS

Settings

Webhook setup and configuration

Webhook Endpoint

Use this URL as the webhook endpoint in your TradingView alert.

https://your-app.vercel.app/api/tradingview-webhook

TradingView Alert Setup

  1. Open a chart and add the Mr. Node indicator.
  2. Click the three dots → Add Alert on the indicator.
  3. Set Condition to the indicator alert condition.
  4. Under Notifications, enable Webhook URL and paste the endpoint above.
  5. In the Alert message box, paste the JSON payload below.
  6. Replace YOUR_TRADINGVIEW_WEBHOOK_SECRET with your actual secret.
  7. Save the alert.

Sample Alert Payload

{
  "secret": "YOUR_TRADINGVIEW_WEBHOOK_SECRET",
  "system": "MrNodeItAll",
  "strategy": "TopBottomOptions",
  "ticker": "NASDAQ:NFLX",
  "timeframe": "60",
  "signal": "CALL",
  "direction": "bullish",
  "price": "642.10",
  "why": "Capitulation reversal",
  "call_score": 90,
  "put_score": 20,
  "action": "Review now",
  "contractStyle": "long_call",
  "expirationPreference": "21-45 DTE",
  "risk": "premium_paid"
}

Test Webhook (curl)

curl -X POST https://your-app.vercel.app/api/tradingview-webhook \
  -H "Content-Type: application/json" \
  -d '{
    "secret": "YOUR_TRADINGVIEW_WEBHOOK_SECRET",
    "ticker": "NASDAQ:NFLX",
    "timeframe": "60",
    "signal": "CALL",
    "price": "642.10",
    "why": "Capitulation reversal",
    "call_score": 90,
    "put_score": 20,
    "expirationPreference": "21-45 DTE",
    "contractStyle": "long_call"
  }'

Discord Notifications (Optional)

Note: The actual DISCORD_WEBHOOK_URL env var on the server controls server-side notifications. This stores a reference in settings for display purposes.

Required Environment Variables

NEXT_PUBLIC_SUPABASE_URLrequired

Your Supabase project URL

e.g. https://xxxx.supabase.co

NEXT_PUBLIC_SUPABASE_ANON_KEYrequired

Supabase anonymous public key (safe for browser)

e.g. eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

SUPABASE_SERVICE_ROLE_KEYrequired

Supabase service role key — server-only, never expose to browser

e.g. eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

TRADINGVIEW_WEBHOOK_SECRETrequired

Secret token used to authenticate TradingView webhook requests

e.g. your-strong-random-secret

DISCORD_WEBHOOK_URLoptional

Optional Discord webhook URL for signal notifications

e.g. https://discord.com/api/webhooks/...

DISCORD_SEND_ARMEDoptional

Set to 'true' to also send Discord notifications for ARMED signals

e.g. true