1) You need a series for the SMA, so your entry conditions are wrong.
vars Close = series(priceClose());
if(SMA(Close....
2) You're using daily bars, but want to exit the trade within 30 minutes. You need 30 minutes bars for that. Use then also a certain time for Friday to make sure that only one trade is opened.
3) set LOGFILE for this.