//+------------------------------------------------------------------+
//|                                           OutlierStatistics.mqh  |
//+------------------------------------------------------------------+
#ifndef OUTLIER_STATISTICS_MQH
#define OUTLIER_STATISTICS_MQH

//+------------------------------------------------------------------+
//| Outlier Statistics Class                                         |
//+------------------------------------------------------------------+
class COutlierStatistics
  {
public:
                     COutlierStatistics(void);
                    ~COutlierStatistics(void);
   void               Print(int window_size,
                            double median_body,
                            double mad_body,
                            double threshold,
                            int outlier_count);
  };

//+------------------------------------------------------------------+
//| Constructor                                                      |
//+------------------------------------------------------------------+
COutlierStatistics::COutlierStatistics(void)
  {
  }

//+------------------------------------------------------------------+
//| Destructor                                                       |
//+------------------------------------------------------------------+
COutlierStatistics::~COutlierStatistics(void)
  {
  }

//+------------------------------------------------------------------+
//| Print session diagnostic report to Experts tab                   |
//+------------------------------------------------------------------+
void COutlierStatistics::Print(int window_size,
                               double median_body,
                               double mad_body,
                               double threshold,
                               int outlier_count)
  {
   PrintFormat("Rolling Window      = %d bars", window_size);
   PrintFormat("Median Body Size    = %.5f",    median_body);
   PrintFormat("MAD Body Size       = %.5f",    mad_body);
   PrintFormat("Composite Threshold = %.2f",    threshold);
   PrintFormat("Detected Outliers   = %d",      outlier_count);
  }

#endif // OUTLIER_STATISTICS_MQH
//+------------------------------------------------------------------+