Commit 7973eb90 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent a6ab1d29
......@@ -23,6 +23,7 @@ function run(data, config,risk,pfTrade) {
let levels=[]
let dur = getMinDiff(data[0].openDate, data[data.length - 1].closeDate)
let newP=dur/data.length
console.log(newP)
if (pfTrade>newP)
return null
for (let i = 0; i < data.length; i++) {
......
......@@ -138,7 +138,7 @@ async function startAgain(arr,start){
}
}
// console.log(arr2)
arr2=_.without(arr2,undefined,null);
arr2 = _.orderBy(arr2, ['profitPerMonthDrawDown'], ['desc']);
let arr20Max = []
let arr1000Compound = []
......
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