Commit 25044b25 authored by Ahmad Nemati's avatar Ahmad Nemati

init

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