Commit bca1fd6c authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 0d047113
...@@ -108,6 +108,7 @@ function run(data, config) { ...@@ -108,6 +108,7 @@ function run(data, config) {
avgReserve: maxReserve / total, avgReserve: maxReserve / total,
percentage: percentage, percentage: percentage,
avgProfitPerDay:newT, avgProfitPerDay:newT,
allocatedReserve:(maxAllocatedMoney)/Math.abs(maxReserve),
minus: minus, minus: minus,
......
...@@ -40,11 +40,11 @@ async function run() { ...@@ -40,11 +40,11 @@ async function run() {
arrResrv200.push(arrReserv[i]) arrResrv200.push(arrReserv[i])
} }
for (let i=0;i<arr2.length;i++) for (let i=0;i<arrReserv.length;i++)
{ {
let t=(arr2[i].maxAllocatedMoney)/Math.abs(arr2[i].maxReseve)
if (t<configs.alocatedReserve) if (arrReserv[i].allocatedReserve < configs.alocatedReserve)
arr20Max.push(arr2[i]) arr20Max.push(arrReserv[i])
} }
......
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