โ† Quay lai trang chinh

๐Ÿ“ก TradingView Sniperv46

Nhan tin hieu tu Sniper indicator qua webhook

๐Ÿ”— Webhook URL cua anh

Dang lay URL...
โš ๏ธ Quan trong: Day la URL public. Dat env var TV_SNIPER_SECRET tren Cloudflare de bao mat (xem buoc 5).

๐Ÿ“ 5 buoc setup TradingView Alert

1 Mo bieu do TradingView (vd. XAUUSD chart), them indicator Sniper (search "Sniper" trong Indicators).
2 Khi indicator hien tin hieu mua/ban, bam phai chuot tren bieu do โ†’ chon "Add Alert" (Ctrl + Alt + A).
3 Trong popup Alert:
โ€ข Condition: chon indicator Sniper โ†’ chon "Any alert() function call" (hoac event BUY/SELL cua indicator)
โ€ข Actions: tick Webhook URL โ†’ paste URL phia tren
โ€ข Expiration: chon "Open-ended"
4 Trong o Message, paste JSON template duoi day (TradingView se thay {{...}} bang gia thuc):
{
  "symbol": "{{ticker}}",
  "signal": "{{strategy.order.action}}",
  "price": {{close}},
  "sl": {{plot_0}},
  "tp1": {{plot_1}},
  "confidence": 90,
  "note": "Sniper alert tu TV",
  "secret": "DAT_SECRET_O_DAY"
}
Note: {{plot_0}} {{plot_1}} tuy thuoc indicator co expose SL/TP khong. Neu khong co, bo 2 field do - he thong tu tinh SL 0.5% va TP 1:3.
5 (Tuy chon - bao mat) Cloudflare Pages โ†’ Settings โ†’ Environment variables โ†’ them:
Key: TV_SNIPER_SECRET
Value: chuoi ngau nhien (vd. k8x2nq9pL5) - dan vao truong "secret" trong JSON.

๐Ÿ“จ Tin hieu da nhan tu TradingView

Dang tai...

๐Ÿงช Test webhook (gia lap)

Bam nut nay de gui 1 signal gia lap, kiem tra he thong da ghi vao journal chua.