Skip to content

Start by an external signal (webhook) ​

The "external signal" start condition lets you start the first cycle of a DCA bot from TradingView or any other source that can send requests. The bot waits for the signal in the “Waiting for start condition” status (the 🕒 icon).

What it is ​

After a bot is created with this condition, its card shows a personal address for starting it and a ready message text with a secret token: {"token":"…"}. In TradingView the address goes into the alert's Webhook URL field, and the text goes into the Message field. When the alert fires, TradingView sends this text to the address. The bot checks signals once a minute and starts within a minute.

Your own script or indicator can send a POST request with the same text to the address, or pass the token in the X-Webhook-Token header: either way works.

The signal is only needed for the first start, not for every cycle: after a Take-Profit or a Stop-Loss the bot waits out the cooldown and opens the next cycle itself. If the bot ends up paused after it has been started — you pressed ⏸️ Pause, the Kill switch or a protection fired, or a cycle failed to start — a signal will not start it: lift the pause with the ▶️ Start button.

Where it is in the bot ​

  • When creating: 🏠 Home → 🤖 Bots → ➕ DCA bot — in the wizard in the Sync app, the Cycle start field → Webhook.
  • After creation: 🏠 Home → 🤖 Bots → the bot. The card has a “📡 Start by signal (webhook)” block: “TradingView → Webhook URL” with the address and “TradingView → Message” with the ready text. The 🔄 Rotate webhook token button is there as well.
  • On the website app.sync.trade: the bot card on the DCA bots page shows the address and the message text; to revoke the token — Change settings → New webhook token (the new token is shown once, then masked); see Bots on the website.

How to set it up ​

  1. Choose the condition. The wizard explains: “A cycle starts on a webhook signal (e.g. from TradingView) — the address will be on the bot card.” The card shows the address (Webhook URL) and a ready message text with your token; your own script can also pass the token in the X-Webhook-Token header.
  2. Confirm the creation: Create → Create and start. The bot appears in the list with the status “Waiting for start condition”.
  3. In TradingView, create an alert with the condition you need. In the notifications tab, turn on Webhook URL and paste the address from the card.
  4. Paste the text from the card into the Message field as is, adding nothing before or after it. You may add your own fields inside the curly braces, separated by commas — the bot skips them.
  5. Save the alert. When it fires, within a minute you get “🔄 New cycle #1 started. Bot entered position.”

TradingView allows webhooks only when two-factor authentication is enabled in your TradingView account.

The token is the key to your bot: “⚠️ Never share the token — anyone with it can start your bot.” If the token leaked or you shared the message text, press 🔄 Rotate webhook token: “✅ Done. The old token is no longer valid.” — the old one stops working immediately, the address stays the same, the bot shows the new message text and reminds you: “⚠️ Replace the message text in your TradingView alerts (or the token in your indicator) — otherwise signals will stop arriving.”

When a signal is accepted ​

Bot stateWhat happens to the signal
“Waiting for start condition” or “Created”Accepted, the bot starts on the next check
The same signal again before the startCounted once — a repeat from TradingView will not open a second entry
“Active”, “Cooldown”, “Starting new cycle”Ignored: a second cycle will not open, and the signal is not saved for later
“Paused” (the bot has already been started)Ignored just like for a running bot: the bot does not start, the signal is not saved. Lift the pause with the ▶️ Start button
The Kill switch fired and the trigger is not resetThe signal is not accepted and not remembered. After 🔄 Reset trigger on the 🛡️ Kill switch screen the bot waits again — a new signal is needed
Subscription is not activeDoes not start the bot; renew the subscription

Requests without a token or with a wrong token are rejected — and the reply is the same when there is no bot with that number. Requests that come too often are rejected too: more than 10 per minute from one address or more than 60 failed attempts per minute to one bot. A signal with the right token is not stopped by the second limit: even if someone floods your bot's number with wrong requests, your signal gets through. TradingView addresses have no per-address limit: signals of all its users come from them. In the reply the source sees a short status in words: accepted, already received, or ignored because the bot is not waiting to start — the same reply a running bot and a paused bot get.

There are no "condition unmet for more than a day" reminders here, unlike RSI and SMA: the bot will wait for a signal indefinitely.

Example ​

Cooldown 45 seconds. The signal arrived at 10:00:05 — by 10:01 the bot had entered the position. At 10:40 the TP fired, at 10:41 the bot opened cycle #2 by itself without a signal. At 10:50 the indicator sent another signal — the bot was “Active”, the signal was ignored, no second position appeared. At 11:00 you pressed ⏸️ Pause; cycle #2 ran to its TP at 11:20, and no new one started. The signal at 11:30 was ignored too — the bot was paused. At 11:35 you pressed ▶️ Start: the cooldown had long expired, and cycle #3 started at once.

Limits and allowed values ​

ParameterValue
Signal checkonce a minute
Accepted in statesWaiting for start condition, Created (the bot has never been started yet)
A bot paused after it was startedThe signal is not accepted — only ▶️ Start
Request rateup to 10 per minute from one address (except TradingView addresses); up to 60 failed attempts per minute per bot
Message text{"token":"…"} from the card; or the X-Webhook-Token header
Changing the condition on a live botno

Common errors and what the bot says ​

  • “ℹ️ This bot does not use a webhook signal, rotation is not needed.” — the rotate button was pressed on a bot with a different start condition.
  • “DCA bot not found (id=12)” — the rotate button was pressed under a deleted bot or someone else's bot (for example in a forwarded message).
  • The signal was sent but the bot did not start — check the status in the card: it must be “Waiting for start condition” or “Created”. If the status is “Paused”, the bot has already been started and a signal does not start it — press ▶️ Start. If the Kill switch fired, signals are not accepted until you press 🔄 Reset trigger on the 🛡️ Kill switch screen; send the signal again after the reset. Check that the alert's Message field holds the text from the card as is, with nothing added, and that the address is in Webhook URL. If the token was rotated after you set up the alert, replace the message text with the new one.
  • You received “⚠️ Could not start a new cycle: … The bot is paused — check the API keys and balance, then tap "▶️ Start".” — the signal was accepted but the entry failed; after fixing the problem press ▶️ Start — sending the signal again will not start a paused bot.