Commit 60ff553c authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent bb34606d
...@@ -74,8 +74,8 @@ async function run(name, directory, timestamp) { ...@@ -74,8 +74,8 @@ async function run(name, directory, timestamp) {
if (name === 'profitPerMonth1000' || name === 'allocatedReservePerMonthUnder3' || name === 'allocatedReservePerMonthUnder2') if (name === 'profitPerMonth1000' || name === 'allocatedReservePerMonthUnder3' || name === 'allocatedReservePerMonthUnder2')
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')
last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']); last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']);
......
...@@ -74,8 +74,8 @@ async function run(name, directory, timestamp) { ...@@ -74,8 +74,8 @@ async function run(name, directory, timestamp) {
if (name === 'profitPerMonth1000' || name === 'allocatedReservePerMonthUnder3' || name === 'allocatedReservePerMonthUnder2') if (name === 'profitPerMonth1000' || name === 'allocatedReservePerMonthUnder3' || name === 'allocatedReservePerMonthUnder2')
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')
last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']); last = _.orderBy(arr2, ['CompoundPerMonthDrawDown'], ['desc']);
......
...@@ -87,7 +87,7 @@ async function run() { ...@@ -87,7 +87,7 @@ async function run() {
await fs.unlinkSync(directory + '/' + csvFile) await fs.unlinkSync(directory + '/' + csvFile)
// createfileADV('allDataSortedByProfit', JSON.stringify(arr2, null, 2)) // createfileADV('allDataSortedByProfit', JSON.stringify(arr2, null, 2))
createfileADV('profitPerMonth1000', JSON.stringify(arr3, null, 2)) createfileADV('profitPerMonth1000', JSON.stringify(arr3, null, 2))
createfileADV('percentage1000', JSON.stringify(arrResrv200, null, 2)) // createfileADV('percentage1000', JSON.stringify(arrResrv200, null, 2))
createfileADV('compound1000', JSON.stringify(arr1000Compound, null, 2)) createfileADV('compound1000', JSON.stringify(arr1000Compound, 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