maybe someone can help me out with answering some question about the above mentioned topic.
My plan is to go live with my EA in February and I want to load my MT4 platform on a server to make sure there’s a good and reliable connection.
What I need to know is how do I manage to have my EA run on different currency pairs in different accounts. I asked my broker and the company offering a VPS - none of them could answer my question.
So if I start in February and put my MT4 platfrom on a server and let the EA run on this pair, what would I have to do (or what would be the best solution) to add further pairs each month. I’d like to have a separate account for each pair, so I can better see the results for each pair.
I guess it’s not required to install a MT4 platform for each currency pair as this would probably take too much “space” and cause a lot of work traffic.
Well, you can run an EA on individual charts within one instance. The standard MT4 doesn’t handle multiple accounts, so you have to start and MT4 instance for each account anyway…
You could create a list (array) of pairs that your EA will work with as part of your trade “conditions”…and as you are ready to add pairs, you just update the array.
As for analyzing the results, you can just take your trade history and dump it into excel or some spreadsheet and sort it etc, or hook up your account to MyFXBook or some such service.
Well, thanks so far for your answers, but what exactly is an instance? Starting an instance for each account - is this the same as loading a MT4 platform on the server?
Sorry for asking, but I have no idea about this technical background and feel pretty stupid.
It’s an EA I’m having an expert from the mql community program for me. Baiscally, it’s pretty much based on the 6 13 62 trading model, but I’m only using a 62 ema on the H1 time frame to detect the trend direction. Currently I’m using these settings for the xpMA EA and it works pretty well, so I can say that it’s profitable. You won’t be making tons of pips with only one currency pair, but if you let this ea run on multiple pairs, you can expect an average of 100-200 pips/pair in a month.
No worries. I just call it an instance due to my background… An instance is everytime that you have an MT4 open. So if you open it 4 times at the same time, you have 4 instances.
When you have multiple instances, it is needed to rename the .exe file from MT4. I am not sure, but I recall that MT4 terminal.exe can only run one instance, so renaming is required. That way you know which instance you are starting. So let us take the 4 instances. You copy the MT4 directory 4 times, each time renaming the directory and the instance file. Make shortcuts of the exe files and place them on your desktop. Each instance will have its own envorinment (incl settings and so). I have two instances open per 1024Kb memory vps. three is possible, but you want to keep some head space.
The exe file I am talking about is called: terminal.exe (change to eg MT4_Hubinator1.exe or MT4_0842231256.exe)
thanks for the info - now this is some technical background I think I can do something with. Will try out if it works with the instance on my computer.
Ok, followed your instructions and created a second instance. But in this case it’s required to open another account. However, I’m wondering a little if there’s any possibility to reduce the memory needed when copying the MT4 directory. In my case each instance would “consume” 128 MB.
I am a bit confused. Didn’t you say: “in different accounts”? So I assumed that you have multiple accounts. You can run multiple pairs on one instance, but not multiple accounts. The solution I gave applies to both.
Well if you are only going to run pairs, you can do with one instance.
I wouldn’t worry too much about the memory (it looks like you are talking about HDD space), more about the processor. Monitor your processor usage. But you can clean up the second directory, by deleting unneeded scripts and to keep the bar history limited. My two instances use 50 MB RAM on my server and 2% CPU (however it is the weekend, but max. 5%).
Currently it wouldn’t make sense to test it as I have just received a demo version without full functionality; e.g. no initial stop loss, no trailing stop, trades are not opened based on bid price, but rather on closing price and there are two moving averages available (I only asked for one).
I will have to send my programmer some modifications and see if the job can be done in a week or so. Maybe then, if it runs as designed I will send it to you.
But meanwhile you can try out the xpMA expert advisor. I have the indicator and ea attached, so you can play around with it.