Commit 98aecc45 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 415cdc2b
...@@ -67,8 +67,16 @@ async function init() { ...@@ -67,8 +67,16 @@ async function init() {
p = p[0].split(pairs)[1] p = p[0].split(pairs)[1]
let lp = t[4].replace('lp', 'Lp') let lp = t[4].replace('lp', 'Lp')
let f = found(indicator,pair, lp) let f = found(indicator,pair, lp)
let struc=''
f.lp = p f.lp = p
f.name = com[i].platform f.name = com[i].platform
if (indicator ===2)
{
struc=indicator2Temp
struc=struc.replace('ahmadTimeframe',f.timeframe).replace('ahmadnAtrPeriod',f.nAtrPeriod).replace('ahmaddAtrMultiplier',f.dAtrMultiplier).replace('ahmadlp',f.lp)
createConfigYashilADV('btc'+indicator+'&'+parseFloat(f.nAtrPeriod)+'&'+parseFloat(f.dAtrMultiplier)+'&'+f.lp)
}
console.log(f) console.log(f)
arr.push(f) arr.push(f)
} }
...@@ -185,6 +193,16 @@ function found(indicator,pair, lp) { ...@@ -185,6 +193,16 @@ function found(indicator,pair, lp) {
} }
} }
function createConfigYashilADV(name,data) {
// console.log(data)
return new Promise(function (resolve, reject) {
fs.writeFile(pairs + 'YConfig/'+name+'.csv', data, 'utf8', function (err) {
if (err) reject(err);
else resolve(data);
});
});
}
...@@ -222,10 +240,10 @@ let indicator2Temp='yFt1_AlgName, yFt1_KivOzbPrfMaxi1a\n' + ...@@ -222,10 +240,10 @@ let indicator2Temp='yFt1_AlgName, yFt1_KivOzbPrfMaxi1a\n' +
'bForMnBarAge_ForceOhlcCsvFileBarsAge, 0 ; 0 or 1, Def. 1\n' + 'bForMnBarAge_ForceOhlcCsvFileBarsAge, 0 ; 0 or 1, Def. 1\n' +
'\n' + '\n' +
'; ParamLoop -----------------------------------------------------------\n' + '; ParamLoop -----------------------------------------------------------\n' +
'stMnBarAge_List, 0d 00:05:00.000\n' + 'stMnBarAge_List, ahmadTimeframe\n' +
'nAtrPeriod_List, 1 ; #, Def. 10 (ATR Length)\n' + 'nAtrPeriod_List, ahmadnAtrPeriod ; #, Def. 10 (ATR Length)\n' +
'dAtrMultiplier_List, 1.0 ; FpNum, Def. 3.0\n' + 'dAtrMultiplier_List, ahmaddAtrMultiplier ; FpNum, Def. 3.0\n' +
'nMnMaPeriod_List, 1 ; #, Def. 10\n' + 'nMnMaPeriod_List, ahmadlp ; #, Def. 10\n' +
'\n' + '\n' +
'bNormalizeAtr_List, 0 ; 0 or 1, Def. 0\n' + 'bNormalizeAtr_List, 0 ; 0 or 1, Def. 0\n' +
'nEntSignalCodeNum_List, 1 ; #, 1: MaPmaxCx, 2: SrcPmaxCx, Def. 1\n' + 'nEntSignalCodeNum_List, 1 ; #, 1: MaPmaxCx, 2: SrcPmaxCx, Def. 1\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