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

git pull

parent 7d0626f8
...@@ -30,7 +30,8 @@ async function init() { ...@@ -30,7 +30,8 @@ async function init() {
arrange(arr[i]) arrange(arr[i])
// console.log(arr[0].arr[0]) // console.log(arr[0].arr[0])
manage() manage()
console.log(all[0].data) print()
//console.log(all[0].data)
// console.log(files) // console.log(files)
// let com = await fs.readFileSync('E:\\fail\\btc1', 'utf8'); // let com = await fs.readFileSync('E:\\fail\\btc1', 'utf8');
...@@ -39,6 +40,23 @@ async function init() { ...@@ -39,6 +40,23 @@ async function init() {
} }
async function print()
{
for (let i=0;i<all.length;i++)
{
let text='Ticket,Open_Time,Type,Symbol,Open_Price,Close_Price,Close_Time,dPrfPipWrtOpPrPc,dAgeHiPrfInPrPc_RunUpPc,dAgeLoPrfInPrPc_DrawDownPc\n'
let data=all[i].data
for (let j=0;j<data.length;j++)
{
text=text+data[j].text
if (j !==data.length-1)
text=text+'\n'
}
console.log(text)
}
}
function manage() { function manage() {
for (let i = 0; i < all.length; i++) { for (let i = 0; i < all.length; i++) {
let data = all[i].data let data = all[i].data
......
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