Tests Passed

This commit is contained in:
Luis Fernando Molina committed 2018-02-18 16:22:54 +01:00
1 parent 5ad5544de3
commit 8115a21bf9
3 files changed
+42 -22

No files matched your search

Binary file not shown.
+21 -22
View File
@@ -107,13 +107,9 @@ Read the candles and volumes from Bruce and produce a single Index File for each
let periods =
'[' +
'[' + 55 * 60 * 1000 + ',' + '"55-min"' + ']' + ',' +
'[' + 50 * 60 * 1000 + ',' + '"50-min"' + ']' + ',' +
'[' + 45 * 60 * 1000 + ',' + '"45-min"' + ']' + ',' +
'[' + 40 * 60 * 1000 + ',' + '"40-min"' + ']' + ',' +
'[' + 35 * 60 * 1000 + ',' + '"35-min"' + ']' + ',' +
'[' + 30 * 60 * 1000 + ',' + '"30-min"' + ']' + ',' +
'[' + 25 * 60 * 1000 + ',' + '"25-min"' + ']' + ',' +
'[' + 20 * 60 * 1000 + ',' + '"20-min"' + ']' + ',' +
'[' + 15 * 60 * 1000 + ',' + '"15-min"' + ']' + ',' +
'[' + 10 * 60 * 1000 + ',' + '"10-min"' + ']' + ',' +
@@ -391,24 +387,8 @@ Read the candles and volumes from Bruce and produce a single Index File for each
try {
/*
Firstly we prepere the arrays that will accumulate all the information for each output file.
*/
let outputCandles = [];
let outputVolumes = [];
for (n = 0; n < outputPeriods.length; n++) {
const emptyArray1 = [];
const emptyArray2 = [];
outputCandles.push(emptyArray1);
outputVolumes.push(emptyArray2);
}
let outputCandles;
let outputVolumes;
advanceTime();
@@ -435,6 +415,25 @@ Read the candles and volumes from Bruce and produce a single Index File for each
}
/*
We prepere the arrays that will accumulate all the information for each output file.
*/
outputCandles = [];
outputVolumes = [];
for (n = 0; n < outputPeriods.length; n++) {
const emptyArray1 = [];
const emptyArray2 = [];
outputCandles.push(emptyArray1);
outputVolumes.push(emptyArray2);
}
periodsLoop();
}
+21
View File
@@ -26,6 +26,27 @@
},
"intervalLapse": 3600000,
"intervalMaxLoops": -1
},
{
"name": "Multi-Period-Daily",
"description": "Produces different files with multi-period candles and volumes on a daily format.",
"startMode": {
"allMonths": {
"run": "false",
"minYear": "",
"maxYear": ""
},
"oneMonth": {
"run": "false",
"year": "",
"month": ""
},
"noTime": {
"run": "true"
}
},
"intervalLapse": 3600000,
"intervalMaxLoops": -1
}
]
}