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
95f60096
Commit
95f60096
authored
Jun 16, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pull
parent
a8fbe357
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
torobche.js
torobche.js
+5
-1
No files found.
torobche.js
View file @
95f60096
...
...
@@ -50,6 +50,7 @@ let arrNew=[]
// console.log(arr)
console
.
log
(
'
Balance ->
'
,
balance
)
console
.
log
(
'
Worth ->
'
,
arrNew
[
0
])
let
worth
=
arrNew
[
0
].
sum
console
.
log
(
'
Detail ->
'
,
get
(
arrNew
[
0
].
date
))
let
index
=
arrNew
[
0
].
index
...
...
@@ -72,7 +73,10 @@ let index=arrNew[0].index
for
(
let
i
=
0
;
i
<
arrNew
.
length
;
i
++
)
{
let
det
=
get
(
arrNew
[
i
].
date
)
console
.
log
(
arrNew
[
i
].
date
,
'
Profits->
'
,
arrNew
[
i
].
sum
,
'
Count->
'
,
det
.
count
,
'
Longs->
'
,
det
.
longCount
,
'
Shorts->
'
,
det
.
shortCount
)
if
(
worth
===
arrNew
[
i
].
sum
)
console
.
log
(
'
Worth* ->
'
,
arrNew
[
i
].
date
,
'
Profits->
'
,
arrNew
[
i
].
sum
,
'
Count->
'
,
det
.
count
,
'
Longs->
'
,
det
.
longCount
,
'
Shorts->
'
,
det
.
shortCount
)
else
console
.
log
(
arrNew
[
i
].
date
,
'
Profits->
'
,
arrNew
[
i
].
sum
,
'
Count->
'
,
det
.
count
,
'
Longs->
'
,
det
.
longCount
,
'
Shorts->
'
,
det
.
shortCount
)
}
// console.log(arrNew)
...
...
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