Well I coded what I wanted and it is compiling but when it runs it stops at the first execution. I am not sure what is wrong.

function run()
{
set(NFA + PLOTLONG);
BarPeriod = 60;
if(dow() == SUNDAY && lhour(ET) == 5) {
int FridayBar = timeOffset(ET,SUNDAY-FRIDAY,5,0);
var PriceChange = priceOpen(0) - priceClose(FridayBar);


if (abs(PriceChange) > 19 && priceOpen(0) > priceClose(FridayBar))



enterShort();
Stop = abs(PriceChange);
TakeProfit = abs(PriceChange);

if (abs(PriceChange) > 19 && priceOpen(0) < priceClose(FridayBar))



enterLong();
Stop = abs(PriceChange);
TakeProfit = abs(PriceChange);

}





}