Webhooks

goodcryptoX allows you to automate trading actions via TradingView webhooks — a powerful mechanism for triggering orders and bot actions directly from your signals.

Unlike some implementations that treat webhooks like a programmable API (where you send parameterized commands like "buy 3 BTC"), goodcryptoX currently supports a trigger-based model. Each webhook simply activates a predefined action on a specific order or bot — no parameters or commands are interpreted.

In the near future, we will launch a new TradingView Strategy bot that supports full strategy instructions via webhooks, including dynamic symbol selection, quantities, order types, and multi-symbol logic — effectively acting as an API layer. Stay tuned

Security and access

  • Webhooks are only accepted from TradingView servers for now — no custom IPs or external sources.

  • If you need to use a custom webhook source, contact us at [email protected] to request access.

  • Webhooks are available only for users with an active PRO plan or higher.

How webhooks work in goodcryptoX

  • Every order or bot action has its own dedicated webhook URL

  • You must create the order or bot first to get the URL (they will appear in the Webhooks section of the order or bot's Details)

  • Sending any webhook payload to that URL will trigger the action

Webhook URLs are action-specific, not user-specific. You must create one webhook per action, e.g. one for entry, one for take profit, one for stop loss, etc. for every bot or order

Supported order and bot actions

If you want your order or bot to be triggered by a webhook, you must select webhook as the trigger condition during setup. This applies to:

  • Stop-market / stop-limit orders trigger

  • Trailing orders activation (trailing start)

  • Take-profit and stop-loss triggers

  • DCA bots entry condition

After creation, you’ll find all available webhook URLs in the Details of your order or bot:

Cancel webhook — always available in all orders and bots

Close position webhook — always available in DCA bot details

To sum up:

Action
Supported?
Notes

Cancel order

Always shown in details

Trigger Stop order

Must select webhook at setup

Activate Trailing order

Trailing start = webhook

Trigger take profit / stop loss

Optionally webhook-triggered

DCA bot - entry

Entry buy/sell via webhook (must be set at setup)

DCA bot - exit

Close position via webhook (always available)

Grid bot - entry

🚫

Not yet supported

Multiple take-profit targets with webhooks

If you set up a take-profit group using webhook as the trigger method, they will all share the same webhook URL. Each time the webhook is triggered, the next TP order in the sequence will execute — one by one.

How to set up alerts in TradingView

Once you’ve created your order or bot in goodcryptoX and copied the webhook URL for a specific action, here’s how to link it to your TradingView alerts:

  1. Go to your chart in TradingView

  2. Create a new alert based on your strategy, indicator, or condition

  3. In the alert settings, enable the checkbox “Webhook URL”

  4. Paste in the specific webhook URL from the goodcryptoX Webhooks section

  5. Leave the message field as-is (any content is fine — goodcryptoX ignores the payload for now)

  6. Save the alert

Repeating strategies (via DCA bot)

A webhook-triggered order (e.g. stop-market with TP and SL) is a one-time setup. Once the order executes and the linked TP or SL fires, the entire trade is complete. If you want this structure to repeat automatically, that’s not possible with orders — but it is achievable now using the DCA bot.

We will soon introduce a dedicated TradingView strategy bot to support repeating multi-action trades, but in the meantime, DCA bot provides a flexible way to repeat your webhook-driven strategy.

Pure webhook loop

To set up a bot that enters a position on a webhook, exits on a webhook, and then repeats:

  1. Set entry condition = webhook

  2. Set averaging orders = 0 (disable averaging)

  3. Disable both take-profit and stop-loss

  4. Enable "Repeat on close position"

Once the bot is launched, you’ll see the following webhook URLs under the bot's Details → Webhooks section:

  • Enter Buy — opens a Long position

  • Enter Sell — opens a Short position

  • Close position — closes the active position (long or short)

  • Cancel — stops the bot

Execution logic

  • When the bot receives Enter Buy, it opens a long position.

  • When it receives Enter Sell, it opens a short position.

  • The bot will only respond to the first entry webhook it receives while idle.

  • While a position is open:

    • Any further entry signals are ignored

    • The bot will not increase or reverse the current position on Entry signals

    • The only accepted signals are close position or a triggered TP/SL (if configured)

  • Once the position is closed (manually, by webhook, or by SL/TP), the bot resets and waits for the next Entry webhook.

This loop continues as long as the bot remains active, allowing you to repeat a complete entry → exit → reset cycle indefinitely.

Pure webhook mode vs hybrid setups

The DCA bot supports multiple control layers that can be combined to build flexible strategies:

  • Entry: via webhook, signal, or asap

  • Exit: via webhook, or built-in price-based TP/SL

  • Averaging: optional; can be disabled

You can:

  • Run a bot entirely via webhook signals (entry and exit)

  • Add price-based TP/SL as fallbacks, even if you use webhook exits

  • Add averaging orders for additional protection

This makes it possible to design:

  • Fully automated loop strategies (pure webhook)

  • Signal-driven bots with manual failovers

  • Hybrid setups with multi-layer exits

Practical webhook strategy examples

Example 1: One-off order + multiple take profits (Bollinger Band bounce)

Goal: Buy when price breaches lower Bollinger Band, sell progressively as it climbs.

Setup in goodcryptoX

  • Create a stop-market order with trigger condition = webhook

  • Add three take-profit targets. TP trigger = webhook

Setup in TradingView

Create four alerts:

  1. Price breaches lower band → send to main order's Trigger webhook URL

  2. Price returns inside band → send to Take Profit Trigger webhook URL

  3. Price crosses mid-band → send to Take Profit Trigger webhook URL

  4. Price breaches upper band → send to Take Profit Trigger webhook URL

In the alert settings, enable the checkbox “Webhook URL”

Paste in the specific webhook URL from the goodcryptoX Webhooks section. Leave Message field as is — it is not used.

Example 2: Repeating strategy with DCA bot (Golden/Death Cross)

Goal: Enter long on Golden Cross, enter short on Death Cross. Exit with a 10% profit or when RSI > 70 and repeat forever.

Setup in goodcryptoX

Create DCA bot

  • Entry condition = webhook

  • Averaging = off (set to 0)

  • Take Profit = 10%

  • Stop loss = off

  • Enable: "Repeat on TP"

Setup in TradingView

  • Create three alerts on the same chart:

    1. SMA50 crosses above SMA200 → send to Enter Buy webhook

    2. SMA50 crosses below SMA200 → send to Enter Sell webhook

    3. RSI > 70 → send to Close position webhook

DCA bot holds only one position at a time. While in position, it ignores new entry webhooks until position is closed.

If you want to be able to enter Long and Short positions on the same instrument in parallel - create two separate bots and send Enter Buy to one and Enter Sell to the other

Summary

Concept
Description

Trigger model

Each action has its own webhook URL

Setup flow

Create order → copy webhook URL → paste into TradingView alert

Repeating strategy

Use DCA bot with repeat enabled

Access

Requires PRO plan or higher

Video tutorials

Intro to webhook trading

Using DCA bot with webhooks

Multiple take-profits with webhooks

Last updated