Record Class SymbolAnalysisOverviewDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.symbol.analysis.SymbolAnalysisOverviewDTO
- Record Components:
latestClose- latest closeperiodReturnPercent- period return percentmedianClose- median closemedianReturnPercent- median return percentmeanReturnPercent- mean return percentrealizedVolatilityPercent- realized volatility percentannualizedVolatilityPercent- annualized volatility percenthistoricalSharpeRatio- historical Sharpe ratioaverageBarMovePercent- average bar move percentaverageTrueRangePercent- average true range percentpriceExpansionState- price expansion statevolumeExpansionState- volume expansion statebarsUsed- bars used
public record SymbolAnalysisOverviewDTO(double latestClose, double periodReturnPercent, double medianClose, double medianReturnPercent, double meanReturnPercent, double realizedVolatilityPercent, double annualizedVolatilityPercent, double historicalSharpeRatio, double averageBarMovePercent, double averageTrueRangePercent, EnumDisplay priceExpansionState, EnumDisplay volumeExpansionState, int barsUsed)
extends Record
Overview-statistics DTO.
- Version:
- 2.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolAnalysisOverviewDTO(double latestClose, double periodReturnPercent, double medianClose, double medianReturnPercent, double meanReturnPercent, double realizedVolatilityPercent, double annualizedVolatilityPercent, double historicalSharpeRatio, double averageBarMovePercent, double averageTrueRangePercent, EnumDisplay priceExpansionState, EnumDisplay volumeExpansionState, int barsUsed) Creates an instance of aSymbolAnalysisOverviewDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theannualizedVolatilityPercentrecord component.doubleReturns the value of theaverageBarMovePercentrecord component.doubleReturns the value of theaverageTrueRangePercentrecord component.intbarsUsed()Returns the value of thebarsUsedrecord component.static SymbolAnalysisOverviewDTOempty()Creates an empty DTO shell.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thehistoricalSharpeRatiorecord component.doubleReturns the value of thelatestCloserecord component.doubleReturns the value of themeanReturnPercentrecord component.doubleReturns the value of themedianCloserecord component.doubleReturns the value of themedianReturnPercentrecord component.doubleReturns the value of theperiodReturnPercentrecord component.Returns the value of thepriceExpansionStaterecord component.doubleReturns the value of therealizedVolatilityPercentrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevolumeExpansionStaterecord component.
-
Constructor Details
-
SymbolAnalysisOverviewDTO
public SymbolAnalysisOverviewDTO(double latestClose, double periodReturnPercent, double medianClose, double medianReturnPercent, double meanReturnPercent, double realizedVolatilityPercent, double annualizedVolatilityPercent, double historicalSharpeRatio, double averageBarMovePercent, double averageTrueRangePercent, EnumDisplay priceExpansionState, EnumDisplay volumeExpansionState, int barsUsed) Creates an instance of aSymbolAnalysisOverviewDTOrecord class.- Parameters:
latestClose- the value for thelatestCloserecord componentperiodReturnPercent- the value for theperiodReturnPercentrecord componentmedianClose- the value for themedianCloserecord componentmedianReturnPercent- the value for themedianReturnPercentrecord componentmeanReturnPercent- the value for themeanReturnPercentrecord componentrealizedVolatilityPercent- the value for therealizedVolatilityPercentrecord componentannualizedVolatilityPercent- the value for theannualizedVolatilityPercentrecord componenthistoricalSharpeRatio- the value for thehistoricalSharpeRatiorecord componentaverageBarMovePercent- the value for theaverageBarMovePercentrecord componentaverageTrueRangePercent- the value for theaverageTrueRangePercentrecord componentpriceExpansionState- the value for thepriceExpansionStaterecord componentvolumeExpansionState- the value for thevolumeExpansionStaterecord componentbarsUsed- the value for thebarsUsedrecord component
-
-
Method Details
-
empty
Creates an empty DTO shell.- Returns:
SymbolAnalysisOverviewDTO
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
latestClose
public double latestClose()Returns the value of thelatestCloserecord component.- Returns:
- the value of the
latestCloserecord component
-
periodReturnPercent
public double periodReturnPercent()Returns the value of theperiodReturnPercentrecord component.- Returns:
- the value of the
periodReturnPercentrecord component
-
medianClose
public double medianClose()Returns the value of themedianCloserecord component.- Returns:
- the value of the
medianCloserecord component
-
medianReturnPercent
public double medianReturnPercent()Returns the value of themedianReturnPercentrecord component.- Returns:
- the value of the
medianReturnPercentrecord component
-
meanReturnPercent
public double meanReturnPercent()Returns the value of themeanReturnPercentrecord component.- Returns:
- the value of the
meanReturnPercentrecord component
-
realizedVolatilityPercent
public double realizedVolatilityPercent()Returns the value of therealizedVolatilityPercentrecord component.- Returns:
- the value of the
realizedVolatilityPercentrecord component
-
annualizedVolatilityPercent
public double annualizedVolatilityPercent()Returns the value of theannualizedVolatilityPercentrecord component.- Returns:
- the value of the
annualizedVolatilityPercentrecord component
-
historicalSharpeRatio
public double historicalSharpeRatio()Returns the value of thehistoricalSharpeRatiorecord component.- Returns:
- the value of the
historicalSharpeRatiorecord component
-
averageBarMovePercent
public double averageBarMovePercent()Returns the value of theaverageBarMovePercentrecord component.- Returns:
- the value of the
averageBarMovePercentrecord component
-
averageTrueRangePercent
public double averageTrueRangePercent()Returns the value of theaverageTrueRangePercentrecord component.- Returns:
- the value of the
averageTrueRangePercentrecord component
-
priceExpansionState
Returns the value of thepriceExpansionStaterecord component.- Returns:
- the value of the
priceExpansionStaterecord component
-
volumeExpansionState
Returns the value of thevolumeExpansionStaterecord component.- Returns:
- the value of the
volumeExpansionStaterecord component
-
barsUsed
-