Commit c7bf4b50 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 28b5c088
...@@ -155,7 +155,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max ...@@ -155,7 +155,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
if (d.done === true) { if (d.done === true) {
let endDays = getNewMinDiff(startDays, data[i].closeDate) let endDays = getNewMinDiff(startDays, data[i].closeDate)
detailLevel.push({step: step, dur: endDays}) detailLevel.push({step: step, dur: endDays})
durDetail.push({dur:endDays,step:step,days:startDays.split(' ')[0]+'-'+data[i].closeDate.split(' ')[0]}) durDetail.push({dur:endDays.toFixed(2),step:step,days:startDays.split(' ')[0]+'-'+data[i].closeDate.split(' ')[0]})
// console.log(typeof endDays) // console.log(typeof endDays)
//console.log(endDays) //console.log(endDays)
if (endDays > maxDays) if (endDays > maxDays)
......
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