def CORREL(ds1, ds2, count, timeperiod=(- (2 ** 31))):
 data1 = value_ds_to_numpy(ds1, count)
 if (data1 is None):
  return None
 data2 = value_ds_to_numpy(ds2, count)
 if (data2 is None):
  return None
 return talib.CORREL(data1, data2, timeperiod)

def CORREL ( ds1 , ds2 , count , timeperiod = ( - ( 2 ** 31 ) ) ) : data1 = value_ds_to_numpy ( ds1 , count ) if ( data1 is None ) : return None data2 = value_ds_to_numpy ( ds2 , count ) if ( data2 is None ) : return None return talib . CORREL ( data1 , data2 , timeperiod )
pearsons correlation coefficient (r) .