Commit 93e20274 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent e8ab8cc4
......@@ -69,10 +69,10 @@ async function analyse(body) {
final = final + ','
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)
console.log('try Check ',obj.side,file[file.length - 1])
if (file.length > 2 && !file[file.length - 1].includes(obj.side))
// let file = await fs.readFileSync('temp/' + indicator + '.csv', 'utf8')
// file = file.match(/.+/g)
// console.log('try Check ',obj.side,file[file.length - 1])
// if (file.length > 2 && !file[file.length - 1].includes(obj.side))
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