Commit d9d14ab5 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 312fdfb5
......@@ -34,6 +34,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
let curDrawDown = 0
let maxAllocatedMoney = 0
let maxLevel = 0
let maxRuntime=0
let realProfit = 0
// console.log(data)
......@@ -193,6 +194,8 @@ runnigTime=runnigTime/3600
if (needPrintData)
obj.runnigTime = runnigTime
maxRuntime=maxRuntime+runnigTime
listDays.push(endDays)
realProfit = realProfit + d.realProfit
......@@ -355,6 +358,7 @@ runnigTime=runnigTime/3600
dur: dur,
maxDays: maxDays,
avgDays: s,
maxRuntime:maxRuntime,
allLoss: allLoss,
totalFinal: oldTotalFinal,
totalPlus: totalPlus,
......
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