layerStatus = pLayerStatus;

This commit is contained in:
Luis Fernando Molina committed 2018-02-21 14:59:07 +01:00
1 parent aec04f241c
commit b815e553db
2 files changed
+11 -10

No files matched your search

Binary file not shown.
+11 -10
View File
@@ -1,12 +1,6 @@
function newAAMastersAAOliviaCandlesticks() {
var candles = [];
var plotArea = newPlotArea();
let timePeriod;
var datetime;
var candlesticks = {
let candlesticks = {
onLayerStatusChanged: onLayerStatusChanged,
currentCandle: undefined,
positionAtDatetime: positionAtDatetime,
@@ -26,16 +20,25 @@
container.zoom.containerName = "AAMasters AAOlivia Candlesticks";
container.frame.containerName = "AAMasters AAOlivia Candlesticks";
let candles = [];
let plotArea = newPlotArea();
let timePeriod;
let datetime;
let marketFile;
let fileCursor;
let layerStatus = 'off';
let fileCache;
let fileCursorCache;
return candlesticks;
function initialize(pExchange, pMarket, pDatetime, pTimePeriod, chartLayersPanel, callBackFunction) {
function initialize(pExchange, pMarket, pDatetime, pTimePeriod, pLayerStatus, callBackFunction) {
layerStatus = pLayerStatus;
let cursorCacheInProgress = false;
let finaleStepsInProgress = false;
@@ -93,8 +96,6 @@
recalculateScale(); // With any of the market files we can calculate the scale.
layerStatus = chartLayersPanel.getLayerStatus(chartLayersPanel.layerNames.OLIVIA_CANDLES);
recalculateCandles();
postitionViewPort();