Simulation working again

This commit is contained in:
Luis Fernando Molina committed 2020-01-21 11:54:31 +01:00
1 parent 98384659d8
commit 1e3b82ed22
5 files changed
+15 -5

No files matched your search

+8
View File
@@ -150,6 +150,14 @@ function newPlottersManager () {
let plotterModule = layer.definition.referenceParent.referenceParent.referenceParent
let session
if (layer.definition.referenceParent.parentNode.parentNode !== undefined) {
if (layer.definition.referenceParent.parentNode.parentNode.type === 'Session Reference') {
if (layer.definition.referenceParent.parentNode.parentNode.referenceParent !== undefined) {
session = layer.definition.referenceParent.parentNode.parentNode.referenceParent
}
}
}
storage.initialize(
dataMine,
bot,
@@ -29,7 +29,7 @@ function newTaskFunctions () {
'Indicator Bot Instance->' +
'Trading Bot Instance->' +
'Process Instance->' +
'Market Instance->Market->Exchange Markets->Crypto Exchange->' +
'Market Reference->Market->Exchange Markets->Crypto Exchange->' +
'Market Base Asset->Market Quoted Asset->Asset->' +
'Backtesting Session->Live Trading Session->Paper Trading Session->Fordward Testing Session->' +
'Process Definition->' +
+1 -1
View File
@@ -129,7 +129,7 @@ function newLayer () {
'->Layer->' +
'Data Product->Single Market Data->' +
'Session Independent Data->Session Based Data->' +
'Session Instance->Backtesting Session->Paper Trading Session->Fordward Testing Session->Live Trading Session->' +
'Session Reference->Backtesting Session->Paper Trading Session->Fordward Testing Session->Live Trading Session->' +
'Market->Market Base Asset->Asset->' +
'Market Quoted Asset->Asset->' +
'Exchange Markets->Crypto Exchange->' +
+4 -3
View File
@@ -90,6 +90,7 @@ function newProductsPanel () {
/* Now we create Product objects */
let layer = newLayer()
layer.payload = layerNode.payload
layer.nodeId = layerNode.payload.node.id
layer.fitFunction = thisObject.fitFunction
/* Initialize it */
@@ -315,7 +316,7 @@ function newProductsPanel () {
function turnOffUnusedLayers () {
for (let i = 0; i < localLayers.length; i++) {
let layer = localLayers[i]
removeLayer(layer.payload.node.id)
removeLayer(layer.nodeId)
}
}
}
@@ -334,8 +335,8 @@ function newProductsPanel () {
}
function drawHeader () {
let label1 = thisObject.payload.node.payload.parentNode.payload.parentNode.name.substring(0, 15)
let label2 = thisObject.payload.node.payload.parentNode.name.substring(0, 15)
let label1 = thisObject.payload.node.payload.parentNode.payload.parentNode.name.substring(0, 18)
let label2 = thisObject.payload.node.payload.parentNode.name.substring(0, 18)
let label3 = ''
let icon1 = canvas.designerSpace.iconByUiObjectType.get(thisObject.payload.node.payload.parentNode.payload.parentNode.type)
+1
View File
@@ -248,6 +248,7 @@ function newChartSpace () {
}
function syncWithDesigner () {
if (thisObject.payload.node === undefined) { return }
syncWithDesignerLoop = syncWithDesignerLoop + 0.00000000001
if (thisObject.payload.node.timeMachines !== undefined) {