You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Basically I've got this as the main part of the code:
{
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