Class ReportGenerator
java.lang.Object
com.quantfinlib.report.ReportGenerator
Professional Report Generator: assembles portfolio summaries, performance
analytics, risk analysis, allocations, strategy results, trade history,
Monte Carlo results and technical summaries into a
Report, and
exports to PDF, Excel (.xlsx), HTML or CSV.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllocation(Map<String, Double> weights) addDrawdownChart(String title, double[] equity) Inline SVG drawdown chart (rendered in HTML export only).addEquityCurveChart(String title, double[] equity) Inline SVG equity-curve chart (rendered in HTML export only).addPerformance(String title, PerformanceMetrics m) addPortfolioSummary(Portfolio portfolio) addSection(String title, Map<String, String> keyValues) addStrategyPerformance(BacktestResult result) Snapshot of key technical indicators on the last bar of the series.addTradeHistory(List<Trade> trades) build()voidvoidvoidvoid
-
Constructor Details
-
ReportGenerator
-
-
Method Details
-
addPortfolioSummary
-
addPerformance
-
addStrategyPerformance
-
addRiskAnalysis
-
addAllocation
-
addTradeHistory
-
addMonteCarlo
-
addTechnicalSummary
Snapshot of key technical indicators on the last bar of the series. -
addSection
-
addEquityCurveChart
Inline SVG equity-curve chart (rendered in HTML export only). -
addDrawdownChart
Inline SVG drawdown chart (rendered in HTML export only). -
build
-
toHtml
- Throws:
IOException
-
toCsv
- Throws:
IOException
-
toPdf
- Throws:
IOException
-
toExcel
- Throws:
IOException
-