Commit a348565b authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 41d7edf1
...@@ -20,19 +20,19 @@ function run(data, config, risk,forceZero, pfTrade, riskFreeLevel, detail, loss, ...@@ -20,19 +20,19 @@ function run(data, config, risk,forceZero, pfTrade, riskFreeLevel, detail, loss,
let data2 = [] let data2 = []
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
let ft = data[i].openDate.split('-') let ft = data[i].openDate.split('-')
let y = parseFloat(ft[0]) // let y = parseFloat(ft[0])
let m = parseFloat(ft[1]) // let m = parseFloat(ft[1])
if (y < 2017) // if (y < 2017)
continue // continue
//
if (y > 2017) { // if (y > 2017) {
data2.push(data[i]) // data2.push(data[i])
continue // continue
} // }
if (y === 2017) { // if (y === 2017) {
if (m < 9) // if (m < 9)
continue // continue
else // else
data2.push(data[i]) data2.push(data[i])
} }
......
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