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
164280e1
Commit
164280e1
authored
Apr 24, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pu
parent
4e9e9dba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
final.js
final.js
+2
-2
test_json.js
test_json.js
+4
-9
No files found.
final.js
View file @
164280e1
let
fs
=
require
(
'
fs
'
)
let
_
=
require
(
'
lodash
'
)
let
year
=
2016
let
drawDown
=
[
30
,
40
,
50
]
let
sort
=
'
profitPerMonth
'
let
alocatedReserve
=
3
...
...
@@ -120,7 +120,7 @@ async function run(root, name, directory, timestamp) {
let
las
=
[]
for
(
let
i
=
0
;
i
<
last
.
length
;
i
++
)
{
if
(
i
<
last
.
length
)
if
(
last
[
i
].
total
>
5
&&
last
[
i
].
pftrade
>=
0.000001
&&
last
[
i
].
maxLevel
===
0
)
{
if
(
last
[
i
].
total
>
5
&&
last
[
i
].
pftrade
>=
0.000001
&&
last
[
i
].
maxLevel
===
0
&&
parseFloat
(
last
[
i
].
platform
.
split
(
'
Y
'
)[
0
].
split
(
'
-
'
)[
1
])
<=
year
)
{
delete
last
[
i
].
durDetailText
delete
last
[
i
].
metaDetailText
let
needContinue
=
false
...
...
test_json.js
View file @
164280e1
let
_
=
require
(
'
lodash
'
)
let
arr
=
[
2
,
3
,
5
,
1
,
2
,
2
]
let
t
=
'
last.json-2021Y220217122912_O1_BNC_ETHUSDT_Lp4344_1ETH3.csv
'
let
t
=
'
1000,4845,2,0.10,2.633,1.655%,4.357%,435.71,-0.720,6.053%,-4.357%,-435.71,435.707,000 00:05:00.000,39,3.200,1,,,,,1,,,,,,,-1,999999,999999,000 00:00:19.000,4845,4845,NaN,NaN,0,0,0,0,0,0,0,10000.000,True,True,0.10,0.000,200,100,1400,False,False,True,484.50,242.30,242.20,6713759,1, 0, 0, 0,2423,2422,4845,0.100,2017.08.17 16:45:00.000,2017.08.17 16:50:00.000,0.100,2017.08.17 16:50:00.000,2017.08.17 19:30:00.000,10548.21,548.21,2021.12.04 05:28:19.999,2021.12.04 05:28:39.999,9939.20,-60.80,2018.01.27 03:38:19.999,2018.01.27 03:38:39.999,2017.08.17 16:50:00.000,2017.08.17 16:50:00.000,2017.08.17 16:45:00.000,2017.08.17 16:50:00.000,174.547,10000.00,10548.21,548.21,10373.66,373.66,2021.12.04 05:28:19.999,2022.01.05 17:48:19.999,609.010,10000.00,10060.80,60.80,9451.79,-548.21,2018.01.27 03:38:19.999,2021.12.04 05:28:19.999,9999.12.31 23:59:59.999,2017.08.17 04:00:00.000,2023.12.01 00:00:00.000,2296d 20:00:00,"Lp1000_1ETH1"
'
let
last
=
t
.
split
(
'
,
'
)
let
timeStamp
=
last
[
13
]
let
pvtPeriod
=
last
[
14
]
let
atrFactor
=
last
[
15
]
let
atrPeriod
=
last
[
16
]
console
.
log
(
atrFactor
)
\ No newline at end of file
console
.
log
()
\ No newline at end of file
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