Commit a6abdb39 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 862f08d3
......@@ -87,20 +87,18 @@ async function analyse(body) {
final = final + ',BTCUSDT,'
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))
indicator = indicator.replace('Kelt', 'btc4').replace('SOTT', 'btc3').replace('Pmax', 'btc2').replace('PPST', 'btc1').replace('.csv', '')
// appendCsv(final, indicator)
appendCsvtoMain(final,indicator)
updateVars(indicator,final)
}
async function appendCsvtoMain(data, config) {
config = config.replace('Kelt', 'btc4').replace('SOTT', 'btc3').replace('Pmax', 'btc2').replace('PPST', 'btc1').replace('.csv', '')
updateVars(config,data)
for (let i = 0; i < files.length; i++) {
if (files[i].startsWith(config + '_')) {
......
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