MatexProfitAndLossCalculatorCore class

Inheritance
Mixed in types

Constructors

MatexProfitAndLossCalculatorCore({MatexBaseCoreState? defaultState, List<MatexStateValidator>? validators})

Properties

defaultCalculatorState MatexBaseCoreState
no setteroverride
defaultState MatexBaseCoreState?
getter/setter pairinherited
differenceState MatexBaseCoreState
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isDirty bool
no setterinherited
isStateValid bool
getter/setter pairinherited
isValid bool
no setterinherited
propertiesUseForDifference Iterable<String>
no setterinherited
result MatexProfitAndLossResult?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state MatexBaseCoreState
getter/setter pairinherited
validators List<MatexStateValidator>?
getter/setter pairinherited

Methods

computeGrossProfitOrLoss(Decimal netBuyPrice, Decimal netSellPrice) → Decimal
computeReturnOnInvestment(Decimal netBuyPrice, Decimal dGrossPnl) → Decimal
computeTaxAmount(Decimal grossPnl) → Decimal
entryFeeAmount(double fee) MatexProfitAndLossCalculatorCore
inherited
entryFeeAmountPerUnit(double fee) MatexProfitAndLossCalculatorCore
inherited
entryFeePercentage(double fee) MatexProfitAndLossCalculatorCore
inherited
entryFeePercentagePerUnit(double fee) MatexProfitAndLossCalculatorCore
inherited
entryPrice(double price) MatexProfitAndLossCalculatorCore
inherited
exitDiscountAmount(double amount) MatexProfitAndLossCalculatorCore
inherited
exitDiscountPercentage(double rate) MatexProfitAndLossCalculatorCore
inherited
exitFeeAmount(double fee) MatexProfitAndLossCalculatorCore
inherited
exitFeeAmountPerUnit(double fee) MatexProfitAndLossCalculatorCore
inherited
exitFeePercentage(double fee) MatexProfitAndLossCalculatorCore
inherited
exitFeePercentagePerUnit(double fee) MatexProfitAndLossCalculatorCore
inherited
exitPrice(double price) MatexProfitAndLossCalculatorCore
inherited
fixedCosts(double costs) MatexProfitAndLossCalculatorCore
inherited
getState() MatexBaseCoreState
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchState(MatexBaseCoreState partialState) MatexProfitAndLossCalculatorCore
inherited
position(MatexPosition position) MatexProfitAndLossCalculatorCore
inherited
positionSize(double size) MatexProfitAndLossCalculatorCore
inherited
reset() MatexProfitAndLossCalculatorCore
inherited
resetStateProperties(List<String> properties) MatexProfitAndLossCalculatorCore
inherited
sanitizeDouble(double value) double
inherited
setDefaultState(MatexBaseCoreState nextDefaultState) MatexProfitAndLossCalculatorCore
inherited
setState(MatexBaseCoreState nextState) MatexProfitAndLossCalculatorCore
inherited
taxRate(double rate) MatexProfitAndLossCalculatorCore
inherited
toPercentageDecimal(num value) → Decimal
inherited
toString() String
A string representation of this object.
inherited
value() MatexProfitAndLossResult
override

Operators

operator ==(Object other) bool
The equality operator.
inherited