diff --git a/.vs/Plotters-Trading/v15/.suo b/.vs/Plotters-Trading/v15/.suo index a8a02b08f..81d63ea80 100644 Binary files a/.vs/Plotters-Trading/v15/.suo and b/.vs/Plotters-Trading/v15/.suo differ diff --git a/History.js b/History.js index 50378b898..5bbdb6fce 100644 --- a/History.js +++ b/History.js @@ -46,7 +46,7 @@ for (let i = 0; i < maxSequence; i++) { - file.push(pStorage.fileSequence.getFile(i)); + files.push(pStorage.fileSequence.getFile(i)); } @@ -97,7 +97,7 @@ function recalculate() { - if (files === undefined | files = []) { return; } + if (files === undefined) { return; } /* @@ -106,6 +106,8 @@ */ + plotElements = []; + for (let j = 0; j < files.length; j++) { let file = files[j]; @@ -144,7 +146,7 @@ function recalculateScale() { - if (file === undefined) { return; } // We need the market file to be loaded to make the calculation. + if (files === undefined) { return; } // We need the market file to be loaded to make the calculation. if (timeLineCoordinateSystem.maxValue > 0) { return; } // Already calculated.