//+------------------------------------------------------------------+
//|                                                 ScatterTypes.mqh |
//+------------------------------------------------------------------+
#ifndef SCATTERTYPES_MQH
#define SCATTERTYPES_MQH

//+------------------------------------------------------------------+
//| CTradePoint                                                      |
//| One closed trade reduced to the fields the scatter plot needs:   |
//| its symbol, hold duration in minutes, and net profit.            |
//+------------------------------------------------------------------+
struct CTradePoint
  {
   ulong             ticket;
   string            symbol;
   double            duration_minutes;
   double            profit;
  };

//+------------------------------------------------------------------+
//| CRegressionResult                                                |
//| The fitted line's slope and intercept, and the R-squared value   |
//| describing how much of the profit variation the line explains.   |
//+------------------------------------------------------------------+
struct CRegressionResult
  {
   double            slope;
   double            intercept;
   double            r_squared;
  };

#endif // SCATTERTYPES_MQH
//+------------------------------------------------------------------+