package top.baogutang.strategy.backtests;

import java.util.List;

public class BacktestResult {
    private final int trades;
    private final int wins;
    private final int losses;
    private final double winRate;
    private final double totalR;
    private final double maxDrawdown;
    private final List<EquityCurvePoint> curve;

    public BacktestResult(int trades, int wins, int losses, double winRate,
                          double totalR, double maxDrawdown, List<EquityCurvePoint> curve) {
        this.trades = trades;
        this.wins = wins;
        this.losses = losses;
        this.winRate = winRate;
        this.totalR = totalR;
        this.maxDrawdown = maxDrawdown;
        this.curve = curve;
    }

    public int getTrades() {
        return trades;
    }

    public int getWins() {
        return wins;
    }

    public int getLosses() {
        return losses;
    }

    public double getWinRate() {
        return winRate;
    }

    public double getTotalR() {
        return totalR;
    }

    public double getMaxDrawdown() {
        return maxDrawdown;
    }

    public List<EquityCurvePoint> getCurve() {
        return curve;
    }
}
