Commit 737dc670 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent ca0fc0e5
...@@ -49,6 +49,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max ...@@ -49,6 +49,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
let maxLevel = 0 let maxLevel = 0
let maxRuntime = 0 let maxRuntime = 0
let realProfit = 0 let realProfit = 0
let dateString=''
// console.log(data) // console.log(data)
...@@ -172,6 +173,8 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max ...@@ -172,6 +173,8 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
if (runBefore ===false) if (runBefore ===false)
continue continue
if (step ===0)
dateString=dateString+data[i].openDate+'-'
canCreateRunupPercent=false canCreateRunupPercent=false
runBefore = true runBefore = true
let obj let obj
......
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