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
696e02a3
Commit
696e02a3
authored
Sep 02, 2021
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
f9804ffc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
ai.js
ai.js
+4
-4
generate.js
generate.js
+2
-8
No files found.
ai.js
View file @
696e02a3
...
...
@@ -33,7 +33,7 @@ function run(data, config) {
money
=
config
.
base
*
(
step
+
1
)
}
let
d
=
inlineCheck
(
money
,
commision
,
data
[
i
],
profit
,
lastCom
)
let
d
=
inlineCheck
(
money
,
commision
,
data
[
i
],
profit
,
lastCom
,
config
.
target
)
if
(
Math
.
abs
(
d
.
reserve
)
>
Math
.
abs
(
maxReserve
))
...
...
@@ -90,7 +90,7 @@ function run(data, config) {
let
opt
=
{
platform
:
data
[
0
].
signal
,
type
:
config
.
type
+
'
param:
'
+
config
.
param
+
'
base:
'
+
config
.
base
,
type
:
config
.
type
+
'
param:
'
+
config
.
param
+
'
base:
'
+
config
.
base
+
'
target:
'
+
config
.
target
,
total
:
total
,
avgLevel
:
maxLevel
/
total
,
maxLevel
:
maxLevel
,
...
...
@@ -118,12 +118,12 @@ function run(data, config) {
}
function
inlineCheck
(
money
,
com
,
data
,
profit
,
lastCom
)
{
function
inlineCheck
(
money
,
com
,
data
,
profit
,
lastCom
,
tar
)
{
// console.log(profit)
com
=
com
*
money
let
target
=
money
+
Math
.
abs
(
profit
)
+
com
+
lastCom
+
1
let
target
=
money
+
Math
.
abs
(
profit
)
+
com
+
lastCom
+
tar
let
reserve
=
percentage
(
money
,
data
.
drawDown
)
...
...
generate.js
View file @
696e02a3
let
arr
=
[
{
type
:
"
plus
"
,
commision
:
0.0008
,
base
:
100
,
paramStart
:
100
,
paramEnd
:
1000
,
inidicator
:
100
},
{
type
:
"
zarib
"
,
commision
:
0.0008
,
...
...
@@ -96,10 +88,12 @@ async function add(data)
{
for
(
let
i
=
10
;
i
<
1000
;
i
=
i
+
10
)
{
for
(
let
z
=
0.5
;
z
<
5
;
z
=
z
+
0.5
)
arr
.
push
({
type
:
data
.
type
,
commision
:
data
.
commision
,
base
:
i
,
target
:
z
,
param
:
data
.
paramStart
})
}
...
...
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