def calculateStatistics(self):
        res = {}
        res['micro'] = rank(self.params['change'].sum(),self.change)
        res['macro'] = rank(self.params['mktValue'].sum(), self.value)
        res['last'] = self.params['mktValue'].sum()
             
        return   Series(res,name=self.name)    
    
    
  
    
    #-----------plotting functions-------------------
calculate spread statistics
dataset/ETHPy150Open cmorgan/trading-with-python/lib/classes.py/Spread.calculateStatistics