Refactoring
This commit is contained in:
1 parent
d880b21bf5
commit
041d453baa
3 files changed
+8
-8
No files matched your search
Binary file not shown.
+4
-4
@@ -36,7 +36,7 @@
|
||||
let fileCursor; // This is the current File Cursor being used to retrieve Daily Files.
|
||||
|
||||
let marketFiles; // This object will provide the different Market Files at different Time Periods.
|
||||
let fileCursorCache; // This object will provide the different File Cursors at different Time Periods.
|
||||
let dailyFiles; // This object will provide the different File Cursors at different Time Periods.
|
||||
|
||||
/* these are module specific variables: */
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
/* Store the information received. */
|
||||
|
||||
marketFiles = pStorage.marketFiles[0];
|
||||
fileCursorCache = pStorage.fileCursorCache[0];
|
||||
dailyFiles = pStorage.dailyFiles[0];
|
||||
|
||||
datetime = pDatetime;
|
||||
timePeriod = pTimePeriod;
|
||||
@@ -63,7 +63,7 @@
|
||||
/* Now we set the right files according to current Period. */
|
||||
|
||||
marketFile = marketFiles.getFile(pTimePeriod);
|
||||
fileCursor = fileCursorCache.getFileCursor(pTimePeriod);
|
||||
fileCursor = dailyFiles.getFileCursor(pTimePeriod);
|
||||
|
||||
/* Listen to the necesary events. */
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
} else {
|
||||
|
||||
let newFileCursor = fileCursorCache.getFileCursor(pTimePeriod);
|
||||
let newFileCursor = dailyFiles.getFileCursor(pTimePeriod);
|
||||
|
||||
if (newFileCursor !== undefined) {
|
||||
|
||||
|
||||
+4
-4
@@ -32,7 +32,7 @@
|
||||
let fileCursor; // This is the current File Cursor being used to retrieve Daily Files.
|
||||
|
||||
let marketFiles; // This object will provide the different Market Files at different Time Periods.
|
||||
let fileCursorCache; // This object will provide the different File Cursors at different Time Periods.
|
||||
let dailyFiles; // This object will provide the different File Cursors at different Time Periods.
|
||||
|
||||
let scaleFile; // This file is used to calculate the scale.
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
/* Store the information received. */
|
||||
|
||||
marketFiles = pStorage.marketFiles[0];
|
||||
fileCursorCache = pStorage.fileCursorCache[0];
|
||||
dailyFiles = pStorage.dailyFiles[0];
|
||||
|
||||
datetime = pDatetime;
|
||||
timePeriod = pTimePeriod;
|
||||
@@ -59,7 +59,7 @@
|
||||
/* Now we set the right files according to current Period. */
|
||||
|
||||
marketFile = marketFiles.getFile(pTimePeriod);
|
||||
fileCursor = fileCursorCache.getFileCursor(pTimePeriod);
|
||||
fileCursor = dailyFiles.getFileCursor(pTimePeriod);
|
||||
|
||||
/* Listen to the necesary events. */
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
|
||||
} else {
|
||||
|
||||
let newFileCursor = fileCursorCache.getFileCursor(pTimePeriod);
|
||||
let newFileCursor = dailyFiles.getFileCursor(pTimePeriod);
|
||||
|
||||
if (newFileCursor !== undefined) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user