problem with sleep() function
I’m trying to get my expert to sleep after a loss trade,
For some reason it doesn't work.
I’ve already checked that the proper order was selected.
The script looks like this:
int i=HistoryTotal();
OrderSelect(i,SELECT_BY_TICKET);
if(OrderProfit()<0)
{
Sleep(900000);
}
If any one has experience with this function and has an idea what the problem is I’d appreciate your kind help!
|