Commit 5edd8ab2 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 18963d6e
...@@ -92,8 +92,31 @@ async function analyse(body) { ...@@ -92,8 +92,31 @@ async function analyse(body) {
// 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)
// appendCsvtoMain(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 + '_')) {
appendtoFile(files[i],data)
}
}
}
function appendtoFile(name,data)
{
fs.appendFile('E:\\YashilFinal\\'+name, data + '\n', function (err) {
if (err) throw err;
});
} }
function getPercent(basePrice, value) { function getPercent(basePrice, value) {
......
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