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-webhookTradingView Alert Setup
- Open a chart and add the Mr. Node indicator.
- Click the three dots → Add Alert on the indicator.
- Set Condition to the indicator alert condition.
- Under Notifications, enable Webhook URL and paste the endpoint above.
- In the Alert message box, paste the JSON payload below.
- Replace
YOUR_TRADINGVIEW_WEBHOOK_SECRETwith your actual secret. - 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_URLrequiredYour Supabase project URL
e.g. https://xxxx.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEYrequiredSupabase anonymous public key (safe for browser)
e.g. eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
SUPABASE_SERVICE_ROLE_KEYrequiredSupabase service role key — server-only, never expose to browser
e.g. eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
TRADINGVIEW_WEBHOOK_SECRETrequiredSecret token used to authenticate TradingView webhook requests
e.g. your-strong-random-secret
DISCORD_WEBHOOK_URLoptionalOptional Discord webhook URL for signal notifications
e.g. https://discord.com/api/webhooks/...
DISCORD_SEND_ARMEDoptionalSet to 'true' to also send Discord notifications for ARMED signals
e.g. true