ResultOrder() needs Sleep ?

 

Hello, 

the function ResultOrder() just after opening a position does not work in my code . I need to add a sleep between,  do you know why ?  it s no documented  ? 

regards ,

   obj_Trade.Sell(order.volume,order.symbol,0.0,0.0,0.0);

    Sleep(10); 

   ulong ticket =  obj_Trade.ResultOrder();
 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
thks