EA Setup – MetaTrader 4

Click ‘Download’ in the ‘Download EA’ section in Dashboard page
image012 1.jpg

2. Place the EA in Experts folder

Click ‘Open data folder’ in MT4
image001.jpg

Click on MQL4 in Data Folder; then click on Experts to place the file in Experts folder
image002.jpgThen click on Experts in MQL4 folder; paste the EA file in Experts folder
image003.jpg
Paste the EA file in Experts folder
image004.jpg

3. 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

4. Enable Auto Trading

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

5. Click refresh on EA section in MT4

TradingView Link EA should be appeared.
Note: You only need to run the EA on one of the charts with any timeframe in order to trade all symbols in MT4.
image007.jpg

6. 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.

7. Set up webhook Password

You need to set up webhook password first before sending alert messages from Telegram / TradingView. You can generate this password from the dashboard's settings section. Simply click on 'Add Secret' to generate the password.
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.

8. Set up webhook on TradingView Alert

If you would like to automate trading signals from TradingView strategies, you can copy the webhook URL in dashboard to TradingView alert section. For the syntax of TradingView alert messages, please refer to ‘Components of Alert Message’ section.
image010.jpg

You may link your webhook ID with our Telegram bot in order to send and view trading messages via our bot. Type following message to our bot to activate it for your personal use:

/setup Webhook ID Password of Webhook ID

Pasted image 20240423234322.png

Following message will be replied if the webhook ID and password are correct:
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

10. Alert Sharing

The alert sharing feature works for MT5 to MT5 / MT4 to MT4 account only. The availability of this feature is limited to the Pro plan. This feature allows you to share alerts sent to the webhook ID of the Pro plan with specific shared targets. You can configure these shared targets within your Pro plan account by clicking on the 'add' option in the Shared Target field found in the Alert Sharing section.

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