Commit 7d19d601 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 9cb0e01c
...@@ -36,10 +36,10 @@ async function work() { ...@@ -36,10 +36,10 @@ async function work() {
run('profitPerMonth1000', arr, timestamp) run('profitPerMonth1000', arr, timestamp)
run('percentage1000', arr, timestamp) run('percentage1000', arr, timestamp)
run('compound1000', arr, timestamp) run('compound1000', arr, timestamp)
run('allocatedReservePerMonthUnder3', arr, timestamp) run('profitPerMonth1000Start', arr, timestamp)
run('allocatedReserveCompoundUnder3', arr, timestamp) await run('compound1000Start', arr, timestamp)
run('allocatedReservePerMonthUnder2', arr, timestamp) // run('allocatedReservePerMonthUnder2', arr, timestamp)
await run('allocatedReserveCompoundUnder2', arr, timestamp) // await run('allocatedReserveCompoundUnder2', arr, timestamp)
} }
...@@ -71,13 +71,13 @@ async function run(name, directory, timestamp) { ...@@ -71,13 +71,13 @@ async function run(name, directory, timestamp) {
} }
if (name === 'profitPerMonth1000' || name === 'allocatedReservePerMonthUnder3' || name === 'allocatedReservePerMonthUnder2') if (name === 'profitPerMonth1000' || name === 'allocatedReservePerMonthUnder3' || name === 'allocatedReservePerMonthUnder2' || name === 'profitPerMonth1000Start')
last = _.orderBy(arr2, ['profitPerMonthDrawDown'], ['desc']); last = _.orderBy(arr2, ['profitPerMonthDrawDown'], ['desc']);
// if (name === 'percentage1000') // if (name === 'percentage1000')
// last = _.orderBy(arr2, ['percentage'], ['asc']); // last = _.orderBy(arr2, ['percentage'], ['asc']);
if (name === 'compound1000' || name === 'allocatedReserveCompoundUnder3' || name === 'allocatedReserveCompoundUnder2') if (name === 'compound1000' || name === 'allocatedReserveCompoundUnder3' || name === 'allocatedReserveCompoundUnder2' || name === 'compound1000Start')
last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']); last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']);
// if (name === 'allocatedReservePerMonthUnder2' || name === 'allocatedReservePerMonthUnder3') { // if (name === 'allocatedReservePerMonthUnder2' || name === 'allocatedReservePerMonthUnder3') {
......
...@@ -36,10 +36,13 @@ async function work() { ...@@ -36,10 +36,13 @@ async function work() {
run('profitPerMonth1000', arr, timestamp) run('profitPerMonth1000', arr, timestamp)
run('percentage1000', arr, timestamp) run('percentage1000', arr, timestamp)
run('compound1000', arr, timestamp) run('compound1000', arr, timestamp)
run('profitPerMonth1000Start', arr, timestamp)
await run('compound1000Start', arr, timestamp)
// run('allocatedReservePerMonthUnder3', arr, timestamp) // run('allocatedReservePerMonthUnder3', arr, timestamp)
// run('allocatedReserveCompoundUnder3', arr, timestamp) // run('allocatedReserveCompoundUnder3', arr, timestamp)
// run('allocatedReservePerMonthUnder2', arr, timestamp) // run('allocatedReservePerMonthUnder2', arr, timestamp)
await run('allocatedReserveCompoundUnder2', arr, timestamp) // await run('allocatedReserveCompoundUnder2', arr, timestamp)
} }
...@@ -71,13 +74,13 @@ async function run(name, directory, timestamp) { ...@@ -71,13 +74,13 @@ async function run(name, directory, timestamp) {
} }
if (name === 'profitPerMonth1000' || name === 'allocatedReservePerMonthUnder3' || name === 'allocatedReservePerMonthUnder2') if (name === 'profitPerMonth1000' || name === 'allocatedReservePerMonthUnder3' || name === 'allocatedReservePerMonthUnder2' || name === 'profitPerMonth1000Start')
last = _.orderBy(arr2, ['profitPerMonthDrawDown'], ['desc']); last = _.orderBy(arr2, ['profitPerMonthDrawDown'], ['desc']);
// if (name === 'percentage1000') // if (name === 'percentage1000')
// last = _.orderBy(arr2, ['percentage'], ['asc']); // last = _.orderBy(arr2, ['percentage'], ['asc']);
if (name === 'compound1000' || name === 'allocatedReserveCompoundUnder3' || name === 'allocatedReserveCompoundUnder2') if (name === 'compound1000' || name === 'allocatedReserveCompoundUnder3' || name === 'allocatedReserveCompoundUnder2' || name === 'compound1000Start')
last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']); last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']);
// if (name === 'allocatedReservePerMonthUnder2' || name === 'allocatedReservePerMonthUnder3') { // if (name === 'allocatedReservePerMonthUnder2' || name === 'allocatedReservePerMonthUnder3') {
......
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