Modify: 'whileAtStage_whenToRun' -> 'whileAtStageWhenToRun'
This commit is contained in:
1 parent
0b566f59c4
commit
9cc2bbdee2
2 files changed
+4
-11
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user