Commit 9ae470a8 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent d4630b0b
......@@ -963,7 +963,7 @@ function run(data, config, risk, forceZero, pfTrade, riskFreeLevel, detail, loss
tt = tt.split('_')
for (let i = 0; i < tt.length - 1; i++) {
let sums = 0
for (let j = i + 1; j < tt.length - 1; j++) {
for (let j = i ; j < tt.length - 1; j++) {
sums = sums + parseFloat(tt[j])
// console.log(sum,parseFloat(t[j]))
......
......@@ -91,7 +91,7 @@ async function run() {
let closeDate = com[i].closeDate.split('_')
let profits = com[i].profitLossString.split('_')
let side = com[i].sideString.split('_')
for (let j = 0; j < closeDate.length - 2; j++)
for (let j = 0; j < closeDate.length - 1; j++)
add(closeDate[j], parseFloat(profits[j]) - 0.1, side[j])
}
......
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