← All posts

Your first TradingView webhook, end to end

Most of the friction in automating a TradingView strategy isn't the strategy — it's the plumbing between "alert fires" and "order appears at your broker." Once you've done it once, it takes about five minutes. Here's the whole path.

1. Create a strategy

A strategy in ezpztrader is just a name, an asset class, and a webhook URL that gets generated the moment you save it. That URL is the only thing TradingView will ever need to know about.

2. Build the alert message

TradingView alerts send whatever text you put in the message box. For ezpztrader that text needs to be JSON. The smallest valid message is genuinely this small:

{ "ticker": "{{ticker}}", "action": "buy" }

Add fields as you need them — quantity, order type, a take-profit percentage. Nothing beyond ticker and action is required.

3. Point the alert at your webhook

In TradingView's alert dialog, paste your strategy's webhook URL into the Notifications tab, and your JSON into the Message tab. Set the alert to fire once per bar close unless you have a specific reason not to.

4. Fire it on paper first

Every plan includes paper accounts. Subscribe a paper account to the strategy, let the alert fire a few times, and check the signal log. If the ticker format, the action, or the sizing isn't what you expected, this is the cheapest possible place to find out.

5. Connect a live account when you trust it

Once paper trading is behaving the way you expect, subscribe a live broker connection to the same strategy. Nothing about the alert or the webhook URL changes — you're just adding another account to the list that receives the same signal.