---
id: module.tradingview-webhook
page_type: modules_article
title: "\"TradingView WebHook\" Extension"
description: "The TradingView WebHook module sends commands from TradingView alerts directly to Moonbot. Learn how to use the terminal URL, configure Windows Firewall access, and launch automated trades from external signals."
section: modules
category: null
url: https://moonbot.eu/en/moonbot-pro/modules/tradingview-webhook?format=md
locale: en
alternate_ru: https://moonbot.eu/moonbot-pro/modules/tradingview-webhook?format=md
alternate_zh: https://moonbot.eu/zh/moonbot-pro/modules/tradingview-webhook?format=md
parent: https://moonbot.eu/en/moonbot-pro?format=md
previous: https://moonbot.eu/en/moonbot-pro/modules/chart-loading?format=md
next: https://moonbot.eu/en/moonbot-pro/modules/moon-streamer?format=md
status: published
updated_at: 2026-11-16T12:15:17+03:00
---

# "TradingView WebHook" Extension

### What are webhooks?

A TradingView webhook is a mechanism that allows you to send a POST request to a specific URL every time an alert you have set up in TradingView is triggered. This feature can be enabled when creating or editing an alert in TradingView. Enter the correct URL obtained from **Settings → AutoBuy** in the Moonbot terminal, and when the alert is triggered, your execution command will be instantly sent to Moonbot. This is how trading based on signals from TradingView is carried out automatically.

This functionality can be activated in the **Moon Credits** window for 100 Moon Credits.

### Configuring Windows Firewall on a computer/server

To receive commands from TradingView, you need to create a rule with a whitelist of IP addresses for the Windows Firewall - this is crucial for the stable operation of the TradingView webhook. To do this, follow these steps:

1\. In the **Run** window (or press Win+R), enter **wf.msc** and click **OK:**

