Commit 389406de authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 2bef73d1
......@@ -67,7 +67,7 @@ async function analyse(body) {
final = final + obj.entry + ',' + obj.exit + ',' + obj.closeTime + ',' + obj.profit + ',' + obj.runUp + ',' + obj.drawDown
let file = await fs.readFileSync('temp/' + indicator + '.csv', 'utf8')
file = file.match(/.+/g)
if (file.length > 2 && file[file.length - 2].includes(obj.side))
if (file.length > 2 && file[file.length - 1].includes(obj.side))
appendCsv(final, indicator)
}
......
......@@ -7,7 +7,7 @@ async function reaD() {
let file = await fs.readFileSync('temp.csv', 'utf8')
file = file.match(/.+/g)
console.log(file[file.length - 2])
console.log(file[file.length - 1])
// let end=candles.split('\n')
}
......
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