Commit cec3934a authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent ba3f695c
...@@ -79,7 +79,9 @@ function grabData(data) { ...@@ -79,7 +79,9 @@ function grabData(data) {
let profit = parseFloat(d[7]) let profit = parseFloat(d[7])
let runUp = parseFloat(d[8]) let runUp = parseFloat(d[8])
let drawDown = parseFloat(d[9]) let drawDown = parseFloat(d[9])
let closeTime = d[6] let t=d[6]
t=t.split(':')
let closeTime = t[0]+':'+t[1]
if (isNaN(profit)) if (isNaN(profit))
continue continue
......
let t='2800,2022.05.24 16:57:00.223,Buy,ETHUSDT,1958.87,1953.76,2022.05.24 17:02:00.063,-0.26,0.10,-0.35' // let t='2800,2022.05.24 16:57:00.223,Buy,ETHUSDT,1958.87,1953.76,2022.05.24 17:02:00.063,-0.26,0.10,-0.35'
t=t.split(',') // t=t.split(',')
for (let i=0;i<t.length;i++) // for (let i=0;i<t.length;i++)
console.log(i,t[i]) // console.log(i,t[i])
let t='2022.05.24 15:26:00.000'
t=t.split(':')
let date=t[0]+':'+t[1]
console.log(date)
// let t='last.json-220217122835_O1_BNC_ETHUSDT_Lp3191_1ETH1.csv' // let t='last.json-220217122835_O1_BNC_ETHUSDT_Lp3191_1ETH1.csv'
......
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