Help! does anyone has stastical arbitrage example?

 

For starter, 

How can I trade multiple pair?

.... 

string pairs[18];
extern string symbol1 = "EURUSD";
extern string symbol2 = "USDCHF";


... 

 

pairs[0] = symbol1;
pairs[1] = symbol2;

 ...

int ticket=OrderSend(symbol1,OP_SELL,LotSize,MarketInfo(symbol1,MODE_BID),3,Ask+(Point*StopLoss),0,"My EA",12345,0,Red) 
 & OrderSend(symbol2,OP_BUY,LotSize,MarketInfo(symbol2,MODE_ASK),3,Bid-(Point*StopLoss),0,"My EA",12345,0,Green);

Keep getting error 4106

for back testing
got ordersend error 4106

unknown symbol name for USDCHF for ordersend function



Ordersend works for EURUSD if I choose the symbol EURUSD for setting or EURUSD chart.



If I change to another chart, I will get unknown symbol for both EURUSD and USDCHF

 

 

Thanks in advance! 

 
 
ubzen:
Here's some leads https://www.mql5.com/en/forum/125727.



Thanks! 

But I think it can be done. Take a look at this



Any examples how this can be done? 

>
 
Nice system there :). I'm a huge believer that almost anything can be done. The guys in that thread have more programming knowledge than I. I've never read through the thread but from what I hear ever now and then is that multi-currency strategies are possible but more involved. Unless you're a professional coder already, I'd give my self a year to be able to code something like that.