How to add a URL to allowed URLs list in MT4

This article is written to give simple, step-by-step instructions on how to add a URL to the list of allowed URLs in your MT4 platform. This is a mandatory step before your MT4 can communicate with an outside website. Many times, EAs or indicators want to send or receive information from a URL and it works only if the URL is added to the list of allowed URLs.

Most common statement in MQL4 that needs to setup to be done to work is webrequest(…) and you can find more information/syntax for this at the MQL4 official website. This statement will not work until you have added the URL it is trying to communicate with to the list of allowed URLs.

Here are the steps:

Step 1: Start your MT4 platform by double-clicking your MT4 platform icon on your desktop or running the .exe file of the corresponding MT4 if you know where it is located on your machine.

Step 2: Once opened, your MT4 will look something similar to the screenshot below (it will look slightly different depending on how your default profile is setup. Now find the drop-down menu that says “Tools”. Look the following screenshot for reference.

Step 3: Click on the “Options” link under the “Tools” menu. See the screenshot below for reference.

Step 4: Once you click on “Options” you should see a screen that looks something like the one below. Now look for the tab that says – “Expert Advisors”. See the screenshot below for reference.

 

Step 5: Once you click on “Expert Advisors” tab, something similar to the below screenshot should show up. Look for the checkbox that says “Allow WebRequest for listed URL:”. This is shown with red arrow in the screenshot below.

 

 

Step 6: Now make sure you have checked the checkbox that says “Allow WebRequest for listed URL:” and then double-click on the  “+” sign in the bigger checkbox below. This should open up a text box for your to enter the URL that you want to add to this list. See the screenshot below for reference.

 

Step 7: Last thing to do now is to enter the URL that you want to add to this list and then click on OK. See the screenshot below for reference.

ALL DONE! Thank you for reading. Hope you find this useful.

 

 

8206 Total Views 9 Views Today

Leave a Reply

Risk warning: Before deciding to participate in the Forex market, you should carefully consider your investment objectives, level of experience and risk appetite. Most importantly, do not invest money you cannot afford to lose. There is considerable exposure to risk in any off-exchange foreign exchange transaction, including, but not limited to, leverage, creditworthiness, limited regulatory protection and market volatility that may substantially affect the price, or liquidity of a currency or currency pair. More over, the leveraged nature of forex trading means that any market movement will have an equally proportional effect on your deposited funds. This may work against you as well as for you. The possibility exists that you could sustain a total loss of initial margin funds and be required to deposit additional funds to maintain your position. If you fail to meet any margin requirement, your position may be liquidated and you will be responsible for any resulting losses.