How to make EA multi currency most efficiently?
-
Hi there!
I'm trying to convert a number of FXDreema EAs to run on all 28 currencies at once.
I've tried using the "set current market" block using all 28 currencies separated by comma, but as I understand it only runs once per tick so it is not suitable for a true multi currency EA.
So I am now going to duplicate all of the logic blocks 28 times and apply the "set current market" block to each set of logic blocks in order to avoid having to edit the "symbol" tab in every single logic set for a different currency.
However now I have the issue that variables are currency independent. This means I would need to make sets of variables (sometimes hundreds) for each currency, which is very impractical and certainly not efficient.
Is there a more efficient way to solve this variable issue?Much appreciated.
-
post screenshot of your tree blocks .. so we can understand where is the issue
-
@coinmaster Are you sure those variables need to be 'customized' for each chart? What are they supposed to do exactly?
-
Here is an example
https://fxdreema.com/shared/0eETyHGkbMy point was that while I can easily avoid having to edit countless logic blocks by using the "set market" block, I cannot easily avoid having to re-create countless variables for each currency because you cannot set variables to a specific group # or currency as far as I know.
-
Anyone??
-
@coinmaster Yes, you can specify what charts are applicable for any specific condition/modify variables block this way:

-
But my problem is that, the variables are currency independent, So I need to make hundreds of new variables on some of my EAs if I want to do multi-currency.
In the example I gave, blocks 2, 6, 8, and 12 are linked between all currencies. I want it to save the values of 2, 6, 8, 12 for each currency separately without needing to make a dedicated variable for each currency. -
@coinmaster Then you need arrays to store those variable's values. That means custom code AFAIK.