BuyAndHoldStrategyResult class
Object that contains the result of a buy and hold strategy
- Inheritance
-
- Object
- BaseStrategyResult
- BuyAndHoldStrategyResult
Constructors
- BuyAndHoldStrategyResult()
-
BuyAndHoldStrategyResult.fromJson(Map<
String, dynamic> resultJson) -
factory
Properties
- cagr ↔ double
-
Return of the strategy
getter/setter pairinherited
- currentDrawdown ↔ double
-
Current drawdown of the strategy
getter/setter pairinherited
- endDate ↔ DateTime?
-
End date of the strategy
getter/setter pairinherited
- endPrice ↔ double
-
End price of the strategy
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
logs
↔ LinkedHashMap<
String, DateTime> -
getter/setter pairinherited
- mar ↔ double
-
MAR ratio of the strategy: CAGR / maxDrawdown
getter/setter pairinherited
- maxDrawdown ↔ double
-
Maximum drawdown of the strategy
getter/setter pairinherited
-
movingAverages
↔ Map<
int, double> -
Moving averages at the end of the strategy
getter/setter pair
- previousClosePrice ↔ double
-
Yesterday price, useful to calculate the current day variation
getter/setter pair
- progress ↔ int
-
Percentage of strategy_result executed
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sinceLastCloseChange → double
-
How much did the asset changed since the last close
no setter
- startDate ↔ DateTime?
-
Start date of the strategy
getter/setter pairinherited
- tradesNum ↔ int
-
Number of trades in the strategy
getter/setter pairinherited
- tradingYears ↔ double
-
Number of trading years
getter/setter pairinherited
- yesterdayVariation → double
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited