Commit 12757148 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 8b30b0d1
...@@ -182,6 +182,9 @@ let obj ...@@ -182,6 +182,9 @@ let obj
let totalFinal = total * config.target let totalFinal = total * config.target
let totalPlus=totalFinal+allLoss
let oldTotalFinal=totalFinal
totalFinal=totalPlus
let newT = totalFinal / dur let newT = totalFinal / dur
let percentage = maxReserve + totalFinal let percentage = maxReserve + totalFinal
percentage = maxAllocatedMoney / percentage percentage = maxAllocatedMoney / percentage
...@@ -224,7 +227,7 @@ let obj ...@@ -224,7 +227,7 @@ let obj
maxLevel: maxLevel, maxLevel: maxLevel,
dur: dur, dur: dur,
allLoss:allLoss, allLoss:allLoss,
totalFinal: totalFinal, totalFinal: oldTotalFinal,
totalCompound: sum, totalCompound: sum,
profitPerMonth: Math.abs(profitPerMonth), profitPerMonth: Math.abs(profitPerMonth),
compoundPerMonth: compoundPerMonth, compoundPerMonth: compoundPerMonth,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment