Commit c8ab29f0 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 173e65c8
......@@ -22,15 +22,15 @@ function run(data, config, risk, pfTrade, riskFreeLevel) {
let lastCom = 0
let lastMoney = 0
let levels = []
let dur
try {
dur = getMinDiff(data[0].openDate, data[data.length - 1].closeDate)
}
catch (e)
{
fs.appendFileSync('error.txt', JSON.stringify(data)+'\n');
}
let dur = getMinDiff(data[0].openDate, data[data.length - 1].closeDate)
// try {
// dur
// }
// catch (e)
// {
// fs.appendFileSync('error.txt', JSON.stringify(data)+'\n');
//
// }
let newP = dur / data.length
// console.log(data.length)
......
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