Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
forex
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
forex
Commits
f9804ffc
Commit
f9804ffc
authored
Sep 02, 2021
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
393a9f5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
8 deletions
+38
-8
generate.js
generate.js
+25
-8
test_cal.js
test_cal.js
+13
-0
No files found.
generate.js
View file @
f9804ffc
...
@@ -12,7 +12,6 @@ let arr=[
...
@@ -12,7 +12,6 @@ let arr=[
{
{
type
:
"
zarib
"
,
type
:
"
zarib
"
,
commision
:
0.0008
,
commision
:
0.0008
,
base
:
100
,
paramStart
:
100
,
paramStart
:
100
,
paramEnd
:
1000
,
paramEnd
:
1000
,
inidicator
:
0.1
inidicator
:
0.1
...
@@ -21,7 +20,6 @@ let arr=[
...
@@ -21,7 +20,6 @@ let arr=[
{
{
type
:
"
base
"
,
type
:
"
base
"
,
commision
:
0.0008
,
commision
:
0.0008
,
base
:
100
,
paramStart
:
100
,
paramStart
:
100
,
paramEnd
:
1000
,
paramEnd
:
1000
,
inidicator
:
0.1
inidicator
:
0.1
...
@@ -69,6 +67,7 @@ function createfile(data) {
...
@@ -69,6 +67,7 @@ function createfile(data) {
async
function
add
(
data
)
async
function
add
(
data
)
{
{
let
old
=
data
let
arr
=
[]
let
arr
=
[]
if
(
data
.
type
===
'
plus
'
)
if
(
data
.
type
===
'
plus
'
)
{
{
...
@@ -87,12 +86,30 @@ async function add(data)
...
@@ -87,12 +86,30 @@ async function add(data)
data
.
paramStart
=
data
.
paramStart
+
data
.
inidicator
data
.
paramStart
=
data
.
paramStart
+
data
.
inidicator
if
(
data
.
type
===
'
plus
'
)
if
(
data
.
type
===
'
plus
'
)
data
.
base
=
data
.
paramStart
data
.
base
=
data
.
paramStart
arr
.
push
({
// arr.push({
type
:
data
.
type
,
// type: data.type,
commision
:
data
.
commision
,
// commision: data.commision,
base
:
data
.
base
,
// base: data.base,
param
:
data
.
paramStart
// param: data.paramStart
})
// })
if
(
data
.
type
!==
'
plus
'
)
{
for
(
let
i
=
10
;
i
<
1000
;
i
=
i
+
10
)
{
arr
.
push
({
type
:
data
.
type
,
commision
:
data
.
commision
,
base
:
i
,
param
:
data
.
paramStart
})
}
}
}
}
}
}
\ No newline at end of file
test_cal.js
0 → 100644
View file @
f9804ffc
let
arr
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
]
let
arr2
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
]
let
t
=
0
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
for
(
let
j
=
0
;
j
<
arr2
.
length
;
j
++
)
for
(
let
z
=
0
;
z
<
arr2
.
length
;
z
++
)
t
++
console
.
log
(
t
)
\ 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