Tag Archives: mt4

How to Find Your Broker’s Server IP

metatrader

In trading latency is important, regardless if you’re trading from your home computer of from a forex vps. Have you ever wondered how you can find out the network latency between your trading platform and your broker’s servers? Well, if you have I have the answer! All you have to do is do a quick ping test (ping command sends ICMP packets to the server and times how long it takes the server to respond), but before you can ping the server you have to know it’s IP address. But most of the times you will not know the actual IP address of your broker’s server(s). Some brokers will tell you some will not, and some will make it easy to find out and some will not. So you’re going to have to take matters into your own hands and find out the IP for yourself.

I’ll show you in this brief tutorial how you can do so.

The first thing I suggest you do is ensure that you have no other web browsing or any other internet network connections running. I’d suggest either restarting your machine and close every program that uses the internet connection, or you can just close every internet related program. Once you’ve done that run your broker’s MT4 / MT5 platform, but make sure you start ONLY that. This will ensure that later on when we search for the IP we will have more accurate results.

OK, so step:

1) Ensure that you are connected successfully to your broker’s server

2) Open up a windows “command prompt”

Click on the Start Menu and go to All Programs –> Accessories –> Command Prompt

You can also (in windows 7 and windows vista) just type in “cmd” in the search box visible once you click on the start menu.

If you’re running windows xp you can just click on the start menu, go to run, and in the run box type “cmd” and hit enter or press ok.

3) In the command prompt type the following command: “netstat -n” (make sure you leave a space after netstat and before “-n”)

4) Now you should get a listing of all the network connections currently open on your computer.The IP address of your MT4 platform should be listed underneath the “foreign address” heading. MetaTrader uses port 443 for communication so next to the IP you will see “:443”. The IP address with the “443” port listed there is the IP address of your broker’s MetaTrader server. See the example below:

Now I should qualify my previous statement about the use of port 443. Sometimes brokers WILL use other ports (for example 80, 923, 1950, etc).

Now you see why I suggested that you open only MT4 and nothing else internet related 🙂 It makes it that much more simple.

5) Now if you did not follow my advice and opened ONLY the MT4 platform and no other applications that make use of the internet connection, then there is an additional step you have to follow.

Close the MT4 platform and go back to the command prompt window and type the “netstat -n” command one more mime. Compare the result with the previous step’s result and note the IPs that are MISSING. The missing IP in this case is the one that belongs to your broker’s server. See this example:

Beware that sometimes two different brokers can have the same IP address. This most likely is due to one of the broker being what’s known as a “whitelabel” of the other one (or vice versa). This means they do not actually have their own server(s). You can think of the whitelabel broker as a sort of forex broker equivalent of a “reseller.”

I must thank the people at the ECN FX Robot website for the inspiration for the article and the images.

If you have some questions or need further clarifications on the process outlined above feel free to leave a comment on this post.

Until next time,

Happy trading.

Alan out.

Metatrader Spread Recorder Indicator

forex spread recorder

Hi everyone. I just came across a neat metatrader 4 indicator that records the spread history of any currency pair you choose. Basically the way it works is you attach it to the chart of any given currency pair you prefer and it will record to a file every change in that currency pair’s spread (difference between bid and ask) until you tell it to stop recording.

This can be a really useful tool to keep an eye on your broker if you suspect that they’re doing something fishy like artificially raising the spread at key times during specific trading sessions, or it can of course be used as a mere curiosity and research tool.

For me this indicator is most useful in finding whether a particular broker is well suited for the Asian session scalper EAs that I use.

You can get this indicator by visiting the thread I created on the Forex Nirvana forum. You have to register to download the indicator, but worry not, the registration process is really quick and easy. Here is the link you need:

http://www.forexnirvana.com/f16/metatrader-spread-recorder-indicator-2159/

Hope you find this post useful!

Cheers,

Alan

Quick way to install MT4 on Mac OS X using Crossover

silver apple logo

Hey everyone. Some people have been reporting on my “how to install MT4 on Mac OS X” post that the latest version of MT4 cannot be installed or doesn’t work properly with Crossover. Well to be honest guys I stopped using MT4 on OS X, so I haven’t been keeping up to date on this subject. However one visitors commented that he found a solution, and it is deceptively simple and easy. Apparently all you have to do is use their “Cross Tie” program.

Visit this link:

http://www.codeweavers.com/compatibility/browse/name/?app_id=2157

Then click on the “Install via Cross Tie” link.

I hope you find this helpful.

Thanks goes out to a visitor that goes by the name of “Kong” for sharing this info with me, and eventually with you all via me.

Cheers,

Alan

Forex News Calendar MT4 Indicators

Hi everyone. I’d like to share with you two very useful indicators that show you the upcoming forex news releases. One is called FFCal and the other Plot News (version 3.0 – last and final release).