![](https://moonbot.eu/storage/editor-images/%D0%92%D0%B2%D0%B5%D0%B4%D0%B8%D1%82%D0%B5%20wf%20msc.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%92%D0%B2%D0%B5%D0%B4%D0%B8%D1%82%D0%B5%20wf%20msc.png)

The **Windows Firewall with Advanced Security** configuration window will open. This window can also be opened via **Control Panel → System and Security → Windows Firewall** by clicking **Advanced settings**:

![](https://moonbot.eu/storage/editor-images/%D0%91%D1%80%D0%B0%D0%BD%D0%B4%D0%BC%D0%B0%D1%83%D1%8D%D1%80%20Windows%20%D0%B2%20%D1%80%D0%B5%D0%B6%D0%B8%D0%BC%D0%B5%20%D0%BF%D0%BE%D0%B2%D1%8B%D1%88%D0%B5%D0%BD%D0%BD%D0%BE%D0%B9%20%D0%B1%D0%B5%D0%B7%D0%BE%D0%BF%D0%B0%D1%81%D0%BD%D0%BE%D1%81%D1%82%D0%B8.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%91%D1%80%D0%B0%D0%BD%D0%B4%D0%BC%D0%B0%D1%83%D1%8D%D1%80%20Windows%20%D0%B2%20%D1%80%D0%B5%D0%B6%D0%B8%D0%BC%D0%B5%20%D0%BF%D0%BE%D0%B2%D1%8B%D1%88%D0%B5%D0%BD%D0%BD%D0%BE%D0%B9%20%D0%B1%D0%B5%D0%B7%D0%BE%D0%BF%D0%B0%D1%81%D0%BD%D0%BE%D1%81%D1%82%D0%B8.png)

2\. In the left panel, select **Inbound Rules**; to add a traffic processing rule, select **New Rule**… in the right panel:

![](https://moonbot.eu/storage/editor-images/%D0%9F%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%B0%20%D0%B4%D0%BB%D1%8F%20%D0%B2%D1%85%D0%BE%D0%B4%D1%8F%D1%89%D0%B8%D1%85%20%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B9-1774536232.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%9F%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%B0%20%D0%B4%D0%BB%D1%8F%20%D0%B2%D1%85%D0%BE%D0%B4%D1%8F%D1%89%D0%B8%D1%85%20%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B9-1774536232.png)

3\. The **New Inbound Rule Wizard** window will open. Select the rule type — **Custom**, and proceed to the next step by clicking **Next:**

![](https://moonbot.eu/storage/editor-images/%D0%9C%D0%B0%D1%81%D1%82%D0%B5%D1%80%20%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D1%8F%20%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%B0%20%D0%B4%D0%BB%D1%8F%20%D0%BD%D0%BE%D0%B2%D0%BE%D0%B3%D0%BE%20%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D1%8F.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%9C%D0%B0%D1%81%D1%82%D0%B5%D1%80%20%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D1%8F%20%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%B0%20%D0%B4%D0%BB%D1%8F%20%D0%BD%D0%BE%D0%B2%D0%BE%D0%B3%D0%BE%20%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D1%8F.png)

4\. In the **Program** and **Protocol and Ports** sections, keep the default settings:

![](https://moonbot.eu/storage/editor-images/%D0%9F%D1%83%D0%BD%D0%BA%D1%82%20%D0%9F%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%9F%D1%83%D0%BD%D0%BA%D1%82%20%D0%9F%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B0.png)

![](https://moonbot.eu/storage/editor-images/%D0%9F%D1%83%D0%BD%D0%BA%D1%82%20%D0%9F%D1%80%D0%BE%D1%82%D0%BE%D0%BA%D0%BE%D0%BB%20%D0%B8%20%D0%BF%D0%BE%D1%80%D1%82%D1%8B.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%9F%D1%83%D0%BD%D0%BA%D1%82%20%D0%9F%D1%80%D0%BE%D1%82%D0%BE%D0%BA%D0%BE%D0%BB%20%D0%B8%20%D0%BF%D0%BE%D1%80%D1%82%D1%8B.png)

In the **Scope** section, select **These IP addresses** for remote IP addresses and click **Add**:

![](https://moonbot.eu/storage/editor-images/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%20%D0%9E%D0%B1%D0%BB%D0%B0%D1%81%D1%82%D1%8C.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%20%D0%9E%D0%B1%D0%BB%D0%B0%D1%81%D1%82%D1%8C.png)

5\. In the window that opens, enter the remote subnet IP address and click **OK**:

![](https://moonbot.eu/storage/editor-images/IP-%D0%B0%D0%B4%D1%80%D0%B5%D1%81%20%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%BD%D0%BE%D0%B9%20%D0%BF%D0%BE%D0%B4%D1%81%D0%B5%D1%82%D0%B8.png)

![(dark)](https://moonbot.eu/storage/editor-images/IP-%D0%B0%D0%B4%D1%80%D0%B5%D1%81%20%D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%BD%D0%BE%D0%B9%20%D0%BF%D0%BE%D0%B4%D1%81%D0%B5%D1%82%D0%B8.png)

Add all the IP addresses listed below one by one:\
52.89.214.238\
34.212.75.30\
54.218.53.128\
52.32.178.7\
After entering the required values, click **Next**.

![](https://moonbot.eu/storage/editor-images/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%20%D0%9E%D0%B1%D0%BB%D0%B0%D1%81%D1%82%D1%8C%20%D0%BF%D0%BE%D0%B4%D1%82%D0%B2%D0%B5%D1%80%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%20%D0%9E%D0%B1%D0%BB%D0%B0%D1%81%D1%82%D1%8C%20%D0%BF%D0%BE%D0%B4%D1%82%D0%B2%D0%B5%D1%80%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5.png)

6\. In the **Action** section, keep the default option **Allow the connection** and click **Next**:

![](https://moonbot.eu/storage/editor-images/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%20%D0%94%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B5.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%20%D0%94%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B5.png)

7\. The **Profile** section allows you to choose the profile; leave all checkboxes selected and click **Next**:

![](https://moonbot.eu/storage/editor-images/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%20%D0%9F%D1%80%D0%BE%D1%84%D0%B8%D0%BB%D1%8C.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%20%D0%9F%D1%80%D0%BE%D1%84%D0%B8%D0%BB%D1%8C.png)

8\. In the final step, enter a name for the rule in the **Name** field and optionally add a description in the **Description** field. Complete the rule creation wizard by clicking **Finish**:

![](https://moonbot.eu/storage/editor-images/%D0%9F%D0%BE%D0%BB%D0%B5%20%D0%98%D0%BC%D1%8F.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%9F%D0%BE%D0%BB%D0%B5%20%D0%98%D0%BC%D1%8F.png)

9\. Make sure that the created rule now appears in the **Inbound Rules** window:

![](https://moonbot.eu/storage/editor-images/%D0%9E%D0%BA%D0%BD%D0%BE%20%D0%9F%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%B0%20%D0%B4%D0%BB%D1%8F%20%D0%B2%D1%85%D0%BE%D0%B4%D1%8F%D1%89%D0%B8%D1%85%20%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B9%20%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%BE.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%9E%D0%BA%D0%BD%D0%BE%20%D0%9F%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%B0%20%D0%B4%D0%BB%D1%8F%20%D0%B2%D1%85%D0%BE%D0%B4%D1%8F%D1%89%D0%B8%D1%85%20%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B9%20%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D0%BE.png)

#### Configuring Moonbot to receive WebHook commands

To ensure that Moonbot, which acts as a terminal for signal-based trading, correctly receives TradingView signals via a webhook, follow these steps:

1. On the **Settings → AutoBuy** tab, enable the **Detect by TV WebHook** checkbox.\
   To the right of "Detect by TV WebHook", you’ll find the URL and key you need to use to set up alerts from TradingView.\
   You can copy the address to the clipboard by clicking on it, even when it’s hidden. If necessary, you can click "**show**" to display the address and key. If the address and key are visible and you want to hide them again, you can click "**hide**".

![](https://moonbot.eu/storage/editor-images/WebHook-https-W-eng.jpg)

![(dark)](https://moonbot.eu/storage/editor-images/WebHook-https-B-eng.jpg)

2. Make the following basic settings to enable the terminal to read tokens in messages:
   - Enable the **Advanced filter** checkbox;
   - Optionally enable the **Keywords** checkbox if you want to use it as a filter;
   - Enable the **Buy tokens tagged with** checkbox\
     The **Buy tokens tagged with** checkbox is required to buy from messages where the token is specified in the format \*\*\*BTC — for this, you need to add the symbol # before the token, for example: #ALGOBTC. Without this checkbox, the terminal can execute a buy if the message contains only the token, for example: ALGO.
   - The remaining parameters are described on the website in the section [Settings → AutoBuy](https://moonbot.eu/en/documentation/settings-autobuy-tab/settings-autobuy-tab?format=md), you can configure them as needed.

Below are several examples of messages and corresponding settings.

**Case 1 - using keywords and a tag:**

![](https://moonbot.eu/storage/editor-images/%D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%201.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%201.png)

![](https://moonbot.eu/storage/editor-images/WebHook-tags-W-eng.jpg)

![(dark)](https://moonbot.eu/storage/editor-images/WebHook-tags-B-eng.jpg)

**Case 2 - without keywords and a tag:**

![](https://moonbot.eu/storage/editor-images/%D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%202.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%202.png)

![](https://moonbot.eu/storage/editor-images/WebHook-no-tags-W-eng.jpg)

![(dark)](https://moonbot.eu/storage/editor-images/WebHook-no-tags-B-eng.jpg)

There can be many variations of messages and settings; the examples above are provided only for illustration and better understanding. You can configure the settings that are most suitable and convenient for you.

TradingView signals that specify the entry price for a short position in the message are supported; tickers such as BANKUSDT.P are also recognised in commands.

3\) Configure a Telegram strategy as for working with regular signals in Telegram via standard messages, or in the **Main** tab of the strategy enable the **AcceptCommands** parameter to receive trust management commands in messages.

Below is an example of a strategy that you can create yourself by selecting **SignalType: Telegram** and **ChannelName: WebHookTV**. If the message does not contain a keyword, the ChannelKey parameter can be left blank; if the signal and filters contain a keyword, this parameter must be set to that keyword.

![](https://moonbot.eu/storage/editor-images/TradingView-Telegram-W-eng.jpg)

![(dark)](https://moonbot.eu/storage/editor-images/TradingView-Telegram-B-eng.jpg)

Or copy and paste it into the terminal, then configure all required parameters:

\##Begin_Strategy\
Active=-1\
StrategyName=TradingView\
Comment=\
LastEditDate=2026-09-21 11:03\
SignalType=Telegram\
ChannelName=WebHookTV\
ChannelKey=\
AcceptCommands=NO\
SilentNoCharts=NO\
ReportToTelegram=NO\
ReportTradesToTelegram=YES\
SoundAlert=NO\
SoundKind=TurnOn\
KeepAlert=60\
EmulatorMode=NO\
CoinsWhiteList=\
CoinsBlackList=\
MinVolume=0\
MaxVolume=10000k\
MinHourlyVolume=0\
MaxHourlyVolume=1000k\
PenaltyTime=300\
Delta_3h_Min=0\
Delta_3h_Max=100.00\
Delta_24h_Min=0\
Delta_24h_Max=100.00\
Delta2_Type=1h\
Delta2_Min=0\
Delta2_Max=100.00\
Delta_BTC_Min=-5.00000000\
Delta_BTC_Max=5.000\
Delta_BTC_24_Min=-10.00000000\
Delta_BTC_24_Max=10.000\
Delta_BTC_5m_Min=0\
Delta_BTC_5m_Max=10.000\
Delta_Market_Min=-5.00000000\
Delta_Market_Max=10.000\
Delta_Market_24_Min=-10.00000000\
Delta_Market_24_Max=10.000\
UseBV_SV_Filter=NO\
BV_SV_FilterRatio=1.0000\
NextDetectPenalty=30\
GlobalFilterPenalty=0\
MoonIntRiskLevel=2\
MoonIntStopLevel=4\
DeltaSwitch=0\
PriceStepMin=0\
PriceStepMax=10.000\
AutoBuy=YES\
MaxActiveOrders=10\
MaxOrdersPerMarket=1\
AutoCancelBuy=20\
AutoCancelLowerBuy=11k\
BuyType=Buy\
OrderSize=0.001000\
buyPrice=-1.00000000\
Use30SecOldASK=YES\
TlgUseBuyDipWords=NO\
TlgBuyDipPrice=0\
OrdersCount=1\
BuyPriceStep=-1.50000000\
OrderSizeStep=25.00\
CancelBuyStep=0\
JoinSellKey=0\
SellPrice=4.000\
PriceDownTimer=0\
PriceDownDelay=10\
PriceDownPercent=0.2000\
PriceDownRelative=NO\
PriceDownAllowedDrop=0.1000\
UseScalpingMode=NO\
UseSignalStops=NO\
UseStopLoss=NO\
StopLossEMA=0\
StopLossDelay=0\
StopLoss=-3.00000000\
StopLossSpread=0.4000\
AllowedDrop=-15.00000000\
UseSecondStop=NO\
TimeToSwitch2Stop=60\
PriceToSwitch2Stop=0\
SecondStopLoss=-3.00000000\
UseStopLoss3=NO\
TimeToSwitchStop3=60\
PriceToSwitchStop3=-10.00000000\
StopLoss3=-2.00000000\
AllowedDrop3=-14.00000000\
UseTrailing=NO\
TrailingPercent=-1.00000000\
TrailingSpread=0.1000\
TrailingEMA=0\
UseTakeProfit=NO\
TakeProfit=1.0000\
UseBV_SV_Stop=NO\
BV_SV_Kind=TradesCount\
BV_SV_TradesN=100\
BV_SV_Ratio=0.7500\
BV_SV_TakeProfit=-1.00000000\
\##End_Strategy#

#### Configuring Alerts in TradingView

When creating alerts, in the **Actions** section, tick the **Webhook URL** box and, in the field below, paste the URL copied from the Moonbot terminal – which has been configured to trade based on signals from TradingView – under the **Settings → Auto-Buy** tab; also, specify the desired message type in the **Message** field:

![](https://moonbot.eu/storage/editor-images/%D0%93%D0%B0%D0%BB%D0%BE%D1%87%D0%BA%D0%B0%20URL%20%D0%B2%D0%B5%D0%B1-%D1%85%D1%83%D0%BA%D0%B0.png)

![(dark)](https://moonbot.eu/storage/editor-images/%D0%93%D0%B0%D0%BB%D0%BE%D1%87%D0%BA%D0%B0%20URL%20%D0%B2%D0%B5%D0%B1-%D1%85%D1%83%D0%BA%D0%B0.png)

You can include Trust Management commands in messages, which provide more advanced order management capabilities. To use them, enable the **AcceptCommands = YES** parameter in the **Main** tab of the strategy.

For more details about command types, see [Trust Management Via Telegram](https://moonbot.eu/en/documentation/trust-management-and-social-trading/trust-management-via-telegram?format=md).

#### Troubleshooting alerts not triggering

If TradingView signals do not result in trades being executed, please check the following points.

**If the Moonbot terminal log does not contain a message such as:**

WebHook signal: buy #ALGOLBTC Key:

![](https://moonbot.eu/storage/editor-images/WebHook%20signal%20buy%20ALGOLBTC%20Key.png)

![(dark)](https://moonbot.eu/storage/editor-images/WebHook%20signal%20buy%20ALGOLBTC%20Key.png)

**If this message is not present in the log, then:**

1. Check the correctness of the IP address rule configuration in Windows Firewall;
2. Check whether the **Detect by TV WebHook** checkbox is enabled in **Settings → AutoBuy** in the terminal;
3. Verify the correctness of the Webhook URL used in TradingView, copied from **Settings → AutoBuy** in the terminal.

**If this message is present in the log, then:**

1. Check the correctness of the strategy configuration in the terminal;
2. Check whether the strategy is enabled and whether auto-detection is active (**Autodetect: ON**);
3. Check the settings in the terminal under **Settings → AutoBuy**;
4. Verify the correctness of the message in TradingView.

## Navigation

Path: [Main](https://moonbot.eu/en?format=md) / [Moonbot PRO](https://moonbot.eu/en/moonbot-pro?format=md) / Pro-version additional modules

Parent section: [Moonbot PRO](https://moonbot.eu/en/moonbot-pro?format=md)

Previous: ["Load Charts" Extension ](https://moonbot.eu/en/moonbot-pro/modules/chart-loading?format=md)

Next: ["Moon Streamer" Extension](https://moonbot.eu/en/moonbot-pro/modules/moon-streamer?format=md)

## Related

- ["Moon Streamer" Extension](https://moonbot.eu/en/moonbot-pro/modules/moon-streamer?format=md)
- ["BackTest" Extension](https://moonbot.eu/en/moonbot-pro/modules/backtest?format=md)
- ["Arbitrage Prices" Extension](https://moonbot.eu/en/moonbot-pro/modules/arbitrage?format=md)
- ["Moon News" Extension](https://moonbot.eu/en/moonbot-pro/modules/moon-news?format=md)
- [MoonBonus](https://moonbot.eu/en/moonbot-pro/modules/moonbonus?format=md)
