MultiCurrency
-
Hiho,
first i will say that fxdreema is a really powerfull product and seems to cover all aspects an EA can desire. One thing i haven't found or seems to be a little complicated to program is to have an EA that can trade multiple currencys.
I saw the "Set 'CurrentMarket' for the next blocks" modul but there i can only enter fixed pairs. I need to get all pairs the broker offers and then cycle through them. Is there a modul i have overlooked or must i program it 'by hand'?
many thx in advance
hila -
There is no such block currently, you are the first one asking for that. Is there something specific that you want to get by going through all pairs?
-
Hi,
thx for the reply. I'am really surprised that its the first request for a multipair block. The advantage is; when you have a strategy you can set the EA onto one chart and let it run. Till now you must set it up to every chart which can really drop the performance of your pc.
I think it can be done when there would be a function which collects all possible pairs and puts them into an array and then we could cycle through the "Set CurrentMarket" block.I'am sure that many people would like to see this...
sincerely yours
hila -
All pairs are something like over 100
I'm not sure what will happen if you try to load all available pairs one after another, but I guess the EA will require all of them to have downloaded some history data 
-
Yepp.
But within an EA you can program yourself a filter which will only take trades on currencypairs where the spread is below a given threshold (ex.: 2). (Edit: I see there is allready a 'Spread Filter'
)Some multiCurrency EAs also have a string containing the pairs you whish to handle. so you set the pairs manually.
like: sPairs = "EURGBP;EURJPY;EURUSD"what do you think?
-
Hiho again,
has someone an idea on how to make an EA MultiCurrency? Must i try to programm a source MT4 block which cycles through the currencys?
-
Just found a way to extract list of all pairs in Market watch. It will take a little time for me to set up some of the blocks to handle this method.
-
Hoho,
thats great news!! Thank you...
Waiting eagerly for your info.
happy weekend
hila -
There is a function that can get all available symbols, this is easy. But there is something else in the game. In my MT4 installation I have total of 134 symbols, and some of them are like "EURUSD" and another one "EURUSD!", and I also have third one "EURUSD.". I have three EURUSD's.
First I decided to include some filters for pairs, for example to get all pairs that starts with "EUR", but having this range of possible suffixes that brokers use, things goes complex. So, finally I decided to make it possible to define pairs manually like typing "EURGBP,EURJPY,EURUSD" (I think I prefer to use "," in between, hoping that there are no brokers using "," within symbol names), because in this case the person can see all the pairs that he wants to use.
There are two ways to tell the EA which pairs to use - to get the list of all available and filter out those that you need, or to write those that you want to use. I think the second way is better. Do you agree or disagree?
-
This block was updated. Now it's only single field inside where you can write list of symbols, separated with ",". If you fild some problems with it - alert me.
-
Wow again. I really like the speed of your work. I think this will greatly improve fxdreema. And i agree that it makes more sense to manually choose the pairs to trade. Will try also the automatically thingy.!! Oh. I saw your second post. You removed the second option...

But i also have no clue how to 'loop' through the currencys. Seems i'am a novice in using fxdreema...When i try the local version of fxdreema i get the attached error message...
thanks again!!
hila......
abandoned.PNG -
That's because those new blocks doesn't exists in local version's database. Normally when I update something (on web version), I wait some time before putting it into the local one.
-
Ah. Okay. I guessed something that way

Do you think i will grasp how to cycle through the currencys?
-
This is the smallest thing to do. I saw an EA earlier that is used to rewrite the behaviour of OnTick() function (for MT5). Normally the Tick event happens when a new tick comes for the current chart currency. But someone decided that this event can happen when a new tick comes in one of the currencies used... something like this...
OnTick(EURUSD)...OnTick(EURUSD)...OnTick(GBPUSD)...OnTick(AUDCAD)...OnTick(EURUSD)....
-
Okay. I don't understand it but i will try it. Hopefully i will soon export the EAs so i can test them...
-
No, this is not the way it works now in fxDreema. Currently, "on Tick" is fired for the current chart pair, and inside that tick you create a loop with different pairs.
I must admit that I've never tried to build multicurrency EA for myself, so I'm not really getting it. But you are the one who wanted to use pairs like that
For example, this EA will put 3 trades in 3 different currencies: http://fxdreema.com/shared/2l1jZo53 -
Thanks for hint!

Now i get it.