Commit c48db3e6 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent fdf71b1d
......@@ -132,6 +132,8 @@ let obj
if (needPrintData)
saveData.push(obj)
}
let newReserv=maxReserve
maxReserve=maxMeta
let firstMaxAllocatedMoney = maxAllocatedMoney
if (config.param !== 0) {
for (let i = 0; i < risk; i++)
......@@ -214,7 +216,7 @@ let obj
drawDown: drawDown,
CompoundPerMonthDrawDown: compoundPerMonth / drawDown,
profitPerMonthDrawDown: Math.abs(profitPerMonth) / drawDown,
maxReseve: maxReserve,
maxReseve: newReserv,
maxMeta:maxMeta,
avgReserve: maxReserve / total,
percentage: percentage,
......
......@@ -126,6 +126,7 @@ async function copyAllFiles() {
}
let res = await fs.readFileSync('./detailsJson/' + configs[z], 'utf8');
res = JSON.parse(res)
let obj={}
for (let i = 0; i < res.length; i++) {
// console.log(res[i].platform.split('-'))
......@@ -136,6 +137,8 @@ async function copyAllFiles() {
}
// let files = await fs.readdirSync('files')
// let size = await fs.read
// for (let i = 0; i < files.length; i++) {
......
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