ordering of panels improved

This commit is contained in:
Luis Fernando Molina committed 2020-03-16 09:55:54 +01:00
1 parent 89baf641ac
commit 33b4e2748b
11 files changed
+406 -92

No files matched your search

@@ -17,7 +17,7 @@ function newMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () {
thisObject.container.frame.containerName = "Bollinger Band";
let currentBand;
let panelTabButton
let upDownButton
return thisObject;
@@ -28,8 +28,8 @@ function newMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () {
thisObject.isVisible = undefined
currentBand = undefined
panelTabButton.finalize()
panelTabButton = undefined
upDownButton.finalize()
upDownButton = undefined
}
function initialize() {
@@ -40,18 +40,18 @@ function newMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () {
thisObject.container.frame.position.x = canvas.chartingSpace.viewport.visibleArea.topRight.x - thisObject.container.frame.width * 3;
thisObject.container.frame.position.y = canvas.chartingSpace.viewport.visibleArea.bottomLeft.y - thisObject.container.frame.height;
panelTabButton = newPanelTabButton()
panelTabButton.parentContainer = thisObject.container
panelTabButton.container.frame.parentFrame = thisObject.container.frame
panelTabButton.fitFunction = thisObject.fitFunction
panelTabButton.initialize()
upDownButton = newUpDownButton()
upDownButton.parentContainer = thisObject.container
upDownButton.container.frame.parentFrame = thisObject.container.frame
upDownButton.fitFunction = thisObject.fitFunction
upDownButton.initialize()
}
function getContainer(point) {
if (thisObject.isVisible !== true) { return }
let container;
container = panelTabButton.getContainer(point)
container = upDownButton.getContainer(point)
if (container !== undefined) { return container }
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
@@ -83,7 +83,7 @@ function newMastersPlottersBollingerBandsBollingerBandsBollingerBandsPanel () {
plotCurrentBandInfo();
panelTabButton.draw()
upDownButton.draw()
}
@@ -17,7 +17,7 @@ function newMastersPlottersCandlesVolumesCandlesCandlePanel() {
thisObject.container.frame.containerName = "Candle";
let currentCandle;
let panelTabButton
let upDownButton
return thisObject;
@@ -28,8 +28,8 @@ function newMastersPlottersCandlesVolumesCandlesCandlePanel() {
thisObject.isVisible = undefined
currentCandle = undefined
panelTabButton.finalize()
panelTabButton = undefined
upDownButton.finalize()
upDownButton = undefined
}
function initialize() {
@@ -40,18 +40,18 @@ function newMastersPlottersCandlesVolumesCandlesCandlePanel() {
thisObject.container.frame.position.x = canvas.chartingSpace.viewport.visibleArea.topRight.x - thisObject.container.frame.width * 2;
thisObject.container.frame.position.y = canvas.chartingSpace.viewport.visibleArea.bottomLeft.y - thisObject.container.frame.height;
panelTabButton = newPanelTabButton()
panelTabButton.parentContainer = thisObject.container
panelTabButton.container.frame.parentFrame = thisObject.container.frame
panelTabButton.fitFunction = thisObject.fitFunction
panelTabButton.initialize()
upDownButton = newUpDownButton()
upDownButton.parentContainer = thisObject.container
upDownButton.container.frame.parentFrame = thisObject.container.frame
upDownButton.fitFunction = thisObject.fitFunction
upDownButton.initialize()
}
function getContainer(point) {
if (thisObject.isVisible !== true) { return }
let container;
container = panelTabButton.getContainer(point)
container = upDownButton.getContainer(point)
if (container !== undefined) { return container }
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
@@ -83,7 +83,7 @@ function newMastersPlottersCandlesVolumesCandlesCandlePanel() {
plotCurrentCandleInfo();
panelTabButton.draw()
upDownButton.draw()
}
@@ -17,7 +17,7 @@ function newMastersPlottersCandlesVolumesVolumesVolumePanel() {
thisObject.container.frame.containerName = "Volume";
let currentVolume;
let panelTabButton
let upDownButton
return thisObject;
@@ -28,8 +28,8 @@ function newMastersPlottersCandlesVolumesVolumesVolumePanel() {
thisObject.isVisible = undefined
currentVolume = undefined
panelTabButton.finalize()
panelTabButton = undefined
upDownButton.finalize()
upDownButton = undefined
}
function initialize() {
@@ -40,18 +40,18 @@ function newMastersPlottersCandlesVolumesVolumesVolumePanel() {
thisObject.container.frame.position.x = canvas.chartingSpace.viewport.visibleArea.topRight.x - thisObject.container.frame.width;
thisObject.container.frame.position.y = canvas.chartingSpace.viewport.visibleArea.bottomLeft.y - thisObject.container.frame.height;
panelTabButton = newPanelTabButton()
panelTabButton.parentContainer = thisObject.container
panelTabButton.container.frame.parentFrame = thisObject.container.frame
panelTabButton.fitFunction = thisObject.fitFunction
panelTabButton.initialize()
upDownButton = newUpDownButton()
upDownButton.parentContainer = thisObject.container
upDownButton.container.frame.parentFrame = thisObject.container.frame
upDownButton.fitFunction = thisObject.fitFunction
upDownButton.initialize()
}
function getContainer(point) {
if (thisObject.isVisible !== true) { return }
let container;
container = panelTabButton.getContainer(point)
container = upDownButton.getContainer(point)
if (container !== undefined) { return container }
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
@@ -83,7 +83,7 @@ function newMastersPlottersCandlesVolumesVolumesVolumePanel() {
plotCurrentVolumeInfo();
panelTabButton.draw()
upDownButton.draw()
}
function plotCurrentVolumeInfo() {
@@ -20,7 +20,7 @@ function newMastersPlottersTradingSimulationSimulationExecutionSimulationExecuti
container.frame.containerName = "Trading Execution";
let currentRecord;
let panelTabButton
let upDownButton
return thisObject;
@@ -31,8 +31,8 @@ function newMastersPlottersTradingSimulationSimulationExecutionSimulationExecuti
thisObject.isVisible = undefined
currentRecord = undefined
panelTabButton.finalize()
panelTabButton = undefined
upDownButton.finalize()
upDownButton = undefined
}
function initialize() {
@@ -43,18 +43,18 @@ function newMastersPlottersTradingSimulationSimulationExecutionSimulationExecuti
thisObject.container.frame.position.x = canvas.chartingSpace.viewport.visibleArea.topLeft.x + thisObject.container.frame.width * 4;
thisObject.container.frame.position.y = canvas.chartingSpace.viewport.visibleArea.topRight.y;
panelTabButton = newPanelTabButton()
panelTabButton.parentContainer = thisObject.container
panelTabButton.container.frame.parentFrame = thisObject.container.frame
panelTabButton.fitFunction = thisObject.fitFunction
panelTabButton.initialize()
upDownButton = newUpDownButton()
upDownButton.parentContainer = thisObject.container
upDownButton.container.frame.parentFrame = thisObject.container.frame
upDownButton.fitFunction = thisObject.fitFunction
upDownButton.initialize()
}
function getContainer(point) {
if (thisObject.isVisible !== true) { return }
let container;
container = panelTabButton.getContainer(point)
container = upDownButton.getContainer(point)
if (container !== undefined) { return container }
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
@@ -86,7 +86,7 @@ function newMastersPlottersTradingSimulationSimulationExecutionSimulationExecuti
plot();
panelTabButton.draw()
upDownButton.draw()
}
@@ -21,7 +21,7 @@ function newMastersPlottersTradingSimulationTradingSimulationTradingSimulationPa
let currentRecord;
let lastRecord;
let panelTabButton
let upDownButton
return thisObject;
@@ -34,11 +34,11 @@ function newMastersPlottersTradingSimulationTradingSimulationTradingSimulationPa
thisObject.container.frame.position.x = canvas.chartingSpace.viewport.visibleArea.topRight.x - thisObject.container.frame.width * 1;
thisObject.container.frame.position.y = canvas.chartingSpace.viewport.visibleArea.topRight.y;
panelTabButton = newPanelTabButton()
panelTabButton.parentContainer = thisObject.container
panelTabButton.container.frame.parentFrame = thisObject.container.frame
panelTabButton.fitFunction = thisObject.fitFunction
panelTabButton.initialize()
upDownButton = newUpDownButton()
upDownButton.parentContainer = thisObject.container
upDownButton.container.frame.parentFrame = thisObject.container.frame
upDownButton.fitFunction = thisObject.fitFunction
upDownButton.initialize()
}
@@ -53,14 +53,14 @@ function newMastersPlottersTradingSimulationTradingSimulationTradingSimulationPa
currentRecord = undefined
lastRecord = undefined
panelTabButton = undefined
upDownButton = undefined
}
function getContainer(point) {
if (thisObject.isVisible !== true) { return }
let container;
container = panelTabButton.getContainer(point)
container = upDownButton.getContainer(point)
if (container !== undefined) { return container }
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
@@ -93,7 +93,7 @@ function newMastersPlottersTradingSimulationTradingSimulationTradingSimulationPa
plotCurrentRecordInfo();
panelTabButton.draw()
upDownButton.draw()
/* Define panel name */
if (thisObject.session !== undefined) {