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
261d9def
Commit
261d9def
authored
Jun 19, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pull
parent
2ec3c1ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
tor.js
tor.js
+2
-2
torobche.js
torobche.js
+5
-4
No files found.
tor.js
View file @
261d9def
...
@@ -123,7 +123,7 @@ async function run()
...
@@ -123,7 +123,7 @@ async function run()
}
}
arrNew
=
_
.
orderBy
(
arrNew
,
[
'
sum
'
])
arrNew
=
_
.
orderBy
(
arrNew
,
[
'
sum
'
])
// console.log(arr
)
console
.
log
(
arrNew
)
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
addDate
(
arr
[
i
])
addDate
(
arr
[
i
])
...
@@ -147,7 +147,7 @@ async function run()
...
@@ -147,7 +147,7 @@ async function run()
}
}
arrDate
=
_
.
orderBy
(
arrDate
,
[
'
sum
'
])
arrDate
=
_
.
orderBy
(
arrDate
,
[
'
sum
'
])
console
.
log
(
arrDate
)
// console.log(dates
)
// console.log('Balance ->',balance)
// console.log('Balance ->',balance)
// console.log('Worth ->',arrNew[0])
// console.log('Worth ->',arrNew[0])
...
...
torobche.js
View file @
261d9def
...
@@ -11,7 +11,7 @@ let balance = lastBalance
...
@@ -11,7 +11,7 @@ let balance = lastBalance
init
()
init
()
let
base
=
1
let
base
=
1
let
com
let
com
s
//profitLossString
//profitLossString
//drawDownString
//drawDownString
...
@@ -30,14 +30,14 @@ async function init() {
...
@@ -30,14 +30,14 @@ async function init() {
}
catch
(
e
)
{
}
catch
(
e
)
{
}
}
com
=
await
fs
.
readFileSync
(
'
t.json
'
,
'
utf8
'
);
com
s
=
await
fs
.
readFileSync
(
'
t.json
'
,
'
utf8
'
);
let
bad
=
await
fs
.
readFileSync
(
'
bad.txt
'
,
'
utf8
'
);
let
bad
=
await
fs
.
readFileSync
(
'
bad.txt
'
,
'
utf8
'
);
bad
=
JSON
.
parse
(
bad
)
bad
=
JSON
.
parse
(
bad
)
base
=
parseFloat
(
bad
.
bad
)
base
=
parseFloat
(
bad
.
bad
)
//console.log(bad)
//console.log(bad)
com
=
JSON
.
parse
(
com
)
com
s
=
JSON
.
parse
(
coms
)
run
()
run
()
...
@@ -77,7 +77,8 @@ async function sleep(millis) {
...
@@ -77,7 +77,8 @@ async function sleep(millis) {
}
}
async
function
run
()
{
async
function
run
()
{
com
=
_
.
shuffle
(
com
)
coms
=
_
.
shuffle
(
coms
)
let
com
=
_
.
uniqBy
(
coms
,
'
platform
'
);
balance
=
lastBalance
balance
=
lastBalance
arr
=
[]
arr
=
[]
resetDates
()
resetDates
()
...
...
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