Commit c7d301cf authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 824e6883
...@@ -57,14 +57,15 @@ async function init() { ...@@ -57,14 +57,15 @@ async function init() {
let lp = t[4] let lp = t[4]
let f=found(pair, lp) let f=found(pair, lp)
f.period=p f.period=p
f.uniq=com[i].uniq
arr.push(f) arr.push(f)
} }
arr=_.uniqBy(arr, 'name'); arr=_.uniqBy(arr, 'name');
let header='RowNum,PPST1_stMnBarAge,PPST1_PvtPtPeriod,PPST1_AtrFactor,PPST1_AtrPeriod\n' let header='RowNum,PPST1_stMnBarAge,PPST1_PvtPtPeriod,PPST1_AtrFactor,PPST1_AtrPeriod,szOmIdName\n'
for (let i=0;i<100;i++) for (let i=0;i<100;i++)
{ {
let inline=(i+1)+','+arr[i].timeframe+','+arr[i].pvt+','+arr[i].factor+','+arr[i].period let inline=(i+1)+','+arr[i].timeframe+','+arr[i].pvt+','+arr[i].factor+','+arr[i].period+','+arr[i].uniq
header=header+inline header=header+inline
if (i !== arr.length-1) if (i !== arr.length-1)
header= header+'\n' header= header+'\n'
......
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