Code:
function run()
{
	BarPeriod = 60;
	set(TICKS|LOGFILE);		
	var Price = priceClose();
	TakeProfit = Price;

	Stop = Price + 50*PIP;

		if (hour() >= 8 && hour() < 9){
			enterShort(1,-15*PIP);
			enterShort(1,-20*PIP);
			enterShort(1,-25*PIP);
			enterLong(1,-15*PIP);
			enterLong(1,-20*PIP);
			enterLong(1,-25*PIP);
		}
}



This is my code now, but the problem is the Stop for the Long Trades.
I tried it with this instead of the single Stop function:

Code:
if (TradeIsShort){
	Stop = Price + 50*PIP;
}
else if (TradeIsLong){
	Stop = Price - 50*PIP;
}



but this seems not to work frown