---
id: tradingview-webhook
title: "\"TradingView WebHook\" Extension"
section: modules
url: https://moonbot.eu/en/moonbot-pro/modules/tradingview-webhook
locale: en
status: published
updated_at: 2026-08-25T00:05:31+00:00
---

# "TradingView WebHook" Extension

### What are webhooks?

Webhooks allow you to send a POST request to a specified URL each time an alert you set 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 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 in Windows Firewall. To do this, follow these steps:

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

![Введите wf msc](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:

![Брандмауэр Windows в режиме повышенной безопасности](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:

![Правила для входящих подключений 1774536232](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)

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)

![Пункт Протокол и порты](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)

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

![IP адрес удаленной подсети](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.23834.212.75.3054.218.53.12852.32.178.7After 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)

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)

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)

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)

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)

#### Configuring Moonbot to receive WebHook commands

To receive WebHook commands, perform the following steps in the Moonbot terminal:

1) In Settings → AutoBuy, enable the Detect by WebHook checkbox:

![Галочка Detect by WebHook](https://moonbot.eu/storage/editor-images/%D0%93%D0%B0%D0%BB%D0%BE%D1%87%D0%BA%D0%B0%20Detect%20by%20WebHook.png)

To the right of Detect by WebHook, the URL is displayed — this URL must be used when configuring alerts in TradingView.

2) Configure the following parameters so the terminal can parse tokens in messages:

a. Enable the Special filter checkbox;

b. Optionally enable the Keywords checkbox if you want to use it as a filter;

c. Enable the Buy coins with tags checkbox

The Buy coins with tags 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.

d. The remaining parameters are described on the website in the section Settings → AutoBuy, you can configure them as needed.

![Галочка Спец. фильтр](https://moonbot.eu/storage/editor-images/%D0%93%D0%B0%D0%BB%D0%BE%D1%87%D0%BA%D0%B0%20%D0%A1%D0%BF%D0%B5%D1%86.%20%D1%84%D0%B8%D0%BB%D1%8C%D1%82%D1%80.png)

Below are several examples of messages and corresponding settings.Case 1 - using keywords and a tag:

![Вариант 1](https://moonbot.eu/storage/editor-images/%D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%201.png)

![Вариант 1 Настройки](https://moonbot.eu/storage/editor-images/%D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%201%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B8.png)

Case 2 - without keywords and a tag:

![Вариант 2](https://moonbot.eu/storage/editor-images/%D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%202.png)

![Вариант 2 Настройки](https://moonbot.eu/storage/editor-images/%D0%92%D0%B0%D1%80%D0%B8%D0%B0%D0%BD%D1%82%202%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B8.png)

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.

Note that the terminal will not execute a buy for messages with a token in the format “ALGOBTC”: you must either remove “BTC” or add the # tag, as described above.

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:

![Стратегия Telegram](https://moonbot.eu/storage/editor-images/%D0%A1%D1%82%D1%80%D0%B0%D1%82%D0%B5%D0%B3%D0%B8%D1%8F%20Telegram.png)

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

##Begin_StrategyActive=-1StrategyName=TradingViewComment=LastEditDate=2026-08-24 16:28SignalType=TelegramChannelName=WebHookTVChannelKey=AcceptCommands=NOSilentNoCharts=NOReportToTelegram=NOReportTradesToTelegram=YESSoundAlert=NOSoundKind=TurnOnKeepAlert=60EmulatorMode=NOCoinsWhiteList=CoinsBlackList=MinVolume=0MaxVolume=10000kMinHourlyVolume=0MaxHourlyVolume=1000kPenaltyTime=300Delta_3h_Min=0Delta_3h_Max=100.00Delta_24h_Min=0Delta_24h_Max=100.00Delta2_Type=1hDelta2_Min=0Delta2_Max=100.00Delta_BTC_Min=-5.00000000Delta_BTC_Max=5.000Delta_BTC_24_Min=-10.00000000Delta_BTC_24_Max=10.000Delta_BTC_5m_Min=0Delta_BTC_5m_Max=10.000Delta_Market_Min=-5.00000000Delta_Market_Max=10.000Delta_Market_24_Min=-10.00000000Delta_Market_24_Max=10.000UseBV_SV_Filter=NOBV_SV_FilterRatio=1.0000NextDetectPenalty=30GlobalFilterPenalty=0MoonIntRiskLevel=2MoonIntStopLevel=4DeltaSwitch=0PriceStepMin=0PriceStepMax=10.000AutoBuy=YESMaxActiveOrders=10MaxOrdersPerMarket=1AutoCancelBuy=20AutoCancelLowerBuy=11kBuyType=BuyOrderSize=0.001000buyPrice=-1.00000000Use30SecOldASK=YESTlgUseBuyDipWords=NOTlgBuyDipPrice=0OrdersCount=1BuyPriceStep=-1.50000000OrderSizeStep=25.00CancelBuyStep=0JoinSellKey=0SellPrice=4.000PriceDownTimer=0PriceDownDelay=10PriceDownPercent=0.2000PriceDownRelative=NOPriceDownAllowedDrop=0.1000UseScalpingMode=NOUseSignalStops=NOUseStopLoss=NOStopLossEMA=0StopLossDelay=0StopLoss=-3.00000000StopLossSpread=0.4000AllowedDrop=-15.00000000UseSecondStop=NOTimeToSwitch2Stop=60PriceToSwitch2Stop=0SecondStopLoss=-3.00000000UseStopLoss3=NOTimeToSwitchStop3=60PriceToSwitchStop3=-10.00000000StopLoss3=-2.00000000AllowedDrop3=-14.00000000UseTrailing=NOTrailingPercent=-1.00000000TrailingSpread=0.1000TrailingEMA=0UseTakeProfit=NOTakeProfit=1.0000UseBV_SV_Stop=NOBV_SV_Kind=TradesCountBV_SV_TradesN=100BV_SV_Ratio=0.7500BV_SV_TakeProfit=-1.00000000##End_Strategy#

#### Configuring Alerts in TradingView

When creating alerts in the Actions section, enable the Webhook URL checkbox and paste the URL copied from the Moonbot terminal in Settings → AutoBuy into the field below, and also specify the required message format in the Message field:

![Галочка URL веб хука](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.

#### Troubleshooting alerts not triggering

Check whether the following message appears in the Moonbot terminal log when an alert is received:

WebHook signal: buy #ALGOLBTC Key:

![WebHook signal buy ALGOLBTC Key](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 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.
