Commit afc0d883 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 8e9c5871
......@@ -18,26 +18,26 @@ function run(data, config, risk,forceZero, pfTrade, riskFreeLevel, detail, loss,
, ProfitRunupZeroDrawDown, ProfitRunupZeroProfit, ProfitRunupZeroProfitDrawDown, ProfitRunupZeroProfitRunup, ProfitRunupZeroRunupDrawDown, usage) {
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
// data2.push(data[i])
// }
//
// }
// data = 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
data2.push(data[i])
}
}
data = data2
let type = config.type + ' param:' + config.param + ' base:' + config.base + ' target:' + config.target + ' targetPercentage:' + targetPercentage.enable
......
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