Problem with the markets volatility

Hi
I’ve made a expert advisor. It work good. But I’ve a problem the ea doesn’t open any positions when the market is very volatile. (1pm until 6pm)
It trades on gold 1M
What do I must to do?

Please react only if you can help me

Hello ankof1,

You can do the following:

  1. Increase slippage.

  2. Create a while function to repeat until the ticket is > 0: eg


int ticket = 0;
while (ticket < 0)
{
   ticket = OrderSend(......); // etc
}

Regards,
JonDgls