Commit c6cb23bb authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 2c3466b7
...@@ -23,7 +23,7 @@ async function init() { ...@@ -23,7 +23,7 @@ async function init() {
t = t.split('_') t = t.split('_')
let lp = t[4] let lp = t[4]
com[i].lp=lp com[i].lp=lp
com[i].uniq=uuid.time()+'_'+com[i].platform.split(' ')[6]+'_'+(parseFloat(com[i].platform.split(' ')[7])*-1) com[i].uniq=uuid.time()+'_'+com[i].type.split(' ')[6]+'_'+(parseFloat(com[i].type.split(' ')[7])*-1)
} }
com=_.uniqBy(com, 'lp'); com=_.uniqBy(com, 'lp');
......
...@@ -3,8 +3,14 @@ ...@@ -3,8 +3,14 @@
// for (let i=0;i<t.length;i++) // for (let i=0;i<t.length;i++)
// console.log(i,t[i]) // console.log(i,t[i])
let t='dynamic param:1.0 base:100 target:1000 targetPercentage:false RunupZeroDrawDown -1.5' let t='last.json-220519074932_O1_BNC_BTCUSDT_Lp5319_8BTC7425192022.csv'
console.log(t.split(' ')) t=t.split('_')
let pair = t[3].replace('USDT', '').replace('USD', '')
console.log(pair)
let pairs=pair
let p=t[t.length-1].split('.')
p=p[0].split(pairs)[0]
console.log(p)
// let t='last.json-220217122835_O1_BNC_ETHUSDT_Lp3191_1ETH1.csv' // let t='last.json-220217122835_O1_BNC_ETHUSDT_Lp3191_1ETH1.csv'
......
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