Commit 098c651d authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent ba8401d0
......@@ -175,6 +175,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
let realProfit = 0
let dateString = ''
let runupString = ''
let profitLossString=''
let sideString = ''
// console.log(data)
......@@ -819,7 +820,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
} else {
profitLossString = profitLossString + data[i].profit + '_'
lossDone++
lossDonePer=lossDonePer+data[i].profit-0.1
allDonePer=allDonePer+data[i].profit-0.1
......@@ -992,9 +993,9 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
dateString: dateString,
runupString: runupString,
sideString: sideString,
profitLossString:profitLossString,
firstMaxAllocatedMoney: firstMaxAllocatedMoney,
maxAllocatedMoney: maxAllocatedMoney,
avgAllocatedMoney: maxAllocatedMoney / total,
drawDown: drawDown,
CompoundPerMonthDrawDown: compoundPerMonth / drawDown,
......
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