From 9cc2bbdee2b844ee837ca62f577b1dfbe77f27b5 Mon Sep 17 00:00:00 2001 From: Philip Love Date: Fri, 14 May 2021 11:32:37 -0400 Subject: [PATCH] Modify: 'whileAtStage_whenToRun' -> 'whileAtStageWhenToRun' --- .../Schemas/App-Schema/user-defined-code.json | 11 ++--------- .../Low-Frequency-Trading/TradingStages.js | 4 ++-- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/Projects/Superalgos/Schemas/App-Schema/user-defined-code.json b/Projects/Superalgos/Schemas/App-Schema/user-defined-code.json index 42b25a682..3e4c8d591 100644 --- a/Projects/Superalgos/Schemas/App-Schema/user-defined-code.json +++ b/Projects/Superalgos/Schemas/App-Schema/user-defined-code.json @@ -23,18 +23,11 @@ "label": "Delete", "iconPathOn": "delete-entity", "iconPathOff": "delete-entity" - }, - { - "action": "Copy Node Path", - "label": "Copy Node Path", - "iconPathOn": "copy-path", - "iconPathOff": "copy-path", - "actionFunction": "payload.executeAction" - } + } ], "addLeftIcons": true, "initialValues": { - "config": "{ \n \"runWhenEnteringStage\": false, \n \"runWhenExitingStage\": false, \n \"runWhileAtStage\": false, \n \"WhileAtStage_whenToRun\": \"first|last\" \n}" + "config": "{ \n \"runWhenEnteringStage\": false, \n \"runWhenExitingStage\": false, \n \"runWhileAtStage\": false, \n \"whileAtStageWhenToRun\": \"first|last\" \n}" }, "editors": { "config": true diff --git a/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/TradingStages.js b/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/TradingStages.js index 861ea8175..fc9ac890b 100644 --- a/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/TradingStages.js +++ b/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/TradingStages.js @@ -1256,7 +1256,7 @@ exports.newSuperalgosBotModulesTradingStages = function (processIndex) { let tradingSystemStage = getTradingSystemStage(stage); if (tradingSystemStage.userDefinedCode !== undefined) { - if (status === 'Running' && when !== tradingSystemStage.userDefinedCode.config.WhileAtStage_whenToRun) { return; } + if (status === 'Running' && when !== tradingSystemStage.userDefinedCode.config.whileAtStageWhenToRun) { return; } switch(status) { case 'Open' : { @@ -1267,7 +1267,7 @@ exports.newSuperalgosBotModulesTradingStages = function (processIndex) { } case 'Running' : { if (tradingSystemStage.userDefinedCode.config.runWhileAtStage && - tradingSystemStage.userDefinedCode.config.WhileAtStage_whenToRun === when) { + tradingSystemStage.userDefinedCode.config.whileAtStageWhenToRun === when) { tradingSystem.evalUserCode(tradingSystemStage, 'User Defined Code'); } break;