clone method
Creates a copy of this TModel.
For example:
var myModel2 = myModel1.clone();
Implementation
@override
MatexBaseCoreState clone() {
return MatexBaseCoreState(
accountCode: accountCode,
baseCode: baseCode,
counterCode: counterCode,
customPrice: customPrice,
highPrice: highPrice,
lowPrice: lowPrice,
precision: precision,
extensionLevels: extensionLevels,
counterAccountCurrencyPairExchangeRate:
counterAccountCurrencyPairExchangeRate,
retracementLevels: retracementLevels,
trend: trend,
tradingPairExchangeRate: tradingPairExchangeRate,
positionSize: positionSize,
pipPrecision: pipPrecision,
lotDescriptors: lotDescriptors,
baseListedSecond: baseListedSecond,
leverage: leverage,
closePrice: closePrice,
openPrice: openPrice,
method: method,
accountSize: accountSize,
amountAtRisk: amountAtRisk,
riskRatio: riskRatio,
entryPrice: entryPrice,
position: position,
stopLossPips: stopLossPips,
stopLossPrice: stopLossPrice,
stopLossAmount: stopLossAmount,
takeProfitPips: takeProfitPips,
takeProfitPrice: takeProfitPrice,
takeProfitAmount: takeProfitAmount,
exchangeRateLastUpdateAt: exchangeRateLastUpdateAt,
exitPrice: exitPrice,
entryFeePercentage: entryFeePercentage,
entryFeeAmount: entryFeeAmount,
exitFeePercentage: exitFeePercentage,
exitFeeAmount: exitFeeAmount,
taxRate: taxRate,
priceA: priceA,
priceB: priceB,
fixedCosts: fixedCosts,
exitDiscountAmount: exitDiscountAmount,
exitDiscountPercentage: exitDiscountPercentage,
entryFeePercentagePerUnit: entryFeePercentagePerUnit,
entryFeeAmountPerUnit: entryFeeAmountPerUnit,
exitFeePercentagePerUnit: exitFeePercentagePerUnit,
exitFeeAmountPerUnit: exitFeeAmountPerUnit,
dividendPaymentFrequency: dividendPaymentFrequency,
annualSharePriceIncrease: annualSharePriceIncrease,
annualDividendIncrease: annualDividendIncrease,
annualContribution: annualContribution,
numberOfShares: numberOfShares,
dividendYield: dividendYield,
yearsToGrow: yearsToGrow,
sharePrice: sharePrice,
drip: drip,
taxExemptAmountPerYear: taxExemptAmountPerYear,
totalDividend: totalDividend,
netIncome: netIncome,
);
}