problems with history quality and order filling type

 

hello people..

please could someone explain why i have 0% history quality when i run my results .

i am using a demo account with activtrades MT5 Build 1596

this happens with any ea including sample ea's


changing broker to fxpro fixed this but produced  an error for ORDER_FILLING_FOK - invalid fill type

changing the Ctrade library  to ORDER_FILLING_IOC fixes this but i dont understand why this has all happened.

i have had no problems until a month ago

i have noticed other similar posts on this but have not found a solution.

Thanks in advance

rob


void  buy()
{    
   CTrade trade;
   Comment("Ëîò=",LotsOptimized(lot));
  if(!trade.Buy(lot,_Symbol))
     {
      //--- failure message
      Print("Buy() method failed. Return code=",trade.ResultRetcode(),
            ". Code description: ",trade.ResultRetcodeDescription());
     }
   else
     {
      Print("Buy() method executed successfully. Return code=",trade.ResultRetcode(),
            " (",trade.ResultRetcodeDescription(),")");
     }
 } 
void  sell()
{   
   CTrade trade;
   Comment("Ëîò=",LotsOptimized(lot));
  if(!trade.Sell(lot,_Symbol))
     {
      //--- failure message
      Print("Sell() method failed. Return code=",trade.ResultRetcode(),
            ". Code description: ",trade.ResultRetcodeDescription());
     }
   else
     {
      Print("Sell() method executed successfully. Return code=",trade.ResultRetcode(),
            " (",trade.ResultRetcodeDescription(),")");
     }
 }    
//
CTrade::CTrade(void) : m_async_mode(true),
                       m_magic(0),
                       m_deviation(10),
                       m_type_filling(ORDER_FILLING_IOC),
                       m_log_level(LOG_LEVEL_ERRORS)

  {
   SetMarginMode();
//--- initialize protected data
   ClearStructures();
//--- check programm mode
   if(MQL5InfoInteger(MQL5_OPTIMIZATION))
      m_log_level=LOG_LEVEL_NO;
   if(MQL5InfoInteger(MQL5_TESTING))
      m_log_level=LOG_LEVEL_ALL;
  }