Commit 75c1816d authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent a59e3c7d
...@@ -98,7 +98,7 @@ function run(data, config) { ...@@ -98,7 +98,7 @@ function run(data, config) {
let compoundPerMonth = (newCompund * 30 * 100) / Math.abs(maxAllocatedMoney) let compoundPerMonth = (newCompund * 30 * 100) / Math.abs(maxAllocatedMoney)
let drawDown = Math.abs(((maxReserve * 100) / maxAllocatedMoney))
let opt = { let opt = {
platform: data[0].signal, platform: data[0].signal,
type: config.type + ' param:' + config.param + ' base:' + config.base + ' target:' + config.target, type: config.type + ' param:' + config.param + ' base:' + config.base + ' target:' + config.target,
...@@ -112,7 +112,8 @@ function run(data, config) { ...@@ -112,7 +112,8 @@ function run(data, config) {
compoundPerMonth: compoundPerMonth, compoundPerMonth: compoundPerMonth,
maxAllocatedMoney: maxAllocatedMoney, maxAllocatedMoney: maxAllocatedMoney,
avgAllocatedMoney: maxAllocatedMoney / total, avgAllocatedMoney: maxAllocatedMoney / total,
drawDown: Math.abs(((maxReserve * 100) / maxAllocatedMoney)), drawDown: drawDown,
drawDownCompoundPerMonth:compoundPerMonth/drawDown,
maxReseve: maxReserve, maxReseve: maxReserve,
avgReserve: maxReserve / total, avgReserve: maxReserve / total,
percentage: percentage, percentage: percentage,
......
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