Commit 3331c50d authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 4c16ffe6
......@@ -89,7 +89,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel) {
for (let i = 0; i < (maxLevel + 1); i++) {
let count = counter(i, levels)
// newLevel.push({level:i,count:count})
let per = parseFloat((count / total) * 100).toFixed(1)
let per = parseFloat((count / allTotal) * 100).toFixed(1)
newLevelText = newLevelText + i + ':' + count + ':' + per + '%' + ','
......
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