Skip to main content

Logging a TradingView strategy with alerts

Capture your Pine strategy's entries and exits as journaled trades.

What this does

If you run a Pine v5 strategy on TradingView, TradeDNA can capture each entry and exit alert as a journaled trade. This logs your strategy's signals, not your real broker fills, so it is a great way to track a system you are testing. Pair it with broker auto-sync for full coverage of your live account.


​

You will need a TradingView plan that supports webhook alerts.


​

1. Open the TradingView strategy tab

Go to Settings, then Connections, and open the TradingView strategy tab. Your personal webhook URL is shown here. Treat this URL like a password, anyone with it can write trades into your journal.

Logging a TradingView strategy with alerts, screenshot 1


​

2. Create the alert in TradingView

In TradingView, open your strategy, click the Alert (clock icon), and choose Create Alert. It must be a Pine strategy, not a study, for the trade details to come through.


​

3. Point the alert at TradeDNA

  • Under Notifications, turn on Webhook URL and paste the URL from the TradingView strategy tab.

  • In the alert Message field, paste the JSON template shown on that same tab.

  • Save the alert.

Good to know

  • Some strategy details only fill in when your strategy actually closes a position.

  • If you have more than one broker account connected, the template includes a field that tells us which account these strategy trades belong to.

  • Need to rotate the URL? Use Reset key on the TradingView strategy tab. Existing alerts stop working until you paste the new URL into them.

Did this answer your question?