Commit 45feb669 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 31288bf3
...@@ -72,7 +72,8 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss) { ...@@ -72,7 +72,8 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss) {
if (curDrawDown <= 0) if (curDrawDown <= 0)
money = lastMoney money = lastMoney
else { else {
money = lastMoney * (config.param +(curDrawDown/10)) let b=curDrawDown/10
money = lastMoney * (config.param +b)
} }
} }
} }
......
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