Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ai
Commits
da8baf9b
Commit
da8baf9b
authored
Apr 06, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
57d21a7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
16 deletions
+14
-16
final.js
final.js
+5
-5
final1000.js
final1000.js
+5
-5
run.js
run.js
+4
-6
No files found.
final.js
View file @
da8baf9b
...
@@ -39,12 +39,12 @@ async function work() {
...
@@ -39,12 +39,12 @@ async function work() {
}
}
run
(
'
default
'
,
'
compound1000
'
,
arr
,
timestamp
)
await
run
(
'
default
'
,
'
compound1000
'
,
arr
,
timestamp
)
run
(
'
default
'
,
'
compound1000Start
'
,
arr
,
timestamp
)
//
run('default','compound1000Start', arr, timestamp)
run
(
'
default
'
,
'
profitPerMonth1000
'
,
arr
,
timestamp
)
//
run('default','profitPerMonth1000', arr, timestamp)
run
(
'
default
'
,
'
maxtime1000
'
,
arr
,
timestamp
)
//
run('default','maxtime1000', arr, timestamp)
// generateByDrawDown(timestamp,arr)
// generateByDrawDown(timestamp,arr)
await
run
(
'
default
'
,
'
profitPerMonth1000Start
'
,
arr
,
timestamp
)
//
await run('default','profitPerMonth1000Start', arr, timestamp)
...
...
final1000.js
View file @
da8baf9b
...
@@ -39,13 +39,13 @@ async function work() {
...
@@ -39,13 +39,13 @@ async function work() {
}
}
run
(
'
default
'
,
'
compound1000
'
,
arr
,
timestamp
)
await
run
(
'
default
'
,
'
compound1000
'
,
arr
,
timestamp
)
run
(
'
default
'
,
'
compound1000Start
'
,
arr
,
timestamp
)
//
run('default','compound1000Start', arr, timestamp)
run
(
'
default
'
,
'
profitPerMonth1000
'
,
arr
,
timestamp
)
//
run('default','profitPerMonth1000', arr, timestamp)
run
(
'
default
'
,
'
maxtime1000
'
,
arr
,
timestamp
)
//
run('default','maxtime1000', arr, timestamp)
// generateByDrawDown(timestamp,arr)
// generateByDrawDown(timestamp,arr)
await
run
(
'
default
'
,
'
profitPerMonth1000Start
'
,
arr
,
timestamp
)
//
await run('default','profitPerMonth1000Start', arr, timestamp)
...
...
run.js
View file @
da8baf9b
...
@@ -119,12 +119,10 @@ async function run() {
...
@@ -119,12 +119,10 @@ async function run() {
await
fs
.
unlinkSync
(
'
work/
'
+
directory
+
'
/
'
+
csvFile
)
await
fs
.
unlinkSync
(
'
work/
'
+
directory
+
'
/
'
+
csvFile
)
// createfileADV('allDataSortedByProfit', JSON.stringify(arr2, null, 2))
// createfileADV('allDataSortedByProfit', JSON.stringify(arr2, null, 2))
createfileADV
(
'
default
'
,
'
profitPerMonth1000
'
,
JSON
.
stringify
(
arr3
,
null
,
2
))
//
createfileADV('default', 'profitPerMonth1000', JSON.stringify(arr3, 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('default', 'maxtime1000', JSON.stringify(arr1000Maxtime, null, 2))
// createfileADV('allocatedReservePerMonthUnder3', JSON.stringify(arr20MaxNew, null, 2))
// createfileADV('allocatedReserveCompoundUnder3' , JSON.stringify(arrReservCompoundNew, null, 2))
arr20Max
=
[]
arr20Max
=
[]
for
(
let
i
=
0
;
i
<
arr2
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
arr2
.
length
;
i
++
)
{
...
@@ -151,7 +149,7 @@ async function run() {
...
@@ -151,7 +149,7 @@ async function run() {
// createfileADV('allocatedReservePerMonthUnder2', JSON.stringify(arr20MaxNew, null, 2))
// createfileADV('allocatedReservePerMonthUnder2', JSON.stringify(arr20MaxNew, null, 2))
// createfileADV('allocatedReserveCompoundUnder2' , JSON.stringify(arrReservCompoundNew, null, 2))
// createfileADV('allocatedReserveCompoundUnder2' , JSON.stringify(arrReservCompoundNew, null, 2))
startAgain
(
arr
,
configs
.
start
,
configs
.
level
)
//
startAgain(arr, configs.start, configs.level)
// generateBaseDrawDown(arr2)
// generateBaseDrawDown(arr2)
// generateDrawDownBaseStart(arr2,configs.start)
// generateDrawDownBaseStart(arr2,configs.start)
console
.
log
(
'
Done
'
)
console
.
log
(
'
Done
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment