diff --git a/.vs/AAOlivia-Plotter/v15/.suo b/.vs/AAOlivia-Plotter/v15/.suo index 756e84fad..75a627a98 100644 Binary files a/.vs/AAOlivia-Plotter/v15/.suo and b/.vs/AAOlivia-Plotter/v15/.suo differ diff --git a/Candles.js b/Candles.js index e2b70b21f..69e59e4bc 100644 --- a/Candles.js +++ b/Candles.js @@ -37,6 +37,8 @@ let fileCache; // 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. + const LAYER_CODE_NAME = "Market Candlesticks"; + /* these are module specific variables: */ let candles = []; // Here we keep the candles to be ploted every time the Draw() function is called by the AAWebPlatform. @@ -52,7 +54,7 @@ timePeriod = pTimePeriod; fileCache = newFileCache(); - fileCache.initialize("AAMasters", "AAOlivia", "Market Candles", "Market Candlesticks", pExchange, pMarket, onFileReady); + fileCache.initialize("AAMasters", "AAOlivia", "Market Candles", LAYER_CODE_NAME, pExchange, pMarket, onFileReady); function onFileReady() { @@ -673,7 +675,7 @@ function onLayerStatusChanged(eventData) { - if (eventData.layer === 'Olivia Candlesticks') { + if (eventData.layer === LAYER_CODE_NAME) { layerStatus = eventData.status; }