Commit 8c7d64d7 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent f7a1eff7
......@@ -42,6 +42,7 @@ async function work() {
run('default','compound1000', arr, timestamp)
run('default','compound1000Start', arr, timestamp)
run('default','profitPerMonth1000', arr, timestamp)
run('default','maxtime1000', arr, timestamp)
// generateByDrawDown(timestamp,arr)
await run('default','profitPerMonth1000Start', arr, timestamp)
......@@ -115,6 +116,9 @@ let t=name.toLowerCase()
if (t.includes('compound') || name === 'compound1000' || name === 'allocatedReserveCompoundUnder3' || name === 'allocatedReserveCompoundUnder2' || name === 'compound1000Start')
last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']);
if ( name === 'maxtime1000')
last = _.orderBy(arr2, ['maxRuntime']);
......
......@@ -42,6 +42,8 @@ async function work() {
run('default','compound1000', arr, timestamp)
run('default','compound1000Start', arr, timestamp)
run('default','profitPerMonth1000', arr, timestamp)
run('default','maxtime1000', arr, timestamp)
// generateByDrawDown(timestamp,arr)
await run('default','profitPerMonth1000Start', arr, timestamp)
......@@ -115,6 +117,8 @@ async function run(root,name, directory, timestamp) {
if (t.includes('compound') || name === 'compound1000' || name === 'allocatedReserveCompoundUnder3' || name === 'allocatedReserveCompoundUnder2' || name === 'compound1000Start')
last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']);
if ( name === 'maxtime1000')
last = _.orderBy(arr2, ['maxRuntime']);
......
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