Commit 94fdeb9e authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 6c488fd4
......@@ -77,7 +77,8 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
if (data[i].profit <0) {
allLossProfit=allLossProfit+Math.abs(data[i].profit)
allLossProfit=allLossProfit+data[i].profit
console.log(allLossProfit)
countDrop++
}
else {
......@@ -89,7 +90,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
// if (countDrop <fft)
// continue
if (Math.abs(allLossProfit)< Math.abs(data[i].profit))
if (allLossProfit> fftPercent)
continue
}
runBefore=true
......
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