code: def record(self, *args, **kwargs):
          
          if self.record_output:
              try:
                  self.datastore.record(self.record_ts, *args, **kwargs)
              except Exception as e:
                  pass
docs: Records data for later analysis.
          Values will be logged to the file specified via
          ``--output [file]`` (along with bar data) as
          csv/pickle/h5 file.
  
          Call from within your strategy:
          ``self.record(key=value)``
  
          :Parameters:
              ** kwargs : mixed
                  The names and values to record