diff --git a/.vs/Plotters-Candles-Volumes/v15/.suo b/.vs/Plotters-Candles-Volumes/v15/.suo index 51a254775..848191cfc 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 87116675d..947459486 100644 --- a/Candles.js +++ b/Candles.js @@ -14,8 +14,7 @@ // Secondary functions and properties. currentCandle: undefined, - positionAtDatetime: positionAtDatetime, - onLayerStatusChanged: onLayerStatusChanged + positionAtDatetime: positionAtDatetime }; /* this is part of the module template */ @@ -24,8 +23,6 @@ container.initialize(); thisObject.container = container; - let layerStatus = 'off'; // Since the moduleis a layer, it must handle the different possible layer status. - let plotArea = newPlotArea(); // Needed to be able to plot on the timeline, otherwise not. let timePeriod; // This will hold the current Time Period the user is at. @@ -45,7 +42,7 @@ return thisObject; - function initialize(pExchange, pMarket, pDatetime, pTimePeriod, pLayerStatus, callBackFunction) { + function initialize(pExchange, pMarket, pDatetime, pTimePeriod, callBackFunction) { let cursorCacheInProgress = false; let finaleStepsInProgress = false; @@ -103,8 +100,6 @@ recalculateScale(); // With any of the market files we can calculate the scale. - layerStatus = pLayerStatus; - recalculate(); viewPort.eventHandler.listenToEvent("Zoom Changed", onZoomChanged); @@ -122,8 +117,6 @@ function getContainer(point) { - if (layerStatus !== 'on') { return; } - let container; /* First we check if this point is inside this space. */ @@ -267,8 +260,6 @@ function draw() { - if (layerStatus !== 'on') { return; } - this.container.frame.draw(); if (timePeriod < _1_HOUR_IN_MILISECONDS) { @@ -286,8 +277,6 @@ function recalculate() { - if (layerStatus === 'off') { return; } - if (timePeriod >= _1_HOUR_IN_MILISECONDS) { recalculateUsingMarketFiles(); @@ -673,14 +662,6 @@ } } - function onLayerStatusChanged(eventData) { - - if (eventData.layer === LAYER_CODE_NAME) { - layerStatus = eventData.status; - } - - } - function onZoomChanged(event) { recalculate(); diff --git a/Volumes.js b/Volumes.js index 912dfc7c4..9edbc1813 100644 --- a/Volumes.js +++ b/Volumes.js @@ -9,11 +9,7 @@ getContainer: getContainer, setTimePeriod: setTimePeriod, setDatetime: setDatetime, - draw: draw, - - // Secondary functions and properties. - - onLayerStatusChanged: onLayerStatusChanged + draw: draw }; /* this is part of the module template */ @@ -22,8 +18,6 @@ container.initialize(); thisObject.container = container; - let layerStatus = 'off'; // Since the moduleis a layer, it must handle the different possible layer status. - let plotArea = newPlotArea(); // Needed to be able to plot on the timeline, otherwise not. let plotAreaFrame = newPlotArea(); // This chart uses this extra object. @@ -42,7 +36,7 @@ return thisObject; - function initialize(pExchange, pMarket, pDatetime, pTimePeriod, pLayerStatus, callBackFunction) { + function initialize(pExchange, pMarket, pDatetime, pTimePeriod, callBackFunction) { let cursorCacheInProgress = false; let finaleStepsInProgress = false; @@ -98,8 +92,6 @@ fileCursor = newFileCursor; - layerStatus = pLayerStatus; - recalculateScaleX(); recalculate(); recalculateScaleY(); @@ -119,8 +111,6 @@ function getContainer(point) { - if (layerStatus !== 'on') { return; } - let container; /* First we check if this point is inside this space. */ @@ -202,8 +192,6 @@ function draw() { - if (layerStatus !== 'on') { return; } - this.container.frame.draw(); if (timePeriod < _1_HOUR_IN_MILISECONDS) { @@ -223,8 +211,6 @@ function recalculate() { - if (layerStatus === 'off') { return; } - if (timePeriod >= _1_HOUR_IN_MILISECONDS) { recalculateUsingMarketFiles(); @@ -735,14 +721,6 @@ } } - function onLayerStatusChanged(eventData) { - - if (eventData.layer === 'Olivia Volumes') { - layerStatus = eventData.status; - } - - } - function onZoomChanged(event) { recalculateScaleX();