Sunday, March 4, 2012

Running Multiple Copies of MT4

How do you synch the files (experts, scripts, etc.) between multiple copies of MT4?

Where do you run your line MT4? …and your demo?  How fast does the machine need to be?

Here is my routine and set-up, to give you something to think about.

I have two computers. 

1. One I use on a day to day bases to check email, surf, do MT4 coding and back testing, general stuff.  It’s blazing f’n fast with RAID hard drives.  Windows 7, AMD IIX4 3.2Ghz, 8Gb ram, 64 bit OS.  I don’t need this speed for this PC but I needed a new PC, the price was right.

2. Second PC is an old P4 running XP, 3.0Ghz and 4GB ram.  I hate using it as a day to day, it’s to slow and can’t keep up with me.  But as a trading machine sitting in the corner it’s quite happy.  I also run Winamp on it 24/7 with an FM transmitter PCI card in it so I have tunes all over my house.

3. NAS – Network Area Storage – 1TB of redundant drives.  This is where the MP3’s are that played on the second computer.  This is where I store my MT4 files for back-up and synching.

Here’s the drill:

Saturday – On computer 2 – run cCleaner to get rid of old files, and a registry check, defrag the hard drive, run a virus scan full power down, power up.  Virus scanner doesn’t check my trading directories, I excluded them.  All files to this machine come from computer 1 anyways, and they get checked there.  I use the free Microsoft virus scanner.

Sunday – set-up trades on my live accounts running on computer 2.  Also set up some trades on demo account running on computer 1.  I also run a demo on computer 2 that copies trades from other traders, checking to see if this is worthwhile.

During the Week – might do some coding on computer 1.  Once I’m done, I run Microsoft SyncToy.  It copies all the files in my demo MT4 coding platform to the NAS for storage.  Then it copies those files to computer 2 to all the MT4 platforms running there.  I have to run SynchToy twice for the changes to make.

To format my code before I am finished with it, I do this:

Downloaded AStyle.exe, a free open source formatter.  Put it in experts and scripts directory.  Then I made a batch file and put it in there as well.  To format my code, double click the format.bet file and away you go, takes less than a second.  Here is the batch file called “format.bat”

ECHO OFF

ECHO ...............................................

ECHO THIS WILL FORMAT ALL MQ4 FILES IN THIS DIRECTORY

ECHO ...............................................

pause

AStyle.exe -A2 -s3 --mode=c *.mq4

ECHO ...............................................

ECHO CHECK RESULTS AND PRESS ANY KEY TO EXIT

ECHO ...............................................

pause

Here is the interesting part, how much processor does the MT4 take up?  It depends on how many ticks are coming in, that triggers your EA’s to execute.  Here’s a short video on using a tick simulator while running several MT4’s with EA’s and how the number of ticks per second causes the processor load to increase.

No comments:

Post a Comment

Let's hear what you have to say!

Disclaimer

The information presented on this site is for educational and entertainment purposes only. This site contains no suggestions or instructions that you must follow, do your own research and due diligence before committing your cash to the markets. Your on your own.