int bar(vars Open,vars High,vars Low,vars Close)
{
//Volume Based bars or sth. else
}
function run()
{
Capital = 1000;
set(PARAMETERS|LOGFILE|PLOTNOW);
StartDate = 20120101;
EndDate = 20230101; //StartDate + 0100; // 1 month
StopFactor = 0;
while(asset(loop("EUR/USD","GER30","AUD/USD"))) // the asset Loop
{
// normally i have to put the strategy conditions into this while-loop, unfortunately it is into the tick()
}
}
function tick()
{
if(trend) enterLong();
else enterShort();
}