strategy-dev
TradingView Pine Script → haythix execution
Connect your custom indicators to automated trading
15 min · intermediate
What you'll have when finished
- Receive Pine Script alerts in haythix
- Auto-execute trades from TradingView signals
- Combine TradingView analysis with haythix order routing
Before you start
- Always use the shared secret — without it anyone with the URL can trigger your trades
- Test with notify-only mode first before enabling auto-execute
- Execute mode places REAL orders with no manual confirmation
Walkthrough
-
Create a webhook in haythix
Trade → TradingView Webhooks → Create Webhook. Step 1: name it, pick action mode. Two modes only: "Just notify me" or "Execute a trade automatically".
-
Copy the URL and shared secret
haythix generates both after Create. URL goes into TradingView; secret goes inside the JSON message body. Treat both as private.
-
Configure the TradingView alert
TradingView alert dialog → Notifications → Webhook URL field → paste the haythix URL. In Message field, paste the JSON template haythix gave you (it already contains your secret).
-
Test with notify-only mode
Click Send Test Alert in haythix. Confirm a row appears under Recent Alerts within 1-2 seconds. Then trigger a real TradingView fire and confirm the same.
-
Switch to auto-execute
Once you trust the alert chain for at least a day in notify mode, create a second webhook in execute_trade mode pointing at the same TradingView alert. Set exchange + default amount.