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