Skip to main content
All articles

July 21, 2026 · 4 min

Sync TradingView with your trading journal in 5 minutes

If you trade a strategy on TradingView, you know the problem: trades stay in the strategy tab, the journal stays empty, and the behavioral analysis never happens. The good news: TradingView can fire a webhook on every closed trade, and that's all an automatic journal needs.

How it works

  1. Paste the sync block at the end of your Pine strategy code (v5 or v6). The block is provided in TradeDiscipline, Settings, TradingView.
  2. Create an alert on the strategy, condition "alert() function calls only".
  3. Tick "Webhook URL" in the alert's Notifications tab and paste the URL shown in your settings (it already contains your personal token). Leave the Message field empty: the message is built by the Pine block.

That's it. On every closed trade, TradingView sends the full trade and it appears in your journal.

What gets synced

Symbol, direction, volume, entry and exit price, timestamps, commission, and the P&L in your account currency: the journaled amount is exact, including in forex. If an alert fires twice, the server deduplicates: no double entries in your journal.

The limits, honestly

  • It syncs trades from a Pine strategy. Manual trades placed directly on the chart don't trigger strategy alerts: for those, CSV import remains the way.
  • Alert webhooks require a paid TradingView plan (that's a TradingView limit, not ours).

What's next?

Once trades are in the journal, the real work starts: discipline score, off-plan trade detection, the cost of your bad habits in euros. Automatic sync (TradingView, MT4/MT5, cTrader, NinjaTrader, Tradovate) is a Premium feature (€29.99/month). But start free: full journal, daily CSV import and 1 discovery AI analysis, no credit card. Try it.

Turn theory into practice

Create my account

Risk disclosure: TradeDiscipline is a trading journal, a tracking and discipline tool: not a broker, and not an investment adviser. Trading carries a risk of losing your capital whatever the instrument (stocks, indices, commodities, futures, forex, crypto-assets).

Futures and forex trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones' financial security or life style. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results.

NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described herein, or any interest, ownership or otherwise, in any such product or service, or endorses, recommends or approves any such product or service.