MULTIPLE CHARTS
-
Hello, I want my system to operate in all the charts that are in market observation, simultaneously, either in backtesting or realThat is, that a single robot can make decisions in multiple pairs from a single chart
-
You can use this block on top of all your project:

There you will have to manually write all symbols you want comma separated. That should do the work on real and backtesting for MT5, but only for real on MT4.
-
@l-andorrà said in MULTIPLE CHARTS:
You can use this block on top of all your project:

There you will have to manually write all symbols you want comma separated. That should do the work on real and backtesting for MT5, but only for real on MT4.
You might set this string by a variable automaticaly for instance on the on Init tab. Here an example. I defined the string variable "ListSymbols" in fxdreema before.

Here the code for copying ...
//
int HowManySymbols=SymbolsTotal(true);
ListSymbols="";
for(int i=0;i<HowManySymbols;i++)
{
ListSymbols=StringConcatenate(ListSymbols,SymbolName(i,true),",");
};
// -
Hello @l-andorrà , @trader-philipps .
Does both types have the same function?@l-andorrà , is it just by placing that block on top will do the magic?
trade multiple chart from a single chart? as simple as that?@trader-philipps , which is the simplest/lightest programming
between yours and fxdreema ready block? -
It should be on top of the launching blocks (buy/sell). Not necessarily on top of all the project. It depends on your specific project. I have no idea about what trader.philipps siggested. I'm not a programmer, I'm afraid.

-
Thanks @l-andorrà . If that simple block can do the magic, it's good enough.
-
@biztet What the code does is the folowing. If executed on the on Init tab, the EA will read all symbols/instruments that are currently in the market watch (on EA start). The SymbolsTotal(true); only counts the number of available symbols.
Then it loops for the number of symbols and puts each symbol name in a comma seperated list. -
Hello experts. I need to enhance my EA.
I'm calling experts, @l-andorrà , @trader-philipps , @roar .
Thank you everyone for coming!
I need to make it trade multipair on single chart, and the EA
must read all signals from all pairs and execute the trades simultaniously.
Also to close trades with the signal from each pair separately.
Is there any codes that i can use to make this possible?
That is all i guess. Thank you. -
And also about the different symbol with different brokers.
eg. EURUSD/EURUSD.x/EURUSD.abc
can i do like this... EURUSD*, assuming that it will read the string EURUSD just to recognize the symbol? -
Yes, you can. Are you talking about the same question of your other thread? If so I answered there. Please don't duplicate questions.