After reading the posts above I built this script to run a statagy on several currancy pairs.

seems to work well.

Code
///////////// MultiPair Live Trade /////////////

#include <profile.c>
#define	run strategy
#include	"AnyAlgo.c"	// <= your script here!!
#undef	run

function run()
{
	set(PRELOAD|COMMONSTART|PLOTNOW|LOGFILE); // reload prices after any cycle
	brokerCommand(SET_AMOUNT,0.01);
	setf(PlotMode,PL_FINE+PL_DIFF+PL_ALLTRADES+PL_LONG+PL_ALL+PL_BENCHMARK);  //PL_FILE+
	PlotScale = 8;
	asset("EUR/USD");
	asset("AUD/USD");
	
#endif
	for(used_assets) {
	strategy();	
	
	}
}

Last edited by Gheo; 01/16/23 20:45.