Multi Currencies with 1 EA
-
Hi All,
An excellent EA creator. The best I have used.
Is it possible to wright a EA that can trade multiple currencies all at ones?
Regards
Wapen -
Well, MT4 cannot backetst multiple currencies by itself. Otherwise you can create and manipulate orders from another currencies, but being under the ticks flow of the current one.
-
__Well, MT4 cannot backetst multiple currencies by itself. Otherwise you can create and manipulate orders from another currencies, but being under the ticks flow of the current one.[/quote
sjb199o]I do understand that you will not be able to back-test. But to have 1 EA looking at 10 currencies will requite a lot less computer power, compares to 10 EA running.
wapen
-
I'm not sure about that. Normally the EA receives OnTick (and other) events for the currency where it is added on - when a tick comes for the current currency, OnTick() is executed.
In theory, if you really want to control all currencies the same way under the same EA, you should have some infinite cycle to detect tick events by all currencies. And this is not impossible, but when you have to work with some currency, all the others will wait. This is called "blocking".
Actually I don't know what will be the behaviour of such an EA, I never tried this. This is something that I had an idea to make, but it's still only an idea. I guess that if you have multiple EAs they does not wait for each other.