Install instructions for Plot News:

1. Download and unzip the News v303.ZIP file into your MT4 folder, unzipping the files within to the relevant sub-folders, and overwriting any existing files of the same name.
2. Restart MT4.
3. Run the Calc Timeshifts.EX4 script if you wish to have the time offsets calculated automatically for you.

For further instructions, additional information, screenshots, release history, etc, please read the ‘Operating instructions’ document (it’s in the ZIP file).

OR you can run the automated install program located in the NewsSetupv310.zip file.

Install instructions for FFCal:

Copy the FFCal.mq4 file into your MetaTrader 4 “indicators” directory, restart MT4, attach it to the chart.

In order to use it, you need to turn on DLL Imports in your Metatrader platform options, because it calls a DLL to get your timezone, as well as another to read the ForexFactory web page to get news information. (Be aware it will write out .XML files to your expert/files folder).

This is how one of these forex news calendar indicators looks like when attached to your MT4 chart:

forex factory calendar

You can find them both over at the Forex Nirvana forum:

http://www.forexnirvana.com/f16/forex-news-calendar-indicators-2109/

Enjoy!

P.S. You have to register for the forum in order to download the files attached to that forum post.

Huge list of MetaTrader 4 platform download links for various forex brokers

Hi everyone. I had to go out and scour the internet to find the MetaTrader 4 platform download links of various popular MT4 brokers, and I figured since I did all that work why not share the list with my dear blog readers. Please bear in mind that this list of all the brokers that _I_ consider to be the “most popular.” I clearly don’t know ALL of them so if you’re a representative of a brokerage firm and by any chance you’d like your MT4 platform download link to be present in this list just give me a shout or post a comment.

The list follows below: Enjoy!

1: Alpari UK

http://www.alpari.co.uk/files/site_uk/000software/MT4_set_up.exe

2: Alpari US

http://static.alpari-us.com/exe/aus4setup.exe

3: ATC Brokers

http://dl.dropbox.com/u/9324322/mt4ecn.exe

4: CMS Forex

http://www.efxnow.com/mt/forexmt4.exe

5: FOREX.com

http://www.efxnow.com/mt/us/forexmt4.exe

6: FX Solutions

http://download.webtradingonline.com/MetaTrader/mt4setup.exe

7: FXDD

http://global.fxdd.com/en/download.html?no_cache=1&download=mt4setup.exe&did=1

8: CitiFX Pro

http://www.metaquotes.net/files/citifx/cfx4setup.exe

9: GFT Forex

http://files.metatrader4.com/gftforex/gft4setup.exe

10: InterbankFX

https://www.ibfx.com/Content/Downloads/MT4-US.exe

11: FXCM UK

http://files.metatrader4.com/fxcm/fxcm_lc4setup.exe

12: Admiral Markets

http://www.fxservice.com/custom/downloads/MT_AM/mt4setup.exe

13: HY Markets

http://www1.hymarkets.com/exe/hyt4setup.exe

14: PFGFX

http://pfgfx.net/uploads/soft/pfg4setup.exe

15: MF Global FX Canada

http://www.metaquotes.net/files/mfglobal/mfg4setup.exe

16: Pepperstone

https://pepperstone.com/files/mt4setup.exe

17: GO Markets

http://www.metaquotes.net/files/gomarkets/gt4setup.exe

18: Vantage FX

http://files.metatrader4.com/vantagefx/vfx4setup.exe

19: ACM

http://mt4.ac-markets.com/acm4setup.exe

20: MIG Bank

http://www.migbank.com/fileadmin/download/software/mig4setup_classic.exe

21: FX Pro

https://direct.fxpro.com/dwn/fxpro4setup.exe

22: Markets.com

http://www.markets.com/sites/all/files/downloads/all-languages/winclient/meta_trader_setup.exe

23: Tadawul FX

http://www.metaquotes.net/files/tadawulfx/tfx4setup.exe

24: AVA FX

http://www.metaquotes.net/files/avafinancial/amt4setup.exe

25: FXCBS

http://www.metaquotes.net/files/fienexgroup/fg4setup.exe

26: FXOpen

http://www.fxopen.com/Download.aspx?name=fx4setup_ECN.exe

27: BrocoTrader

http://files.brocompany.com/soft/bc4/bc4setup_trade.exe

28: IamFX

http://www.iamfx.com/files/iamfx4setup.exe

29: FinFX

http://www.finfx.fi/download-mt4setup.php

30: Easy Forex

http://download.easy-forex.com/mt4/mt4setup.exe

31: AAAFx

http://www.aaafx.com/Downloads/mt4setup.exe

32: Oanda

http://fxtrade.oanda.com/metatrader/mt4setup.exe

How to disable ‘Auto-Update’ in MT4

metatrader

