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
85e595bb
Commit
85e595bb
authored
Jun 16, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pull
parent
5e04ad26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
torobche.js
torobche.js
+4
-3
No files found.
torobche.js
View file @
85e595bb
...
@@ -5,7 +5,8 @@ const uuid = require('uniqid')
...
@@ -5,7 +5,8 @@ const uuid = require('uniqid')
let
pair
=
'
BNB
'
let
pair
=
'
BNB
'
let
res
let
res
let
arr
=
[]
let
arr
=
[]
let
balance
=
10000
let
lastBalance
=
10000
let
balance
=
lastBalance
init
()
init
()
//profitLossString
//profitLossString
...
@@ -53,7 +54,7 @@ async function init() {
...
@@ -53,7 +54,7 @@ async function init() {
console
.
log
(
'
Balance ->
'
,
balance
)
console
.
log
(
'
Balance ->
'
,
balance
)
console
.
log
(
'
Worth ->
'
,
arrNew
[
0
])
console
.
log
(
'
Worth ->
'
,
arrNew
[
0
])
let
worth
=
arrNew
[
0
].
sum
let
worth
=
arrNew
[
0
].
sum
let
start
=
false
let
start
=
false
let
arr2
=
[]
let
arr2
=
[]
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
...
@@ -72,7 +73,7 @@ async function init() {
...
@@ -72,7 +73,7 @@ async function init() {
arr2
.
push
(
arr
[
i
])
arr2
.
push
(
arr
[
i
])
}
}
balance
=
10000
balance
=
lastBalance
for
(
let
i
=
0
;
i
<
arr2
.
length
;
i
++
)
for
(
let
i
=
0
;
i
<
arr2
.
length
;
i
++
)
{
{
balance
=
balance
+
arr2
[
i
].
profit
balance
=
balance
+
arr2
[
i
].
profit
...
...
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