Class AntherTradingStrategyResult<P extends BasicAntherTradingStrategyParameters>

java.lang.Object
com.bluebell.greenhouse.anther.models.strategy.result.AntherTradingStrategyResult<P>
Type Parameters:
P - extension of BasicAntherTradingStrategyParameters

public class AntherTradingStrategyResult<P extends BasicAntherTradingStrategyParameters> extends Object
Representation of the result of executing an AntherTradingStrategy.
Version:
2.0.3
Author:
Stephen Prizio
  • Constructor Details

    • AntherTradingStrategyResult

      public AntherTradingStrategyResult()
  • Method Details

    • getWins

      public List<AntherPosition> getWins()
      Returns a list of positions that were winners.
      Returns:
      List of AntherPosition
    • getLosses

      public List<AntherPosition> getLosses()
      Returns a list of positions that were losers.
      Returns:
      List of AntherPosition
    • getWinPercentage

      public int getWinPercentage()
      Returns the percentage of wins as a whole, rounded integer. Ex 4 wins out of 11 trades = 36%
      Returns:
      win percentage
    • getDailyWinPercentage

      public int getDailyWinPercentage()
      Returns the number of days when more points were gained than lost of the total trading days.
      Returns:
      whole percentage
    • getPointsGained

      public double getPointsGained()
      Computes the total number of points gained.
      Returns:
      points gained
    • getPointsLost

      public double getPointsLost()
      Computes the total number of points lost.
      Returns:
      points lost
    • getPoints

      public double getPoints()
      Computes the net points gained/loss.
      Returns:
      points gained - lost
    • getProfitability

      public double getProfitability()
      Computes the profitability.
      Returns:
      points gained / points lost
    • getRetention

      public double getRetention()
      Computes the percentage of points gained out of the total points on the table.
      Returns:
      points gained / total points
    • getNetProfit

      public double getNetProfit()
      Calculates the net profit.
      Returns:
      net profit
    • getAveragePositionDuration

      public long getAveragePositionDuration()
      Calculates the average AntherPosition duration in minutes.
      Returns:
      average position duration
    • getMaxDrawdown

      public Double getMaxDrawdown()
      Returns the lowest point of this strategy.
      Returns:
      min value
    • getRelativeDrawdown

      public Double getRelativeDrawdown()
      Returns the lowest point throughout the strategy.
      Returns:
      min value
    • getCumulativeReportEntries

      public List<CumulativeStrategyReportEntry> getCumulativeReportEntries()
      Computes a bunny trail per trade.
      Returns:
      List of CumulativeStrategyReportEntry
    • toString

      public String toString()
      Defines a custom toString().
      Overrides:
      toString in class Object
      Returns:
      String