EA Setup – MetaTrader 4

1. Select your MT4 Webhook

Choose the MT4 webhook you want to configure.
image47.jpg

On the Dashboard page, go to the ‘Download EA’ section and click ‘Download'.
image012 1.jpg

3. Place the EA in Experts folder

In MT4, click ‘Open data folder'.
image001.jpg

Navigate to MQL4, then open the Experts folder.
image002.jpg

image003.jpg

Copy and paste the EA file into the Experts folder.
image004.jpg

4. Allow WebRequest for listed URL

Click “Tools” → “Options”.
Tick 'Allow automated trading', 'Allow DLL imports' and add following URL:
https://tradingviewlink.com

image43_mt4.jpg

5. Enable Auto Trading

Ensure that ‘AutoTrading’ button is in green.
image006.jpg

6. Refresh the EA Section in MT4

Click ‘Refresh’ in the EA section. The TradingView Link EA should appear.
Note: Run the EA on just one chart (any timeframe) to trade all MT4 symbols.
image007.jpg

7. Set up EA and Input Parameters

Tick ‘Allow live trading’ and ‘Allow DLL imports’
image008.jpg
For ID please input your webhook ID for TradingView Link. For other parameters, please refer to the ‘Documentation’ section.
image009 - Copy1.jpgimage012copy.jpg
For example, it is needed to input 65e5a5fc5ba53fa8264bb08f in the webhook ID field.

8. Create a Webhook Password

Before sending alert messages from Telegram or TradingView, you need to generate a webhook password. In the Dashboard’s settings, click ‘Add Secret’ to create it.
image27-1.jpg

image28.jpg
Note: Please save the password as it will not be shown again. If you forget the password, you can delete the password and generate a new one. Changing the password will require setting up the Telegram bot and TradingView alert again.

9. Add the Webhook to TradingView Alerts

To automate TradingView strategy signals, copy the webhook URL from the Dashboard into the TradingView alert section. For the syntax of TradingView alert messages, please refer to ‘Components of Alert Message’ section.
image010.jpg

You may choose to link your webhook ID with our Telegram bot to enable tracking of alert records from TradingView through TradingView Link to MetaTrader, as well as to send order execution instructions directly from Telegram to MetaTrader. We recommend considering this feature for its efficiency in monitoring alerts and streamlining trade execution. To proceed, please send the following command to the bot:
/setup Webhook ID Password of Webhook ID

Pasted image 20240423234322.png

If correct, you will get a confirmation reply:
image014.jpg

Note: Once setup, it is not needed to fill in password for webhook ID when sending trading messages from Telegram

Example:
image016.jpg

Should you manage multiple webhooks and wish to configure them within a single Telegram account, you may create a Telegram Group for each webhook, add the TradingView Link Telegram bot to the group, and designate it as an administrator to grant it permission to access and read messages. Subsequently, repeat the aforementioned Telegram bot setup process for each webhook.
image49.jpg

11. Alert Sharing (optional)

Available only on the Pro plan, this feature lets you share alerts between MT5-to-MT5 or MT4-to-MT4 accounts.
Configure shared targets in the Alert Sharing section of your Pro plan account by clicking ‘Add’ in the Shared Target field.

image22_00.jpg
image22copy.jpg
You will get a shared target ID. Input the shared target ID on the TradingView Link EA in the MT4 trading account that you would like to share your signal to:
image23copy.jpg
Signals to the Pro account will be shared to the shared target onwards once setup.
Trading account with Pro account webhook:
image020_main webhook.jpg
Trading account with shared target ID:
image021_shared webhook.jpg

To stop the alert sharing to this target, click ‘Remove’ in the Shared Targets field.
image24copy.jpg