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

init

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