Commit 404f7fe7 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 9df7a7fc
......@@ -245,8 +245,8 @@ function run(data, config, risk, forceZero, pfTrade, riskFreeLevel, detail, loss
let newP = dur / data.length
// console.log(data.length)
// console.log(newP)
if (pfTrade < newP)
return null
// if (pfTrade < newP)
// return null
for (let i = 0; i < data.length; i++) {
avgProfit = avgProfit + data[i].profit
......
......@@ -125,7 +125,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 < 1 && last[i].pftrade >= 0.000001 && last[i].maxLevel === 0 && last[i].newAllDonePer >12) {
if (last[i].total < 1 && last[i].maxLevel === 0 && last[i].newAllDonePer >12) {
delete last[i].durDetailText
delete last[i].metaDetailText
let needContinue = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment