IsStopped(__FUNCTION__) error why?

 
IsStopped(__FUNCTION__) Normal after comment.
bool CTrade::PositionModify(const ulong ticket,const double sl,const double tp)
  {
//--- check stopped
   if(IsStopped(__FUNCTION__))
      return(false);
//--- check position existence
   if(!PositionSelectByTicket(ticket))
      return(false);
//--- clean
   ClearStructures();
//--- setting request
   m_request.action  =TRADE_ACTION_SLTP;
   m_request.position=ticket;
   m_request.symbol  =PositionGetString(POSITION_SYMBOL);
   m_request.magic   =m_magic;
   m_request.sl      =sl;
   m_request.tp      =tp;
//--- action and return the result
   return(OrderSend(m_request,m_result));
  }
 
wk.Kun:
IsStopped(__FUNCTION__) Normal after comment.

That IsStopped is a call to another overloaded function within the class CTrade, not the one you think.

//+------------------------------------------------------------------+
//| Checks forced shutdown of MQL5-program                           |
//+------------------------------------------------------------------+
bool CTrade::IsStopped(const string function)
{
    if(!::IsStopped())
        return(false);
//--- MQL5 program is stopped
    PrintFormat("%s: MQL5 program is stopped. Trading is disabled", function);
    m_result.retcode = TRADE_RETCODE_CLIENT_DISABLES_AT;
    return(true);
}