Removing Definition node
This commit is contained in:
1 parent
1e3b82ed22
commit
07fb6435dd
3 files changed
+6
-13
No files matched your search
@@ -8,15 +8,6 @@ function newChainAttachDetach () {
|
||||
|
||||
function chainDetachNode (node, rootNodes) {
|
||||
switch (node.type) {
|
||||
case 'Definition': {
|
||||
return
|
||||
}
|
||||
case 'Network': {
|
||||
return
|
||||
}
|
||||
case 'Data Mine': {
|
||||
return
|
||||
}
|
||||
case 'Phase': {
|
||||
let payload = node.payload
|
||||
for (let i = 0; i < payload.parentNode.phases.length; i++) {
|
||||
|
||||
@@ -30,7 +30,7 @@ function newSessionFunctions () {
|
||||
|
||||
let key = node.name + '-' + node.type + '-' + node.id
|
||||
|
||||
let lightingPath = '->Definition->' +
|
||||
let lightingPath = '' +
|
||||
'Trading System->' +
|
||||
'Parameters->' +
|
||||
'Base Asset->Time Range->Time Frame->Slippage->Fee Structure->Exchange Account Key->' +
|
||||
@@ -46,12 +46,12 @@ function newSessionFunctions () {
|
||||
'Situation->Condition->Javascript Code->' +
|
||||
'Announcement->Telegram Bot->'
|
||||
|
||||
let definition = functionLibraryProtocolNode.getProtocolNode(node.payload.referenceParent, false, true, true, false, false, lightingPath)
|
||||
let tradingSystem = functionLibraryProtocolNode.getProtocolNode(node.payload.referenceParent, false, true, true, false, false, lightingPath)
|
||||
|
||||
/* Raise event to run the session */
|
||||
let event = {
|
||||
session: JSON.stringify(functionLibraryProtocolNode.getProtocolNode(node, false, true, true)),
|
||||
definition: JSON.stringify(definition),
|
||||
tradingSystem: JSON.stringify(tradingSystem),
|
||||
uiCurrentValues: getUICurrentValues()
|
||||
}
|
||||
|
||||
|
||||
@@ -105,8 +105,10 @@ function newFloatingSpace () {
|
||||
|
||||
/* Exceptions that are never considered far. */
|
||||
if (
|
||||
payload.node.type === 'Definition' ||
|
||||
payload.node.type === 'Trading System' ||
|
||||
payload.node.type === 'Network' ||
|
||||
payload.node.type === 'Crypto Ecosystem' ||
|
||||
payload.node.type === 'Charting System' ||
|
||||
payload.node.type === 'Data Mine'
|
||||
) {
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user