Commit e380538e authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent cbe19f3c
......@@ -201,23 +201,21 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
if (endDays > maxDays)
maxDays = endDays
// let runnigTime = 0
// runnigTime = calculateRunnigTime(data[i].side, data[i].unixOpen, data[i].unixClose, d.targetPrice)
// if (typeof runnigTime ==="undefined")
// {
// runnigTime=0
// }
// //console.log(runnigTime)
// if (step !== 0)
// runnigTime = runnigTime + (unixMid - unixStart)
//
// runnigTime = runnigTime / 3600
// if (needPrintData)
// obj.runnigTime = runnigTime
//
// maxRuntime = maxRuntime + runnigTime
let runnigTime = 0
runnigTime = calculateRunnigTime(data[i].side, data[i].unixOpen, data[i].unixClose, d.targetPrice)
if (typeof runnigTime ==="undefined")
{
runnigTime=0
}
//console.log(runnigTime)
if (step !== 0)
runnigTime = runnigTime + (unixMid - unixStart)
runnigTime = runnigTime / 3600
if (needPrintData)
obj.runnigTime = runnigTime
maxRuntime = maxRuntime + runnigTime
listDays.push(endDays)
......
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