Multi symbols how to use correctly?
-
I noticed that the block " Set "Current Market" for next blocks " doesn't seem to work properly when there are variables in the strategy or drawings like horizontal or trend lines.
For example, if in the strategy there was a condition to check if the candle (1) crossed above a horizontal line, the EA will only check this on the main symbol, the other symbols will be ignored because in the backtest it is impossible to print this lines on them so the crossover will not happen.
With that in mind, I wanted to know if there is any way we can get around this without having to create a sequence of new rules for each symbol I want to trade.
It's possible ? -
@ontradingx Never used but it says in the ? what it changes, you will need to set different variables for each asset to ensure the correct one is used.
-
@ontradingx said in Multi symbols how to use correctly?:
I noticed that the block " Set "Current Market" for next blocks " doesn't seem to work properly when there are variables in the strategy or drawings like horizontal or trend lines.
For example, if in the strategy there was a condition to check if the candle (1) crossed above a horizontal line, the EA will only check this on the main symbol, the other symbols will be ignored because in the backtest it is impossible to print this lines on them so the crossover will not happen.
With that in mind, I wanted to know if there is any way we can get around this without having to create a sequence of new rules for each symbol I want to trade.
It's possible ?i did a tutorial for how I pulled data on 3 indexes to display on 1 of the 3. Its within the last 2 months. hopefully it helps.
-
@tipsywisdom you have tutorial by this, share the link here please ?
-
@ontradingx said in Multi symbols how to use correctly?:
@tipsywisdom you have tutorial by this, share the link here please ?

in the future, that is how to do it for anyone else simply.
https://fxdreema.com/forum/topic/14971/multi-symbol-high-of-day-low-of-day-tracking
-
@tipsywisdom
Thanks for your help, I ended up finding your solution myself and I found it very interesting, what I didn't like is that it is necessary to use a string constant to use the currency name and this pollutes the EA's structure a lot.I believe that the block that should do this function must contain some bug, it should really do the role it was assigned to because it would save a lot of blocks, I see that it may not be doing a loop as it mentions doing it correctly, hopefully the developer can start paying attention to these fixes.
-
Can you comparatively help me understand what you mean by, it pollutes the structure?
I am assuming you mean the blocks, the code...making it all work together properly. I personally do not use group numbers because its too much to do for what I develop. Is this the kind of pollution you are talking about? Or is it more of a code aspect, in the lines?
-
@tipsywisdom
What I meant is in relation to the aesthetics (visual part) of the EA.The block "set markets for the next blocks" if it worked, it allows me to write separately by commas ( , ) each currency name that I would like to trade.
The way you taught and that actually works we have to create one (constant) for each currency pair name, this generates many constants in my case let's say 29 more constants than I would need.
But it solved my problem.
In short, the block made for this purpose does not work properly. -
@ontradingx I respectufully disagree. The block works correctly. What is the exact problem in your structure? Did you consider that your EA will be executed on one specific chart while trying to operato on others? This is why you can find some inconsistencies when using the block.
-
@l-andorrà
The problem happens because I use variables and calculations, when I do this with this block nothing works, and doing it without it and creating it separately in the way I explained worked.This block from what I understand it is not allowing to check the variables or perform calculations on the currencies separately only for the chart in which the EA is being tested.
-
@l-andorrà I believe that the block when the loop arrives in the calculation block it does not see the "symbol" field and for this reason it cannot implement the symbol (currency) chosen in the calculation.
Calculation blocks and variables do not have the symbol field
If the middle of the strategy does not contain either one, then the EA will be able to loop perfectly.
-
@ontradingx Can you please share the link to your project? I will take a look at it.
-
I ended up redesigning my logic.
Keeping all blocks that contain "Symbol" below the block to replicate the market, and above this block I kept all my blocks that don't contain "Symbol" and now I notice that everything is flowing perfectly.
Now from now on I'm just going to do it this way so that my multicurrency EA's work as I need. -
@ontradingx Congrats for dinding a solution!

