TradingViewTradingView webhook guide

How to automate trades with TradingView webhooks.

Connect your TradingView alerts to your trading account. Learn how webhooks work, choose the right alert type and set up your first copier with DaneTrades.

One TradingView source and one supported trading account are included on the free plan, subject to availability.

01
TradingView

Your strategy or indicator triggers an alert.

HTTPS webhook
02
DaneTrades Cloud

Reads the instruction and applies your copier settings.

Trade instruction
03
Your trading account

Your broker processes the requested action.

Illustrative flow. Alert delivery and broker execution are not guaranteed.

What is a TradingView webhook?

A webhook sends a message from TradingView to another service when an alert triggers. Instead of receiving a notification and entering a trade manually, you can send an instruction to DaneTrades to open or manage a trade on a connected account.

TradingView is the source of the instructions. Your broker is where the trades are executed. You do not need to keep your computer running or rent a VPS for DaneTrades.

From TradingView alert to automated trade

Start in DaneTrades. The setup wizard provides the instructions for your chosen alert type and your private webhook URL when you activate the copier.

Create free account
  1. 1

    Create your TradingView source

    Sign in to DaneTrades, choose TradingView in Accounts, select an alert type and enter the exact chart symbol, for example OANDA:XAUUSD.

  2. 2

    Prepare your alert message

    Copy the generated message for a compatible strategy or indicator. For custom scripted alerts, use a compatible Pine Script or the AI adaptation prompt in the wizard. Keep alerts disabled for now.

  3. 3

    Connect your trading account

    Choose your receiving platform, connect your broker account, match the TradingView symbol to the broker's symbol and choose the trade size.

  4. 4

    Review and activate your copier

    Confirm your alert setup, symbol and sizing. Make sure your TradingView strategy has no open position and any remaining broker positions are managed. Activate the copier to obtain your live webhook URL.

  5. 5

    Add the URL and enable alerts

    In TradingView's alert settings, open Notifications, enable Webhook URL and paste the private URL from DaneTrades. Enable your correctly configured alerts only when ready to copy from no open source position. Monitor Copier and Logs in DaneTrades for actual activity.

    Keep your URL private. Save it securely when shown. Replacing it invalidates the old URL.

Three ways to send trading instructions

The right setup depends on how your existing strategy or indicator generates signals. You do not need to write code if your strategy or indicator already meets the requirements.

01 / NO-CODE STRATEGY

Strategy order-fill alerts

Copy entries, full closes and supported partial closes from a compatible strategy.

No script changes required

In TradingView

Condition
Your strategy
Alert type
Order fills only
Message
Copy from DaneTrades

Use a standard time-based chart for one symbol. Your strategy must produce no more than one filled order per bar, must not add to an open position, re-enter within the same bar or reverse directly from long to short.

Stop loss and take profit exits are copied when TradingView sends the exit fill. Protective levels are not placed at your broker by this method.

02 / NO-CODE INDICATOR

Indicator signal alerts

Turn supported buy, sell and close signals from an indicator into trading instructions.

No script changes required

In TradingView

Condition
Your indicator's matching signal
Trigger
Once per bar close
Message
Matching action from DaneTrades

Create a separate alert for each supported action you want to copy: open buy, open sell, close buy or close sell. Use the same private webhook URL for these alerts. Use one symbol, a standard time-based chart and no more than one action per bar across all alerts for this source.

A sell entry is not a close-buy instruction. Your indicator must expose separate close conditions to automate exits. This method does not send broker SL/TP levels.

03 / ADVANCED AUTOMATION

Custom scripted alerts

Use your own compatible Pine Script to send entries, closes, partial closes and supported stop loss or take profit updates.

AI adaptation prompt included

In TradingView

Condition
Your compatible Pine Script
Alert type
alert() function calls only
Message
Generated by your script

One alert handles all supported actions emitted by the script. If your script needs adapting, copy the ready-made AI prompt from DaneTrades, use it with your own code and chart symbol, review the result and compile it in TradingView. Do not paste static example JSON into the alert.

Do not share your webhook URL or broker credentials with AI tools. Compilation alone does not prove correct alerts or successful broker execution.

Where do your stop loss and take profit sit?

There is an important difference between copying a close signal and placing protective orders at your broker.

Strategy and indicator alerts

TradingViewExit condition triggers
DaneTradesReceives the close alert
BrokerProcesses the close

If the exit alert is missed, the position may remain open. These methods do not place SL or TP levels at the broker.

Custom scripted alerts

TradingViewOpen with SL/TP prices
DaneTradesApplies copier settings
BrokerCan hold protective orders

When protection has been accepted and confirmed by the broker, it can act without a later TradingView close alert. Prices and execution can differ.

Alert triggered but no trade appeared?

Check each stage separately. A TradingView alert is not confirmation that a trade was accepted by your broker.

If a position is open without expected protection, check it directly at your broker. Do not resend live alerts blindly or assume missing confirmations mean no order was placed.

1. Check the alert

Review TradingView's alert log, enabled status, webhook settings and exact chart symbol. Recreate the alert when needed after script or setting changes.

2. Check the copier

Check your copier is active, that the webhook URL is current, and that symbol mapping and trade size are correct.

3. Check DaneTrades Logs

Look for accepted, rejected or pending actions and their reasons. A signal receipt is not a broker fill. If a broker outcome is uncertain, verify the position at your broker before taking further action.

TradingView webhook FAQs

Can I use TradingView webhooks for free?

DaneTrades includes one TradingView source and one eligible receiving account without a monthly DaneTrades subscription or payment card, subject to availability. TradingView requires a plan supporting webhook alerts and two-factor authentication. Broker charges may apply.

Can I automate any TradingView strategy or indicator?

No. It must expose suitable alerts and meet the selected alert method's requirements. Protected scripts can only be used if their available alerts are compatible. Custom scripts require compatible messages with stable event and position identifiers and ordered actions.

Can I use one webhook for several alerts?

Indicator alerts for different supported actions on the same source use the same source URL. Custom scripted alerts send their supported actions through one alert. Each separate TradingView source has its own URL and configured symbol. Your first source is included; additional sources use paid account slots.

How are trade sizes calculated?

TradingView Free supports fixed lots and lot multiplier. Strategy quantities are contracts or units, not necessarily broker lots; a verified conversion is needed for native-strategy multiplier sizing. Indicator source quantity is configured in DaneTrades. Paid risk sizing requires compatible custom alerts with actual source entry price and stop loss on each open.

What happens if I change my script?

TradingView alerts can retain the script and settings from when they were created. Stop the affected alerts, review compatibility, recreate them when needed and resume only when the source has no open position and any existing broker positions have been managed.

Are webhook signals guaranteed to arrive?

No. TradingView delivery can fail or be interrupted, and platform limits and broker conditions also apply. Check actual activity and monitor your positions. Do not rely on a TradingView notification as evidence of broker execution.

Can I connect more accounts?

Yes. Paid Cloud starts at $20 per month for two purchased slots; additional slots cost $10 per month each. Each additional trading account or TradingView source uses one paid slot. The eligible free receiving account remains included but can only receive from its designated TradingView source, even after upgrading. Configure a copier for each intended receiver within your purchased capacity.

Turn your TradingView alerts into trades.

Connect one supported trading account on the free plan. No DaneTrades monthly subscription, no payment card and no VPS required.

Subject to availability, compatibility and TradingView plan requirements.