Time Frames from global framework

This commit is contained in:
Luis Fernando Molina committed 2020-11-27 12:53:21 +01:00
1 parent 4b5c2abf3e
commit 2ded6a45b1
12 files changed
+69 -96

No files matched your search

+5 -5
View File
@@ -56,8 +56,8 @@
}
function timeFramesLoopBody() {
const timeFrame = global.marketFilesPeriods[n][0]
const timeFrameLabel = global.marketFilesPeriods[n][1]
const timeFrame = TS.projects.superalgos.globals.timeFrames.marketFilesPeriods()[n][0]
const timeFrameLabel = TS.projects.superalgos.globals.timeFrames.marketFilesPeriods()[n][1]
/* Check Time Frames Filter */
if (bot.marketTimeFrames !== undefined) {
@@ -129,7 +129,7 @@
function timeFramesControlLoop() {
n++;
if (n < global.marketFilesPeriods.length) {
if (n < TS.projects.superalgos.globals.timeFrames.marketFilesPeriods().length) {
timeFramesLoopBody()
} else {
writeTimeFramesFiles(onTimeFrameFilesWritten)
@@ -163,8 +163,8 @@
function writeTimeFramesFile(productCodeName, callBack) {
let timeFramesArray = []
for (let n = 0; n < global.marketFilesPeriods.length; n++) {
let timeFrameLabel = global.marketFilesPeriods[n][1]
for (let n = 0; n < TS.projects.superalgos.globals.timeFrames.marketFilesPeriods().length; n++) {
let timeFrameLabel = TS.projects.superalgos.globals.timeFrames.marketFilesPeriods()[n][1]
/* Check Time Frames Filter */
if (bot.marketTimeFrames !== undefined) {