Commit 95f60096 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent a8fbe357
......@@ -50,6 +50,7 @@ let arrNew=[]
// console.log(arr)
console.log('Balance ->',balance)
console.log('Worth ->',arrNew[0])
let worth=arrNew[0].sum
console.log('Detail ->',get(arrNew[0].date))
let index=arrNew[0].index
......@@ -72,7 +73,10 @@ let index=arrNew[0].index
for (let i=0;i<arrNew.length;i++)
{
let det=get(arrNew[i].date)
console.log(arrNew[i].date,'Profits->',arrNew[i].sum,'Count->',det.count,'Longs->',det.longCount,'Shorts->',det.shortCount)
if (worth ===arrNew[i].sum)
console.log('Worth* ->',arrNew[i].date,'Profits->',arrNew[i].sum,'Count->',det.count,'Longs->',det.longCount,'Shorts->',det.shortCount)
else
console.log(arrNew[i].date,'Profits->',arrNew[i].sum,'Count->',det.count,'Longs->',det.longCount,'Shorts->',det.shortCount)
}
// console.log(arrNew)
......
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