diff --git a/.vs/Plotters-Candles-Volumes/v15/.suo b/.vs/Plotters-Candles-Volumes/v15/.suo index 4af178b0d..3e53531af 100644 Binary files a/.vs/Plotters-Candles-Volumes/v15/.suo and b/.vs/Plotters-Candles-Volumes/v15/.suo differ diff --git a/Candles.js b/Candles.js index bd7cb5f24..d0ebe2e4b 100644 --- a/Candles.js +++ b/Candles.js @@ -290,6 +290,8 @@ function recalculateUsingDailyFiles() { + if (fileCursor === undefined) { return; } // We need to wait + if (fileCursor.files.size === 0) { return;} // We need to wait until there are files in the cursor let daysOnSides = getSideDays(timePeriod); diff --git a/Volumes.js b/Volumes.js index ec80cec09..db889e796 100644 --- a/Volumes.js +++ b/Volumes.js @@ -226,6 +226,8 @@ function recalculateUsingDailyFiles() { + if (fileCursor === undefined) { return; } // We need to wait + if (fileCursor.files.size === 0) { return; } // We need to wait until there are files in the cursor let daysOnSides = getSideDays(timePeriod);