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,
let data2 = []
for (let i = 0; i < data.length; i++) {
let ft = data[i].openDate.split('-')
let y = parseFloat(ft[0])
let m = parseFloat(ft[1])
if (y < 2017)
continue
if (y > 2017) {
data2.push(data[i])
continue
}
if (y === 2017) {
if (m < 9)
continue
else
// let y = parseFloat(ft[0])
// let m = parseFloat(ft[1])
// if (y < 2017)
// continue
//
// if (y > 2017) {
// data2.push(data[i])
// continue
// }
// if (y === 2017) {
// if (m < 9)
// continue
// else
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