Won't open trades

 

Basically I've got this as the main part of the code:

int start()

{

bool flag = true;

int DoW = DayOfWeek();

if(TimeCurrent() == StrToTime("00:05") ||

TimeCurrent() == StrToTime("05:45") && DoW > 1 && DoW < 6) flag = false;

if(flag == false) {

if(OrdersTotal() <= maxTrades) {

ticket = OrderSend(Symbol(), OP_BUY, lotSize, Ask, Slippage, Ask - SL * Point, Ask + TP * Point, 0, MagicNumber, 1);

ticket = OrderSend(Symbol(), OP_SELL, lotSize, Bid, Slippage, Bid + sSL * Point, Bid - sTP * Point, 0, MagicNumber, 1);

}

}

}

But when I put it on a chart nothing happens. Live trading is enabled