Commit 49b51e14 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

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