Пример #1
0
 def _export_pdf_with_charts(self, portfolio_tms):
     portfolio_tms.name = self.backtest_result.backtest_name
     tearsheet = TearsheetWithoutBenchmark(self._settings,
                                           self._pdf_exporter,
                                           portfolio_tms,
                                           title=portfolio_tms.name)
     tearsheet.build_document()
     tearsheet.save(self._report_dir)
Пример #2
0
 def _export_PDF_with_charts(self, portfolio_tms):
     try:
         tearsheet = TearsheetWithoutBenchmark(self._settings,
                                               self._pdf_exporter,
                                               portfolio_tms,
                                               title=portfolio_tms.name)
         tearsheet.build_document()
         tearsheet.save(self._report_dir)
     except Exception as ex:
         self.logger.error("Error while exporting to PDF: " + str(ex))
Пример #3
0
    def _issue_tearsheet(self, portfolio_tms):
        if self._monitor_settings.issue_tearsheet:
            if self.benchmark_tms is None:
                tearsheet = TearsheetWithoutBenchmark(
                    self._settings, self._pdf_exporter, portfolio_tms, title=portfolio_tms.name)
            else:
                tearsheet = TearsheetWithBenchmark(
                    self._settings, self._pdf_exporter, portfolio_tms, self.benchmark_tms, title=portfolio_tms.name)

            tearsheet.build_document()
            tearsheet.save(self._report_dir)