I haven't tested this, and it might not be the most efficient way to do it, but it should get the job done:

Code:
while(asset(loop("EUR/USD","EUR/JPY")))
  while(algo(loop("S1","S2","S3","S4")))
  {
    Margin = 0.5 * OptimalF * Capital;
    if (Asset == "EUR/USD") {
      if(Algo == "S1") 
        trade_S1();
      else if(Algo == "S2") 
        trade_S2();
    } else if (Asset == "EUR/JPY") {
      if(Algo == "S3") 
        trade_S1();
      else if(Algo == "S4") 
        trade_S2();
    }
  }
}


Last edited by Dalla; 07/07/17 11:08.