4. ngrok Setup
Configure ngrok for a permanent public webhook URL.
ngrok gives you a permanent public URL so TradingView cloud alerts can reach your local machine — no port forwarding or firewall changes required. This is the recommended setup for receiving TradingView webhook alerts.
Note
Without ngrok, the bridge still works on localhost. Use http://localhost:4003/webhook for anything running on the same machine (local scripts, same-machine alerts, etc.).
Setup Steps
Check ngrok Status
On the Settings page, look at the ngrok status indicator at the top of the ngrok section. "ngrok installed" (green) means you are ready. "ngrok not installed" (red) means you need to install it first.
Install ngrok (if needed)
Click the Install ngrok button. The addon downloads and installs ngrok automatically — no manual setup required.
Create a Free ngrok Account
Sign up at ngrok.com — a free account is all you need.
Copy Your Auth Token
Go to your ngrok dashboard, copy your Auth Token, and paste it into the Auth Token field on the NinjaSync Settings page.
Claim a Free Static Domain
In the ngrok dashboard, go to Domains and claim your free static domain (e.g. your-name-abc123.ngrok-free.app). Paste the hostname into the Static Domain field — no https://, just the hostname.
Enable and Save
Check Enable ngrok tunnel, click Save Settings, and restart NinjaTrader.
Your Webhook URL
After restart, your permanent webhook URL is ready:
https://your-name-abc123.ngrok-free.app/webhook
This URL never changes. Use it in all your TradingView alert webhook fields.
Important
Do not include https:// when pasting into the Static Domain field. Paste only the hostname: your-name-abc123.ngrok-free.app