Exemple #1
0
 def add_strategy(self, strategy):
     """
     Add the strategy and set the settings
     """
     self._strategy = strategy
     # create an output instance for the strategy report
     root = os.path.join(os.getcwd(), '..', 'report')
     fname = self._strategy.name + ".report"
     self.o = Output(root, fname)
     # check whether repot file has been created
     if self.o.ReportFileExist == False:
         print(
             "A 'report' folder should be provided in the parent directory of current directory."
         )