Hi Spirit,

thanks a lot, great advice. I think I got it working.

I used following code:

int tmf()
{
if(NumOpenTotal==2 and TradeIsPending) return 1;
else return 0;
}


function run();
{
...
set(TICKS);
BarPeriod=1440;

Fill = 3;

while(asset(loop("SPX500","US30","NAS100")))
{
Entry = -.008*priceClose();
LifeTime=5;
enterLong(tmf);
}
...
}


Cheers