I'm making my way through Workshop 6 and pretty much understand it. But I have a question about how to trade different assets using different algorithms. IN the workshop we have:
while(asset(loop("EUR/USD","USD/JPY")))
while(algo(loop("TRND","CNTR")))
{
if(strstr(Algo,"TRND"))
tradeTrend();
else if(strstr(Algo,"CNTR"))
tradeCounterTrend();
}
But this trades both TRND and CNTR on EUR/USD and USD/JPY. How would I write the code if I want, for example, EUR/USD to only trade TRND and USD/JPY to only trade CNTR?
On another note, if I want an algo to open several positions for a trade, could someone point to where the manual explains how to do this.
Many thanks!!