Commit 956e8ec4 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent cf146b92
......@@ -98,7 +98,10 @@ function run(data, config,risk) {
let perp = (config.target * 100) / Math.abs(maxAllocatedMoney)
perp = perp / 100
let sum = Math.abs(maxAllocatedMoney)
if (total ===0)
sum=0
for (let i = 0; i < total; i++)
sum = sum + (sum * perp)
let newCompund = sum / dur
......
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