Commit 88f35295 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 00c5724e
...@@ -8,7 +8,7 @@ let arr = [] ...@@ -8,7 +8,7 @@ let arr = []
let lastBalance=10000 let lastBalance=10000
let balance =lastBalance let balance =lastBalance
init() init()
let base=-10000000 let base=1
let com let com
//profitLossString //profitLossString
//drawDownString //drawDownString
...@@ -66,10 +66,10 @@ function run() ...@@ -66,10 +66,10 @@ function run()
// console.log('Balance ->',balance) // console.log('Balance ->',balance)
// console.log('Worth ->',arrNew[0]) // console.log('Worth ->',arrNew[0])
let worth=arrNew[0].sum let worth=balance/arrNew[0].sum
if (worth > base) { if (worth > base) {
base=worth base=worth
console.log(worth,balance,(balance/worth)) console.log((balance/worth))
} }
// let start=false // let start=false
// let arr2=[] // let arr2=[]
......
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