Commit 62d9b746 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent c2a1da9a
...@@ -68,12 +68,14 @@ async function run() { ...@@ -68,12 +68,14 @@ async function run() {
arr2 = _.orderBy(arr2, ['profitPerMonthDrawDown'], ['desc']); arr2 = _.orderBy(arr2, ['profitPerMonthDrawDown'], ['desc']);
let arrMaxTime=_.orderBy(arr2, ['maxRuntime']);
let arr20Max = [] let arr20Max = []
let arr1000Compound = [] let arr1000Compound = []
let arrReserv = _.orderBy(arr2, ['percentage'], ['asc']); let arrReserv = _.orderBy(arr2, ['percentage'], ['asc']);
let arrCompound = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']); let arrCompound = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']);
let arrResrv200 = [] let arrResrv200 = []
let arr1000Maxtime=[]
let arrReservCompound = [] let arrReservCompound = []
for (let i = 0; i < 1000; i++) { for (let i = 0; i < 1000; i++) {
if (typeof arr2[i] !== "undefined") if (typeof arr2[i] !== "undefined")
...@@ -82,6 +84,9 @@ async function run() { ...@@ -82,6 +84,9 @@ async function run() {
arrResrv200.push(arrReserv[i]) arrResrv200.push(arrReserv[i])
if (typeof arrCompound[i] !== "undefined") if (typeof arrCompound[i] !== "undefined")
arr1000Compound.push(arrCompound[i]) arr1000Compound.push(arrCompound[i])
if (typeof arrMaxTime[i] !== "undefined")
arr1000Maxtime.push(arrMaxTime[i])
} }
...@@ -115,6 +120,7 @@ async function run() { ...@@ -115,6 +120,7 @@ async function run() {
createfileADV('default', 'profitPerMonth1000', JSON.stringify(arr3, null, 2)) createfileADV('default', 'profitPerMonth1000', JSON.stringify(arr3, null, 2))
// createfileADV('percentage1000', JSON.stringify(arrResrv200, null, 2)) // createfileADV('percentage1000', JSON.stringify(arrResrv200, null, 2))
createfileADV('default', 'compound1000', JSON.stringify(arr1000Compound, null, 2)) createfileADV('default', 'compound1000', JSON.stringify(arr1000Compound, null, 2))
createfileADV('default', 'maxtime1000', JSON.stringify(arr1000Maxtime, null, 2))
// createfileADV('allocatedReservePerMonthUnder3', JSON.stringify(arr20MaxNew, null, 2)) // createfileADV('allocatedReservePerMonthUnder3', JSON.stringify(arr20MaxNew, null, 2))
// createfileADV('allocatedReserveCompoundUnder3' , JSON.stringify(arrReservCompoundNew, null, 2)) // createfileADV('allocatedReserveCompoundUnder3' , JSON.stringify(arrReservCompoundNew, null, 2))
......
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