MatexForexProfitAndLossCalculator class

Inheritance
Mixed in types

Constructors

MatexForexProfitAndLossCalculator({required MatexConfig config, MatexBaseCoreState? defaultState, List<MatexStateValidator>? validators})

Properties

config MatexConfig
finalgetter/setter pairinherited-setteroverride-getter
defaultCalculatorState MatexBaseCoreState
no setteroverride
defaultState MatexBaseCoreState?
getter/setter pairinherited
differenceState MatexBaseCoreState
getter/setter pairinherited
exchangeProvider MatexAbstractExchangeProvider?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
instrumentProvider MatexAbstractInstrumentMetadataProvider
no setterinherited
isDirty bool
no setterinherited
isStateValid bool
getter/setter pairinherited
isValid bool
no setterinherited
pairProvider MatexAbstractPairMetadataProvider
no setterinherited
propertiesUseForDifference Iterable<String>
no setteroverride
result Future<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

accountCode(String? accountCode) MatexForexProfitAndLossCalculator
inherited
baseListedSecond(bool baseListedSecond) MatexForexProfitAndLossCalculator
inherited
computePipValue() → Decimal
inherited
convertResultWithRate(MatexProfitAndLossResult result, double rate) MatexProfitAndLossResult
counterAccountCurrencyPairExchangeRate(double counterAccountCurrencyPairExchangeRate) MatexForexProfitAndLossCalculator
inherited
currencyPairCode(String? baseCode, String? counterCode) MatexForexProfitAndLossCalculator
inherited
entryFeeAmount(double fee) MatexForexProfitAndLossCalculator
inherited
entryFeeAmountPerUnit(double fee) MatexForexProfitAndLossCalculator
inherited
entryFeePercentage(double fee) MatexForexProfitAndLossCalculator
inherited
entryFeePercentagePerUnit(double fee) MatexForexProfitAndLossCalculator
inherited
entryPrice(double price) MatexForexProfitAndLossCalculator
inherited
exchangeRateLastUpdateAt(int? exchangeRateLastUpdateAt) MatexForexProfitAndLossCalculator
inherited
exitDiscountAmount(double amount) MatexForexProfitAndLossCalculator
inherited
exitDiscountPercentage(double rate) MatexForexProfitAndLossCalculator
inherited
exitFeeAmount(double fee) MatexForexProfitAndLossCalculator
inherited
exitFeeAmountPerUnit(double fee) MatexForexProfitAndLossCalculator
inherited
exitFeePercentage(double fee) MatexForexProfitAndLossCalculator
inherited
exitFeePercentagePerUnit(double fee) MatexForexProfitAndLossCalculator
inherited
exitPrice(double price) MatexForexProfitAndLossCalculator
inherited
fetchAccountInstrumentMetadata() Future<MatexInstrumentMetadata?>
inherited
fetchBaseInstrumentMetadata() Future<MatexInstrumentMetadata?>
inherited
fetchCounterInstrumentMetadata() Future<MatexInstrumentMetadata?>
inherited
fetchPairMetadata() Future<MatexPairMetadata?>
inherited
fixedCosts(double costs) MatexForexProfitAndLossCalculator
inherited
getPositionSizeWithLotDescriptorAndValue(MatexLotDescriptor lotDescriptor, num value) double
inherited
getState() MatexBaseCoreState
inherited
lot(double lot) MatexForexProfitAndLossCalculator
inherited
lotDescriptors(MatexLotDescriptors lotDescriptors) MatexForexProfitAndLossCalculator
inherited
microLot(double microLot) MatexForexProfitAndLossCalculator
inherited
miniLot(double miniLot) MatexForexProfitAndLossCalculator
inherited
nanoLot(double nanoLot) MatexForexProfitAndLossCalculator
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchState(MatexBaseCoreState partialState) MatexForexProfitAndLossCalculator
inherited
pipPrecision(int? pipPrecision) MatexForexProfitAndLossCalculator
inherited
pipValue(MatexBaseCoreState state, {bool rational = false}) → Decimal
inherited
position(MatexPosition position) MatexForexProfitAndLossCalculator
inherited
positionSize(double? positionSize) MatexForexProfitAndLossCalculator
inherited
rationalPipValue(MatexBaseCoreState state) → Rational
inherited
reset() MatexForexProfitAndLossCalculator
inherited
resetStateProperties(List<String> properties) MatexForexProfitAndLossCalculator
inherited
sanitizeDouble(double value) double
inherited
setDefaultState(MatexBaseCoreState nextDefaultState) MatexForexProfitAndLossCalculator
inherited
setExchangeRates() Future<void>
inherited
setState(MatexBaseCoreState nextState) MatexForexProfitAndLossCalculator
inherited
taxRate(double rate) MatexForexProfitAndLossCalculator
inherited
toPercentageDecimal(num value) → Decimal
inherited
toString() String
A string representation of this object.
inherited
tradingPairExchangeRate(double tradingPairExchangeRate) MatexForexProfitAndLossCalculator
inherited
value() Future<MatexProfitAndLossResult>
override

Operators

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