Commit 406463c9 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent b3afa61f
......@@ -80,7 +80,7 @@ function run(data, config,risk,pfTrade) {
maxAllocatedMoney=maxAllocatedMoney*config.param
}
// let newLevel=[]
let newLevel=[]
let newLevelText=''
for (let i=0;i<(maxLevel+1);i++)
{
......@@ -89,10 +89,10 @@ function run(data, config,risk,pfTrade) {
let per=parseFloat((count/total)*100).toFixed(1)
newLevelText=newLevelText+i+':'+count+':'+per+'%'+','
// if ((i+2) %12 ===0)
// newLevelText=newLevelText+'\n'
newLevel.push(i+':'+count+':'+per+'%')
// newLevelText=newLevelText+i+':'+count+':'+per+'%'+','
// if ((i+2) %12 ===0)
// newLevelText=newLevelText+'\n'
}
// console.log(newLevelText)
......@@ -161,7 +161,7 @@ function run(data, config,risk,pfTrade) {
allocatedReserve: (maxAllocatedMoney) / Math.abs(maxReserve),
minus: minus,
risk:risk,
levels:newLevelText,
levels:newLevel,
pftrade:newP,
countOfTrade:data.length
......
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