TradingView Alert Setup

Follow these steps to connect the SniperEdge AI indicator to the live signal feed. Takes about 5 minutes.

1

Open TradingView and add the indicator

Go to tradingview.com → open a chart → click Indicators → search SniperEdge AI

If it's not published yet: open Pine Editor → paste your SniperEdge_AI_v1.pine → click Add to chart

2

Create an alert on the indicator

Right-click on the chart → Add alert (or press Alt+A)

Set:

  • Condition: SniperEdge AI → SniperEdge — Any Signal
  • Trigger: Once per bar close
  • Expiration: Open-ended
3

Set the Webhook URL

In the alert dialog → click Notifications tab → enable Webhook URL

Paste this URL:

https://optimistic-delight-production-aaea.up.railway.app/api/webhooks/tradingview
4

Set the alert message (JSON payload)

In the alert dialog → Message tab → replace the default text with this JSON exactly:

⚠️ Use the simple version below (TradingView doesn't support dynamic Pine variables in alert messages for indicators — only for strategies)

{"symbol":"{{ticker}}","direction":"{{strategy.order.action}}","timeframe":"{{interval}}","score":80,"entry":{{close}},"sl":0,"tp":0,"source":"webhook","components":{"ema":true,"structure":true,"rsi":true,"volume":true,"candle":true,"volatility":true}}

The SL/TP are calculated by the indicator and will be 0 from TradingView alerts — the backend will accept this. For full SL/TP from TradingView, convert the indicator to a Strategy.

5

Create separate BUY and SELL alerts

For best results, create two alerts:

  • Alert 1: condition = SniperEdge — BUY Signal, message direction = "BUY"
  • Alert 2: condition = SniperEdge — SELL Signal, message direction = "SELL"

Repeat for each symbol/timeframe you want to trade (BTCUSDT 1H, ETHUSDT 1H, etc.)

6

Test it's working

After saving the alert, check the Signals dashboard — new signals should appear within seconds of each candle close.

📡 Your webhook info

Webhook URLhttps://optimistic-delight-production-aaea.up.railway.app/api/webhooks/tradingview
MethodPOST · application/json
Status Live