View Single Post
  #1 (permalink)  
Old 05-16-2006, 08:37 PM
smoisb smoisb is offline
Junior Member
 
Join Date: Apr 2006
Posts: 1
smoisb is on a distinguished road
Unhappy 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!
Reply With Quote