Commit 90fae3e0 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 13133a6c
...@@ -37,7 +37,7 @@ async function run() { ...@@ -37,7 +37,7 @@ async function run() {
} }
// console.log(arr2) // console.log(arr2)
arr2 = _.without(arr2, undefined, null); arr2 = _.without(arr2, undefined, null);
generateBaseDrawDown(arr2)
arr2 = _.orderBy(arr2, ['profitPerMonthDrawDown'], ['desc']); arr2 = _.orderBy(arr2, ['profitPerMonthDrawDown'], ['desc']);
let arr20Max = [] let arr20Max = []
let arr1000Compound = [] let arr1000Compound = []
...@@ -111,6 +111,7 @@ async function run() { ...@@ -111,6 +111,7 @@ async function run() {
// createfileADV('allocatedReserveCompoundUnder2' , JSON.stringify(arrReservCompoundNew, null, 2)) // createfileADV('allocatedReserveCompoundUnder2' , JSON.stringify(arrReservCompoundNew, null, 2))
startAgain(arr, configs.start) startAgain(arr, configs.start)
generateBaseDrawDown(arr2)
console.log('Done') console.log('Done')
await makeStatus(directory, '0') await makeStatus(directory, '0')
// process.exit(0) // process.exit(0)
...@@ -126,7 +127,7 @@ async function generateBaseDrawDown(arrLast) ...@@ -126,7 +127,7 @@ async function generateBaseDrawDown(arrLast)
let newArr=[] let newArr=[]
for (let i=0;i<arr2.length;i++) { for (let i=0;i<arr2.length;i++) {
console.log(arr2[i].drawDown) // console.log(arr2[i].drawDown)
if (arr2[i].drawDown >= drawDown[z]) if (arr2[i].drawDown >= drawDown[z])
newArr.push(arr2[i]) newArr.push(arr2[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