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
932948f6
Commit
932948f6
authored
Aug 17, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pull
parent
145bd187
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
ai.js
ai.js
+11
-11
No files found.
ai.js
View file @
932948f6
...
@@ -239,8 +239,8 @@ function run(data, config, risk, forceZero, pfTrade, riskFreeLevel, detail, loss
...
@@ -239,8 +239,8 @@ function run(data, config, risk, forceZero, pfTrade, riskFreeLevel, detail, loss
}
}
if
(
dur
<
durs
)
//
if (dur < durs)
return
null
//
return null
let
newP
=
dur
/
data
.
length
let
newP
=
dur
/
data
.
length
// console.log(data.length)
// console.log(data.length)
...
@@ -261,10 +261,10 @@ function run(data, config, risk, forceZero, pfTrade, riskFreeLevel, detail, loss
...
@@ -261,10 +261,10 @@ function run(data, config, risk, forceZero, pfTrade, riskFreeLevel, detail, loss
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
allDonePer
<
-
50
)
//
if (allDonePer < -50)
return
null
//
return null
if
(
maxDays
>
maxTradeDays
)
//
if (maxDays > maxTradeDays)
return
null
//
return null
if
(
runBefore
===
false
)
{
if
(
runBefore
===
false
)
{
if
(
usage
===
'
fft
'
)
{
if
(
usage
===
'
fft
'
)
{
...
@@ -1052,11 +1052,11 @@ function run(data, config, risk, forceZero, pfTrade, riskFreeLevel, detail, loss
...
@@ -1052,11 +1052,11 @@ function run(data, config, risk, forceZero, pfTrade, riskFreeLevel, detail, loss
}
}
let
ff
=
dur
/
7
let
ff
=
dur
/
7
if
(
ff
>
opt
.
allDone
)
//
if (ff > opt.allDone)
return
null
//
return null
//
if
(
opt
.
newAllDonePer
<
10
)
//
if (opt.newAllDonePer < 10)
return
null
//
return null
// if (opt.allDone <60)
// if (opt.allDone <60)
// return null
// return null
...
...
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