Class AntherTradingStrategyResult<P extends BasicAntherTradingStrategyParameters>
java.lang.Object
com.bluebell.greenhouse.anther.models.strategy.result.AntherTradingStrategyResult<P>
- Type Parameters:
P- extension ofBasicAntherTradingStrategyParameters
public class AntherTradingStrategyResult<P extends BasicAntherTradingStrategyParameters>
extends Object
Representation of the result of executing an
AntherTradingStrategy.- Version:
- 2.0.3
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongCalculates the averageAntherPositionduration in minutes.Computes a bunny trail per trade.intReturns the number of days when more points were gained than lost of the total trading days.Returns a list of positions that were losers.Returns the lowest point of this strategy.doubleCalculates the net profit.doubleComputes the net points gained/loss.doubleComputes the total number of points gained.doubleComputes the total number of points lost.doubleComputes the profitability.Returns the lowest point throughout the strategy.doubleComputes the percentage of points gained out of the total points on the table.intReturns the percentage of wins as a whole, rounded integer.getWins()Returns a list of positions that were winners.toString()Defines a custom toString().
-
Constructor Details
-
AntherTradingStrategyResult
public AntherTradingStrategyResult()
-
-
Method Details
-
getWins
Returns a list of positions that were winners.- Returns:
ListofAntherPosition
-
getLosses
Returns a list of positions that were losers.- Returns:
ListofAntherPosition
-
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 averageAntherPositionduration in minutes.- Returns:
- average position duration
-
getMaxDrawdown
-
getRelativeDrawdown
Returns the lowest point throughout the strategy.- Returns:
- min value
-
getCumulativeReportEntries
Computes a bunny trail per trade.- Returns:
ListofCumulativeStrategyReportEntry
-
toString
-