function run()
{
var *ClosePrice = series(priceClose());
var *EMA5 = series(EMA(ClosePrice,5));
var *EMA8 = series(EMA(ClosePrice,8));
if(crossUnder(EMA5,EMA8))
enterShort();
if(crossOver(EMA5,EMA8))
enterLong();
if(EMA5[1] > EMA8[1] && EMA5[0] > EMA8[0])
enterLong();
if(EMA5[1] < EMA8[1] && EMA5[0] < EMA8[0])
enterShort();
}