Edit: It seems starting with build 482 the makers of MT4 (MetaQuotes) decided to put the platform update code right in the MT4 executable program itself so the platform now updates itself AUTOMATICALLY. I find this to be a bad idea and no doubt many of you do as well. I can go into a few reasons why, but I shall save that for later. As far as I know there is no way to disable this and prevent the platform from automatically updating (and thus restarting) itself. If I find something I will post an update here or in a new post.

Hello fellow traders.

I’m not sure how many of you have wondered if there is a way to get rid of MT4’s automatic auto update notification, but if you wish to permanently disable it I have found a solution. The most common reason I can think of why anyone would wish to do this is to ensure that your EA or backtesting platform is always running a specific version of MT4. This could be necessary for compatibility reasons or maybe you just don’t want to be bothered every time you load up the platform.

There is of course a downside to disabling the auto update feature. The main negative point is that you’ll never receive the latest bug fixes and security fixes that get incorporated into newer version of MT4. If you stick with one version forever you’ll have to live with all the bugs and potential problems that particular version of MT4 has.

But if this is something you are sure you wish to do, here is how you do it:

1) Open up the folder where you installed the MetaTrader 4 platform (typically it is located in c:\program files\)

2) Find a file called LiveUpdate.exe

3) Rename that file. It can be any name just make sure you don’t rename it to something you won’t recognize later. For example, I renamed mine to “LiveUpdate.exe-” (without the quotes obviously)

This will permanently disable MT4’s auto -update feature. Later on if you wish to upgrade the platform to the latest version available from your broker just rename the file back to LiveUpdate.exe and restart the platform.

That should do it!

Alan out.

Cheers!

How MT4 Backtesting Modeling Quality Is Calculated

Hi everyone. Today’s post is sort of an educational informational tidbit for all you MT4 junkies out there. One of the somewhat obscure questions I see on various forum is by what formula is the modeling quality calculated by the MT4 backtester. I’ve got the answer, and here it is:

ModellingQuality = ((0.25*(StartGen-StartBar) + 0.5*(StartGenM1-StartGen) + 0.9*(HistoryTotal-StartGenM1)) / (HistoryTotal-StartBar))*100%;

where:

  • HistoryTotal – the total amount of bars in history;
  • StartBar – the number of bar with which the testing was started. Modeling starts at at least 101st bar or the bar corresponding with the initial date of test limits;
  • StartGen – the number of bar with which the modeling on the nearest timeframe started;
  • StartGenM1 – the number of bar with which the modeling on minutes started;

at that:

  • The distance between the beginning of modeling of databases for the nearest timeframe and the beginning of modeling on the nearest timeframe data has a weighting factor of 0.25;
  • The distance between the beginning of modeling on the nearest timeframe data and the beginning of modeling on minutes has a weighting factor of 0.5;
  • The distance between the beginning of modeling on minutes and the end of history data has a weighting factor of 0.9;

The following colors are used in the color diagram:

  • Lime – modeling on minutes
  • Deeper green colors show modeling on large timeframes
  • Pink color – pure fractal modeling of the databases of smaller timeframe
  • Gray color – modeling limitation by date

From the formula you can see, that 90% is the maximum modelling quality possible. However if you give the backtester BETTER (higher quality) data such as raw tick data you can increase the modeling quality to 99%. Essentially the MT4 backtester interpolates price data from M1 chart data. If you give it TICK DATA it naturally has MORE data to work with and hence the accuracy of your backtest will increase.

I’ve got a post that teaches you step-by-step how to get 99% modeling quality. You can check out that post over here:

http://alansforexblog.com/2010/06/14/metatrader-backtesting-how-to-get-99-modeling-quality/

This method however does have some limitations. One that comes first to mind is that due to a file size limitation with MT4’s backtester you can run a backtest only is 1 to 2 year chunks. See the comments section of the above link for details.

Ok, I’m out.

Cheers,

Alan

MT4 Backtesting & Optimization

Forex Trading

MT4 Backtesting & Optimization

Here is a visual tutorial (aka HOWTO) on how to run optimizations and backtests with MetaTrader 4 (MT4). This is but one method of backtesting! There is another method that you can use but which involved downloading backtesting data NOT from your broker but from MetaQuotes (the makers of MetaTrader 4 – MT4) directly. For a guide on how to use this other method please see this post of mine instead.

I hope you find the guide useful and if you do feel free to give me a shout out by leaving a comment. Here goes the guide:







*Due to the limited screen real estate my current blog template affords I had to reduce the size of the images a bit. So if you find that you cannot clearly read a particular item in this visual guide please click on any of the images for a full screen version*

By the way in case you are wondering the EA’s backtested in this guide come from Bogie Enterprises.

That about does it for this post.

Have fun backtesting! Hey don’t forget if you find that elusive holy grail EA, send me a copy! 🙂

Cheers,
Alan

http://alansforexblog.com