From f341303e1791e7479a024e2f75f8b16272d68648 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 21 Feb 2018 11:33:08 +0100 Subject: [PATCH] fileCursorCache.setTimePeriod --- .vs/AAOlivia-Plotter/v15/.suo | Bin 17920 -> 16896 bytes Candlestick.js | 6 ++++++ 2 files changed, 6 insertions(+) diff --git a/.vs/AAOlivia-Plotter/v15/.suo b/.vs/AAOlivia-Plotter/v15/.suo index f923c4deab6494fb7f13f008f7bca04447c1015d..5b0fe4d134e61581054d6feaeb8b6151eef71884 100644 GIT binary patch delta 106 zcmZqZVQgq&oM0f!00ROH41z#5BM|@l|NlQom~pZrhyBKc62?hPIjjPU%bfmiE@b-6 k%&K7iLk-Ae+h8HN45SVU4nt`kAk92k(6Mdv0ec4~04&lNy#N3J delta 145 zcmZo@VQlDOoM0f!!~g{X3=AwlCL<94`~UwxNR)Z9BZvLQgc8O{OgXF$;oBpAZ!To| z&CF`>=3YLK$+p2lQU|0C3S5BnR3PR7V&=($j%}L{*gG(7vQuP4QDy>^mcvj60DC4L AjsO4v diff --git a/Candlestick.js b/Candlestick.js index e266132b0..92e674363 100644 --- a/Candlestick.js +++ b/Candlestick.js @@ -173,6 +173,10 @@ } else { + fileCursorCache.setTimePeriod(pTimePeriod); + + fileCursorCache.setDatetime(datetime); + let newFileCursor = fileCursorCache.getFileCursor(pTimePeriod); if (newFileCursor !== undefined) { @@ -186,6 +190,8 @@ if (timePeriod === _1_HOUR_IN_MILISECONDS) { + fileCursorCache.setTimePeriod(pTimePeriod); + fileCursorCache.setDatetime(datetime); }